summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2013-11-29 12:55:11 +0400
committerDmitry Stogov <dmitry@zend.com>2013-11-29 12:55:11 +0400
commit2cb0e1e4c13ec9e392bfc566f59a22de1013d571 (patch)
treeb21da25b993ad2c27dcb8658b996e13b57d2e26d /tests
parentf54f308f71edb6c0db679e1d6755af5e9cac2d56 (diff)
parent967abd61537a2c7d0beebac9039aa068d518e4eb (diff)
downloadphp-git-2cb0e1e4c13ec9e392bfc566f59a22de1013d571.tar.gz
Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5: Added validation of class names in the autoload process Conflicts: NEWS
Diffstat (limited to 'tests')
-rw-r--r--tests/classes/autoload_021.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/classes/autoload_021.phpt b/tests/classes/autoload_021.phpt
new file mode 100644
index 0000000000..13562b4000
--- /dev/null
+++ b/tests/classes/autoload_021.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Validation of class names in the autoload process
+--FILE--
+<?php
+function __autoload($name) {
+ echo "$name\n";
+}
+$a = "../BUG";
+$x = new $a;
+echo "BUG\n";
+?>
+--EXPECTF--
+Fatal error: Class '../BUG' not found in %sautoload_021.php on line 6