[Bug 515740] [NEW] Crash on using unitialized vals and __get/__set
Pontiy_Pilat
p_p at rg.ru
Mon Feb 1 22:19:29 GMT 2010
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.
More information about the Ubuntu-server-bugs
mailing list