mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
17 lines
261 B
Plaintext
17 lines
261 B
Plaintext
|
--TEST--
|
||
|
Testing class_alias() with abstract class using an arbitrary class name as alias
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
abstract class foo { }
|
||
|
|
||
|
class_alias('foo', "\0");
|
||
|
|
||
|
$a = "\0";
|
||
|
|
||
|
new $a;
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Cannot instantiate abstract class foo in %s on line %d
|