Re: E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David CHANIAL wrote:
> Hi,
> 
> We are preparing the upgrade of PHP for our customers, but, after some tests, 
> we have a migration "problem" caused by the news E_RECOVERABLE_ERROR.
> 
> So, even if the upgrade guide (http://www.php.net/UPDATE_5_2.txt) talk about 
> the method to handle this new errors (by using try/catch), they don't talk 

there is no mention of try/catch - it seems that the rather unfortunate word
'catchable' was used to describe the act of setting up a user defined error handler
(see: http://php.net/manual/en/function.set-error-handler.php) to handle errors
that are triggered by the php core. [errors != exceptions]

> about a way to permit users to upgrade to PHP 5.2.0 without modify all theirs 
> scripts.
> 
> In fact, many users had just installed open sources scripts (forums, 
> cms, ...), which make somes E_RECOVERABLE_ERROR. So, we can hide them by 
> adding E_RECOVERABLE_ERROR to the errors mask of the php.ini but it's not 
> solving the "real" problem.

masking the errors might be short term solution - better to not mask them but also
setup php to log errors rather than display them (see the display_errors ini setting)
and point your users to the error log.

it may be possible to merrily ignore the E_RECOVERABLE_ERRORs but chances are they
point to real problems in the code and they should be corrected.

> 
> Is there a way ? a temporary method ? which permit to use php 5.2 without 
> forcing customers to accept the new E_RECOVERABLE_ERROR. so a way providing a 
> two time upgrade (option in php.ini ?)

no there is not. sorry for the bad news.

> 
> Thanks.
> 
> Best regards,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux