File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
bug7515.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 3 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
1: --TEST--
2: Bug #7515 (weird & invisible referencing of objects)
3: --SKIPIF--
4: <?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?>
5: --INI--
6: error_reporting=2039
7: --FILE--
8: <?php
9: class obj {
10: function method() {}
11: }
12:
13: $o->root=new obj();
14:
15: ob_start();
16: var_dump($o);
17: $x=ob_get_contents();
18: ob_end_clean();
19:
20: $o->root->method();
21:
22: ob_start();
23: var_dump($o);
24: $y=ob_get_contents();
25: ob_end_clean();
26: if ($x == $y) {
27: print "success";
28: } else {
29: print "failure
30: x=$x
31: y=$y
32: ";
33: }
34: ?>
35: --EXPECTF--
36: Warning: Creating default object from empty value in %s on line %d
37: success
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>