FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=13116&edit=1

ID: 13116
Updated by: aharvey@php.net
Reported By: despoix at openxtrem dot com
Summary: Syntax Strict notice for references on constructors
-Status: Verified
+Status: Closed
Type: Bug
Package: Config
Operating System: all
Package Version: 1.10.11
PHP Version: 5.1.6
-Assigned To:
+Assigned To: aharvey
Roadmap Versions:
New Comment:

-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: aharvey
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Thanks for the patch, Francisco!


Previous Comments:
------------------------------------------------------------------------

[2010-10-28 11:07:50] fjfnaranjo

Added #patch
bug:13116;patch:pear-config-new-by-reference-strict;revision:1288264070;.

------------------------------------------------------------------------

[2008-02-13 13:03:01] tomdesp

Description:
------------
Config constructor will try to to reference a container after new
construction, thus will throw a E_STRICT error in PHP5.

Let's recall it has no effect and is deprecated. Code should be updated
as all other major packages have already been on this point.

Test script:
---------------
<?php
error_reporting(E_STRICT);
include "Config.php";
?>

Actual result:
--------------
Strict standards: Assigning the return value of new by reference is
deprecated in c:\wamp\php\PEAR\Config.php on line 80

Strict standards: Assigning the return value of new by reference is
deprecated in c:\wamp\php\PEAR\Config.php on line 166

Strict standards: Assigning the return value of new by reference is
deprecated in c:\wamp\php\PEAR\Config\Container.php on line 111

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 24, '10 at 5:11a
activeDec 24, '10 at 5:11a
posts1
users1
websitepear.php.net

1 user in discussion

Aharvey: 1 post

People

Translate

site design / logo © 2022 Grokbase