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