summaryrefslogtreecommitdiff
path: root/tests/classes/autoload_021.phpt
blob: 3237627380975fd0240179de841ab08f6e9c97f4 (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 Error: Class '../BUG' not found in %sautoload_021.php:6
Stack trace:
#0 {main}
  thrown in %sautoload_021.php on line 6