Re: PEAR packages and PHP 5.4 strict standards
| From: | Ferenc Kovacs | Date: | Thu, 22 Mar 2012 21:21:47 +0000 |
| Subject: | Re: PEAR packages and PHP 5.4 strict standards | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-31469@lists.php.net to get a copy of this message | ||
2012/3/22 Martín Marqués <martin.marques@gmail.com>
> Just upgraded PHP to 5.4.0 and I started getting alot of warning
> messages about things that don't stick to the PHP Strick Standards.
>
> Basically, things like this:
>
> PHP Strict Standards: Declaration of MDB2_Driver_Common::raiseError()
> should be compatible with & PEAR::raiseError($message = NULL, $code =
> NULL, $mode = NULL, $options = NULL, $userinfo = NULL, $error_class =
> NULL, $skipmsg = false) in /usr/share/php/MDB2.php on line 990
> PHP Strict Standards: Non-static method Date_TimeZone::isValidID()
> should not be called statically in /usr/share/php/Date/TimeZone.php on
> line 4717
> PHP Strict Standards: Non-static method Date_TimeZone::setDefault()
> should not be called statically in /usr/share/php/Date/TimeZone.php on
> line 4718
> PHP Strict Standards: Non-static method Date_TimeZone::isValidID()
> should not be called statically in /usr/share/php/Date/TimeZone.php on
> line 192
>
>
> Is there a way to solve this? Where can I get documentation on this,
> and how can it be solved? Better, in PEAR.
>
> --
> Martín Marqués
> select 'martin.marques' || '@' || 'gmail.com'
> DBA, Programador, Administrador
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
http://www.php.net/manual/en/migration54.other.php
"E_ALL now includes E_STRICT level errors in the error_reporting
configuration directive."
so those problems are there for a while, 5.4 just made them "visible" by
default.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu