|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-24 10:02 UTC] jani@php.net
[2007-08-27 16:23 UTC] jcharrey at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 07:00:01 2025 UTC |
Description: ------------ It seems that when error_get_last() is called, if no error has occurred in the calling script the function may often return the last error encountered by the PHP instance. Simply calling this function in an otherwise empty file will spit out random errors from other scripts being run on the same server. Reproduce code: --------------- <?php print_r(error_get_last()); ?> Expected result: ---------------- A blank page. Actual result: -------------- Array ( [type] => 2048 [message] => Non-static method modules_html::modoutput_xhtml() should not be called statically [file] => /home/swiders2/public_html/grip/includes/frontend.html.php [line] => 112 )