File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
engine_assignExecutionOrder_007.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 6 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,
v5_3_10,
HEAD
php
1: --TEST--
2: Check key execution order with &new.
3: --FILE--
4: <?php
5: $a[2][3] = 'stdClass';
6: $a[$i=0][++$i] =& new $a[++$i][++$i];
7: print_r($a);
8:
9: $o = new stdClass;
10: $o->a =& new $a[$i=2][++$i];
11: $o->a->b =& new $a[$i=2][++$i];
12: print_r($o);
13: ?>
14: --EXPECTF--
15: Deprecated: Assigning the return value of new by reference is deprecated in %s.php on line 3
16:
17: Deprecated: Assigning the return value of new by reference is deprecated in %s.php on line 7
18:
19: Deprecated: Assigning the return value of new by reference is deprecated in %s.php on line 8
20: Array
21: (
22: [2] => Array
23: (
24: [3] => stdClass
25: )
26:
27: [0] => Array
28: (
29: [1] => stdClass Object
30: (
31: )
32:
33: )
34:
35: )
36: stdClass Object
37: (
38: [a] => stdClass Object
39: (
40: [b] => stdClass Object
41: (
42: )
43:
44: )
45:
46: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>