mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
19 lines
295 B
PHP
19 lines
295 B
PHP
--TEST--
|
|
Bug #47165 (Possible memory corruption when passing return value by reference)
|
|
--FILE--
|
|
<?php
|
|
class Foo {
|
|
var $bar = array();
|
|
|
|
static function bar() {
|
|
static $instance = null;
|
|
$instance = new Foo();
|
|
return $instance->bar;
|
|
}
|
|
}
|
|
extract(Foo::bar());
|
|
echo "ok\n";
|
|
?>
|
|
--EXPECT--
|
|
ok
|