|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-01-28 08:32 UTC] bugzilla77 at gmail dot com
Description:
------------
class use{} crash
Test script:
---------------
<?php
class use{}
?>
Expected result:
----------------
fatal error
Actual result:
--------------
crash
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 13:00:01 2026 UTC |
Windows only? Tried both TS/NTS on linux works as expected. What is your output of "Zend Extension Build" line from "php -i" or phpinfo() [yohgaki@dev github-php-src]$ php <?php class use{} ?> PHP Parse error: syntax error, unexpected 'use' (T_USE), expecting identifier (T_STRING) in - on line 2x64\Debug\php.exe -n -r "class use{}" Parse error: syntax error, unexpected 'use' (T_USE), expecting identifier (T_STRING) in Command line code on line 1 @bugzilla77 we need a backtrace. Thanks.