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
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: spam2 at rhsoft dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 22:00:01 2026 UTC