xref: /PHP-7.3/Zend/tests/class_alias_008.phpt (revision e97d5fab)
1--TEST--
2Testing class_alias() with abstract class using an arbitrary class name as alias
3--FILE--
4<?php
5
6abstract class foo { }
7
8class_alias('foo', "\0");
9
10$a = "\0";
11
12new $a;
13
14?>
15--EXPECTF--
16Fatal error: Uncaught Error: Cannot instantiate abstract class foo in %s:%d
17Stack trace:
18#0 {main}
19  thrown in %s on line %d
20