Red Hat Bugzilla – Bug 461142
PEAR.php does not pass STRICT mode php checking
Last modified: 2013-04-12 15:52:12 EDT
Description of problem:
PEAR.php prints warnings when E_STRICT error reporting is enabled.
Version-Release number of selected component (if applicable):
[sam@machine ~]$ rpm -qi php-pear
Name : php-pear Relocations: (not relocatable)
Version : 1.4.9 Vendor: Red Hat, Inc.
Release : 4.el5.1 Build Date: Thu 04 Oct 2007 12:24:00 BST
When including /usr/share/pear/PEAR.php and having the E_STRICT error reporting bit set in PHP, the following errors are observed:
*Strict Standards*: Assigning the return value of new by reference is deprecated in */usr/share/pear/PEAR.php* on line *563*
*Strict Standards*: Assigning the return value of new by reference is deprecated in */usr/share/pear/PEAR.php* on line *566
This makes it impossible to enable E_STRICT error reporting on websites that use PEAR as they will always print a warning.
This bug doesn't exist in latest upstream. Was fixed in this revision:
Thanks for the report and upstream diff reference!
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.