summaryrefslogtreecommitdiff
path: root/tests/classes/autoload_021.phpt
blob: 673813cb2e2b0439840a9d22c7cc3cbb0b85b0b7 (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 %sautoload_021.php:6
Stack trace:
#0 {main}
  thrown in %sautoload_021.php on line 6