mirror of
https://github.com/php/php-src.git
synced 2025-01-07 19:44:02 +08:00
7ded7577b2
patch by: ladislav at marek dot su
26 lines
411 B
PHP
26 lines
411 B
PHP
--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"
|