mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
39 lines
872 B
PHP
39 lines
872 B
PHP
--TEST--
|
|
Bug #76667 (Segfault with divide-assign op and __get + __set)
|
|
--FILE--
|
|
<?php
|
|
|
|
class T {
|
|
public function __get($k)
|
|
{
|
|
return $undefined->$k;
|
|
}
|
|
|
|
public function __set($k, $v)
|
|
{
|
|
return $this->$v /= 0;
|
|
}
|
|
};
|
|
|
|
$x = new T;
|
|
$x->x = 1;
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Undefined variable: undefined in %sbug76667.php on line %d
|
|
|
|
Notice: Trying to get property '1' of non-object in %sbug76667.php on line %d
|
|
|
|
Warning: Division by zero in %sbug76667.php on line %d
|
|
|
|
Notice: Undefined variable: undefined in %sbug76667.php on line %d
|
|
|
|
Notice: Trying to get property 'NAN' of non-object in %sbug76667.php on line %d
|
|
|
|
Warning: Division by zero in %sbug76667.php on line %d
|
|
|
|
Notice: Undefined variable: undefined in %sbug76667.php on line %d
|
|
|
|
Notice: Trying to get property 'NAN' of non-object in %sbug76667.php on line %d
|
|
|
|
Warning: Division by zero in %sbug76667.php on line %d
|