summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug48023.phpt
blob: 59bbb81f8bb5ca15b2ae74ae77e20f1c599c0015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #48023 (spl_autoload_register didn't addref closures)
--FILE--
<?php
spl_autoload_register(function(){});

new Foo;

?>
===DONE===
--EXPECTF--
Fatal error: Uncaught exception 'EngineException' with message 'Class 'Foo' not found' in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d