blob: 859a9116696e20a9863a79852726618836f92011 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--TEST--
Validation of class names in the autoload process
--FILE--
<?php
spl_autoload_register(function ($name) {
echo "$name\n";
});
$a = "../BUG";
$x = new $a;
echo "BUG\n";
?>
--EXPECTF--
Fatal error: Uncaught Error: Class "../BUG" not found in %s:%d
Stack trace:
#0 {main}
thrown in %sautoload_021.php on line 6
|