|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-18 04:20 UTC] goba@php.net
Consider the code below, with error_repoting set to
E_ALL (2047) before the script start:
<?php
$prev = error_reporting();
error_reporting(2046);
$new = error_reporting();
echo $prev . " -> " . $new;
//ini_set("error_reporting", $new);
phpinfo();
?>
This would set the error_reporting to 2046,
as returned and injected to the $new variable.
BUT phpinfo() will present 2047 as the local
value, instead of 2046. If you uncomment the
ini_set() call, you get the correct 2046 in the
phpindo() output. So error_repoting(..) and
ini_set("error_reporting"..) are not the same ;((
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
I have not tested this with ini_get, but IMHO a) error_reporting() should be an alias for ini_get("error_reporting") and b) error_reporting(E_ALL) should be an alias for ini_set("error_reporting", E_ALL)... Goba