forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
bug00328.phpt
30 lines (30 loc) · 940 Bytes
/
bug00328.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--TEST--
Test for bug #328: Private properties are incorrectly enumerated in case of extended classes
--INI--
html_errors=1
xdebug.default_enable=1
--FILE--
<?php
class Daddy
{
private $bar = 42;
protected $pro = 242;
public $pub = 342;
}
class Inherit extends Daddy
{
private $bar = 43;
protected $pro = 243;
public $pub = 343;
}
$a = new Inherit;
var_dump( $a );
?>
--EXPECT--
<pre class='xdebug-var-dump' dir='ltr'>
<b>object</b>(<i>Inherit</i>)[<i>1</i>]
<i>private</i> 'bar' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>43</font>
<i>protected</i> 'pro' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>243</font>
<i>public</i> 'pub' <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>343</font>
<i>private</i> 'bar' <small>(Daddy)</small> <font color='#888a85'>=></font> <small>int</small> <font color='#4e9a06'>42</font>
</pre>