mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
17 lines
261 B
PHP
17 lines
261 B
PHP
--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
|