php-src/Zend/tests/class_alias_008.phpt
2008-05-12 13:31:36 +00:00

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