|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-08-27 12:53 UTC] fernando dot wendt at gmail dot com
Description: ------------ PHP is ignoring the php.ini error_reporting configuration, and is always hangin up scripts with the E_DEPRACATED message. The default error_reporting = E_ALL & ~E_DEPRACATED is not working. All depracated warnings are working as fatal errors, and i believe that was not the intention it supposed to do. The only way to avoid this (at least on my workaround) is setting up the display_errors = Off (even on my workstation). Reproduce code: --------------- Try some script that have depracated function or issue to work. It will freeze as a fatal error, pointing a depracated message. Expected result: ---------------- First, it should respect the php.ini ~E_DEPRECATED flag and then show deprecated issues as warnings, not as fatal errors. Actual result: -------------- php.ini ~E_DEPRECATED is not working: his behavior looks like a fatal error, and is not being respected if is on or off. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 21 23:00:01 2025 UTC |
Ops! Trying to reproduce it twice, it points me to be working fine :) Trully, there is a incomplete behavior present at phpPgAdmin (method "printHeader", that have junt one "if" trying to change document header. That was why the script seems to be stoping anyway. Sorry, its all right. Bellows, a little buggy script to confirm this. <?php class Doit{ private $foo; public function __construct(){ $this->foo = 'Something'; } public function getfoo(){ return($this->foo); } } $data =& new Doit(); //Deprecated issue echo $data->getfoo; $xpto = 12; //Logical follows echo $xpto; pg_connect();//Missing function data ?>Works fine here: <?php error_reporting(-1); echo ereg_replace('abc','abc','123'); error_reporting(0); echo ereg_replace('abc','abc','456'); Outputs: PHP Deprecated: Function ereg_replace() is deprecated in /home/sites/wepay.com/current/u on line 3 Deprecated: Function ereg_replace() is deprecated in /home/sites/wepay.com/current/u on line 3 123456 That is, there is only a deprecated warning printed for line 3, nothing for line 5.