|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-06-15 05:16 UTC] sp at alkor dot ru
# in apache.conf: php_value track_errors on
# This problem seems exists in PHP 3.0.x too.
function boo($tag) {
global $php_errormsg;
echo("$tag: $php_errormsg<br><br>\n");
}
function bar() {
$x = @fopen("file-no-such", "r", 0);
if(!$x) boo("BAR");
}
$php_errormsg = "Croak!";
$foo = @fopen("no-such-file", "r", 0);
if(!$foo) boo("MAIN");
$php_errormsg = "Croak!"; bar();
# Request: is it possible make something like
# set_track_errors(bool) to change track_errors
# on fly.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 23:00:01 2025 UTC |
ini_set("track_errors", 1); Or use error_get_last()