xref: /PHP-7.2/tests/classes/autoload_021.phpt (revision 162aa1a5)
1--TEST--
2Validation of class names in the autoload process
3--FILE--
4<?php
5spl_autoload_register(function ($name) {
6	echo "$name\n";
7});
8$a = "../BUG";
9$x = new $a;
10echo "BUG\n";
11?>
12--EXPECTF--
13Fatal error: Uncaught Error: Class '../BUG' not found in %sautoload_021.php:6
14Stack trace:
15#0 {main}
16  thrown in %sautoload_021.php on line 6
17