php-src/Zend/tests/bug38461.phpt
Antony Dovgal 4ad05e0e0f add test
2006-08-15 08:58:40 +00:00

26 lines
328 B
PHP

--TEST--
Bug #38461 (setting private attribute with __set() produces segfault)
--FILE--
<?php
class Operation
{
function __set( $var, $value )
{
$this->$var = $value;
}
}
class ExtOperation extends Operation
{
private $x;
}
$op = new ExtOperation;
$op->x = 'test';
echo "Done\n";
?>
--EXPECT--
Done