Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Bug #3416 : PHP5 Protected and private attributes not shown.
3
--SKIPIF--
4
<?php
5
if (version_compare(PHP_VERSION, '4.9.9', '<=')) print 'PHP 5 required';
6
?>
7
--FILE--
8
<?php
9
 
10
error_reporting(E_ALL);
11
require_once 'Var_Dump.php';
12
$vd = new Var_Dump(array('display_mode' => 'Text'));
13
 
14
class foo {
15
    public $bar1 = 'value1';
16
    protected $bar2 = 'value2';
17
    private $bar3 = 'value3';
18
}
19
 
20
echo $vd->toString(new foo());
21
 
22
?>
23
--EXPECTREGEX--
24
object\(foo\)(#[0-9]+ )?\(3\) {
25
  bar1 => string\(6\) value1
26
  bar2:protected => string\(6\) value2
27
  bar3:private => string\(6\) value3
28
}