dis-bench / src /php /php-src /ext /session /tests /bug53141.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
435 Bytes
--TEST--
Bug #53141 (autoload misbehaves if called from closing session)
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
spl_autoload_register(function ($class) {
var_dump("Loading $class");
eval('class Bar {}');
});
class Foo
{
function __sleep()
{
new Bar;
return array();
}
}
session_start();
$_SESSION['foo'] = new Foo;
?>
--EXPECT--
string(11) "Loading Bar"