Bug #68928 [Opn->Fbk]: class use{} crash

From: Date: Wed, 28 Jan 2015 14:46:40 +0000
Subject: Bug #68928 [Opn->Fbk]: class use{} crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190268@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:         ab@php.net
 Reported by:        bugzilla77 at gmail dot com
 Summary:            class use{} crash
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            *Compile Issues
 Operating System:   win7 32bit
 PHP Version:        5.6.5
 Block user comment: N
 Private report:     N

 New Comment:

x64\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.


Previous Comments:
------------------------------------------------------------------------
[2015-01-28 10:54:31] yohgaki@php.net

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

------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#190268) next »