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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alejosimon at gmail dot com
New email:
PHP Version: OS:

 

 [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: Sun Apr 28 20:01:29 2024 UTC