xref: /php-src/Zend/tests/gh15976/alias-names.phpt (revision 8e6d8cf1)
1--TEST--
2GH-15976: Bad class alias names
3--FILE--
4<?php
5
6class_alias( 'stdClass', '_' );
7class_alias( 'stdClass', 'bool' );
8
9?>
10--EXPECTF--
11Deprecated: Using "_" as a class alias is deprecated since 8.4 in %salias-names.php on line 3
12
13Fatal error: Cannot use "bool" as a class alias as it is reserved in %salias-names.php on line 4
14