|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-01 21:36 UTC] stas@php.net
[2010-04-01 21:37 UTC] stas@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: stas
[2010-04-01 21:37 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 07:00:01 2025 UTC |
Description: ------------ The test script code produces the following error: [25-Mar-2010 13:25:29] PHP Fatal error: Function name must be a string in test.php on line 0 This is because there's actually two errors: 1. Undefined $empty notice 2. Function name must be string - fatal error When error (1) is processed, due to the exception opline_ptr is set to the exception handler opcode, so when the engine wants to report error (2) it doesn't have proper opline_ptr to report the error. Test script: --------------- <?php function eh() { throw new Exception("error!"); return false; } set_error_handler("eh"); $a = $empty($b); Expected result: ---------------- [25-Mar-2010 13:25:29] PHP Fatal error: Function name must be a string in test.php on line 9 Actual result: -------------- [25-Mar-2010 13:25:29] PHP Fatal error: Function name must be a string in test.php on line 0