mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
14 lines
249 B
Plaintext
14 lines
249 B
Plaintext
|
--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: Class '../BUG' not found in %sautoload_021.php on line 6
|