php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73897 eval() and PHP Fatal error: Uncaught Error: Call to undefined method
Submitted: 2017-01-09 14:13 UTC Modified: 2017-01-09 14:19 UTC
From: spam2 at rhsoft dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 7.1.0 OS:
Private report: No CVE-ID: None
 [2017-01-09 14:13 UTC] spam2 at rhsoft dot net
Description:
------------
PHP Fatal error:  Uncaught Error: Call to undefined method cl_misc::tl_linklist() in /***.php(908) : eval()'d code:1

in case of parse errors there is try {} catch(ParseError $e) {}

and how are we supposed to handle the "PHP Fatal error:  Uncaught Error" in PHP7 when this is *not* an Exception? i am sitting here in front of a fuzzy-caller and have no way to trigger a custom error log and output a clean error message and so have no idea where the responsible code exists 

PLEASE make it consistent and throw exceptions everywhere!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-09 14:19 UTC] nikic@php.net
-Status: Open +Status: Not a bug
 [2017-01-09 14:19 UTC] nikic@php.net
As the error message says, it is an exception of type Error (see http://php.net/Error).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC