Public bug reported:

Binary package hint: php5

Reproduce code:
---------------
<?php
class Foo {
        function __get($k) {
                return null;
        }
        function __set($k, $v) {
                $this->$k = $v;
        }
}

$c = new Foo();

$c->arr[0]["k"] = 1;
$c->arr[0]["k2"] = $ref;
for($cnt=0;$cnt<6;$cnt++) {
        $ref = chop($undef);    
        $c->arr[$cnt]["k2"] = $ref;
}
?>


http://bugs.php.net/bug.php?id=43201

Segmentation fault

Fixed in php 5.2.6

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
Crash on using unitialized vals and __get/__set
https://bugs.launchpad.net/bugs/515740
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to