php-src/Zend/tests/bug47165.phpt

19 lines
295 B
Plaintext
Raw Normal View History

--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";
?>
2009-01-20 13:22:26 +00:00
--EXPECT--
ok