File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug39775.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:52 2012 UTC (13 years, 1 month 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: Bug #39775 ("Indirect modification ..." message is not shown)
3: --FILE--
4: <?php
5: class test {
6: var $array = array();
7: function __get($var) {
8: $v =& $this->array;
9: return $this->array;
10: }
11: }
12: $t = new test;
13: $t->anything[] = 'bar';
14: print_r($t->anything);
15: ?>
16: --EXPECTF--
17: Notice: Indirect modification of overloaded property test::$anything has no effect in %sbug39775.php on line 10
18: Array
19: (
20: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>