1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/Zend/tests/class_alias_008.phpt
2015-05-17 17:31:43 -05:00

20 lines
318 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: Uncaught Error: Cannot instantiate abstract class foo in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d