php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69944 Parse error.
Submitted: 2015-06-26 17:34 UTC Modified: 2015-06-26 19:17 UTC
From: alejosimon at gmail dot com Assigned: cmb (profile)
Status: Not a bug Package: Scripting Engine problem
PHP Version: 7.0.0alpha2 OS: Windows 7 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
20 - 19 = ?
Subscribe to this entry?

 
 [2015-06-26 17:34 UTC] alejosimon at gmail dot com
Description:
------------
He was convinced he would not see more such errors, but maybe have an error of concepts.

My information is this RFC: https://wiki.php.net/rfc/throwable-interface

Could check? 

Test script:
---------------
<?php

  function @@merd( string $name ) {}

?>

Expected result:
----------------
ParseError exception maybe!

Actual result:
--------------
Parse error: syntax error, unexpected '--' (T_DEC), expecting identifier (T_STRING) ...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-06-26 19:17 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2015-06-26 19:17 UTC] cmb@php.net
Actually, ParseError is an exception now, and inherits from
Throwable, see <http://3v4l.org/7GZoB>.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 14 22:01:31 2024 UTC