blob: b294b01ac9f6d791c2452eb03a99528c13bbf7ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--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 exception 'EngineException' with message 'Cannot instantiate abstract class foo' in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|