php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68928 class use{} crash
Submitted: 2015-01-28 08:32 UTC Modified: 2015-02-08 04:22 UTC
From: bugzilla77 at gmail dot com Assigned:
Status: No Feedback Package: *Compile Issues
PHP Version: 5.6.5 OS: win7 32bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugzilla77 at gmail dot com
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-28 10:54 UTC] 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 14:46 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-01-28 14:46 UTC] ab@php.net
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.
 [2015-02-08 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 04:01:29 2024 UTC