diff options
author | Dmitry Stogov <dmitry@zend.com> | 2013-11-29 12:53:02 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2013-11-29 12:53:02 +0400 |
commit | 2d31eadbbf147a157cb4a0c89adaf30fee7371f0 (patch) | |
tree | 39f777d2f9e4fa0c4bc5bcb5e7f091a8d25d07f6 /tests | |
parent | d22cc5c816fdb6017ce9e22b4594d1566939e4ec (diff) | |
download | php-git-2d31eadbbf147a157cb4a0c89adaf30fee7371f0.tar.gz |
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 |