Bug #68928 [Opn]: class use{} crash
| From: | yohgaki@php.net | Date: | Wed, 28 Jan 2015 10:54:31 +0000 |
| Subject: | Bug #68928 [Opn]: class use{} crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190262@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68928&edit=1
ID: 68928
Updated by: yohgaki@php.net
Reported by: bugzilla77 at gmail dot com
Summary: class use{} crash
Status: Open
Type: Bug
Package: *Compile Issues
Operating System: win7 32bit
PHP Version: 5.6.5
Block user comment: N
Private report: N
New Comment:
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 2
Previous Comments:
------------------------------------------------------------------------
[2015-01-28 08:32:44] bugzilla77 at gmail dot com
Description:
------------
class use{} crash
Test script:
---------------
<?php
class use{}
?>
Expected result:
----------------
fatal error
Actual result:
--------------
crash
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68928&edit=1