mirror of
https://github.com/php/php-src.git
synced 2024-10-02 23:36:16 +00:00
26 lines
411 B
Plaintext
26 lines
411 B
Plaintext
|
--TEST--
|
||
|
Bug #53141 (autoload misbehaves if called from closing 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"
|