php-src/Zend/tests/class_alias_008.phpt

17 lines
261 B
Plaintext
Raw Normal View History

2008-05-12 21:30:50 +08:00
--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