summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug48023.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/spl/tests/bug48023.phpt')
-rw-r--r--ext/spl/tests/bug48023.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/spl/tests/bug48023.phpt b/ext/spl/tests/bug48023.phpt
new file mode 100644
index 0000000..ed0ff9e
--- /dev/null
+++ b/ext/spl/tests/bug48023.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #48023 (spl_autoload_register didn't addref closures)
+--FILE--
+<?php
+spl_autoload_register(function(){});
+
+new Foo;
+
+?>
+===DONE===
+--EXPECTF--
+Fatal error: Class 'Foo' not found in %s on line %d