blob: c3945ed4b3800b0565270c748765e075e1898914 (
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
function __autoload($name) {
echo "$name\n";
}
$a = "../BUG";
$x = new $a;
echo "BUG\n";
?>
--EXPECTF--
Fatal error: Uncaught EngineException: Class '../BUG' not found in %sautoload_021.php:6
Stack trace:
#0 {main}
thrown in %sautoload_021.php on line 6
|