mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
26 lines
328 B
PHP
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
|