From:             toomuchphp-phpbugs at yahoo dot com
Operating system: OS X
PHP version:      5.2.0
PHP Bug Type:     Class/Object related
Bug description:  "Indirect modification ..." message is not shown

Description:
------------
If a __get() method returns a variable which is a reference, the 'Indirect
modification of ...' error will not be shown.

Reproduce code:
---------------
class test {
        var $array = array();
        function __get($var) {
                $v =& $this->array;
                return $this->array;
        }
}
$t = new test;
$t->anything[] = 'bar';
print_r($t->anything);


Expected result:
----------------
Notice: Indirect modification of overloaded property test::$anything has
no effect in test.php on line 10
Array
(
)

Actual result:
--------------
Array
(
)


-- 
Edit bug report at http://bugs.php.net/?id=39775&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39775&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39775&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39775&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39775&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39775&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39775&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39775&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39775&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39775&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39775&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39775&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39775&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39775&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39775&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39775&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39775&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39775&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39775&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39775&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39775&r=mysqlcfg

Reply via email to