diff options
author | Dmitry Stogov <dmitry@zend.com> | 2013-11-29 12:54:22 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2013-11-29 12:54:22 +0400 |
commit | 967abd61537a2c7d0beebac9039aa068d518e4eb (patch) | |
tree | 9ab036f8b94aa18438487d7040700b090322ffc3 /tests | |
parent | b0d24d3d2001ad3bfe6b9a2e66cb631ae49b4064 (diff) | |
parent | 2d31eadbbf147a157cb4a0c89adaf30fee7371f0 (diff) | |
download | php-git-967abd61537a2c7d0beebac9039aa068d518e4eb.tar.gz |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
Added validation of class names in the autoload process
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/autoload_021.phpt | 13 |
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 |