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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 08:01:34 2025 UTC