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

ID: 17388
Updated by: alec@alec.pl
Reported By: jimmywarhammer at gmail dot com
Summary: Deprecated assigning the return value of new by
reference
-Status: Open
+Status: Closed
Type: Bug
Package: Mail
Operating System: Linux Centos 5.1
PHP Version: 5.2.6
-Assigned To:
+Assigned To: alec
-Roadmap Versions:
+Roadmap Versions: 1.2.1
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: alec
-Roadmap Versions:
+Roadmap Versions: 1.2.1
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.




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

[2010-05-11 13:28:03] cweiske

This is something that cannot be fixed when PHP4 compatibilty shall be
kept.

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

[2010-05-11 13:27:15] alec

-Summary: E_STRICT violates with MailMime
+Summary: Deprecated assigning the return value of new by
reference


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

[2010-05-11 13:25:49] alec

-Package: Mail_Mime
+Package: Mail


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

[2010-05-11 13:10:53] jimmywar

Description:
------------
Error detected!
[2048] Assigning the return value of new by reference is deprecated
Fatal error on line 349 in file /usr/share/pear/PEAR/Mail/smtp.php



Test script:
---------------
include_once('Mail.php');
include_once('Mail/mime.php');
include_once('Mail/smtp.php');

Expected result:
----------------
No warning

Actual result:
--------------
Warning on line 349

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

Search Discussions

  • Chuck at Jan 14, 2011 at 7:07 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=17388&edit=1

    ID: 17388
    Updated by: chuck@horde.org
    Reported By: jimmywarhammer at gmail dot com
    Summary: Deprecated assigning the return value of new by
    reference
    -Status: Closed
    +Status: Feedback
    Type: Bug
    Package: Mail
    Operating System: Linux Centos 5.1
    PHP Version: 5.2.6
    Assigned To: alec
    Roadmap Versions:
    New Comment:

    -Status: Closed
    +Status: Feedback
    Alec, what did you change here? Has there been a change in breaking BC
    without a
    major version?


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

    [2011-01-14 20:03:04] alec

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: alec
    -Roadmap Versions:
    +Roadmap Versions: 1.2.1
    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.

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

    [2010-05-11 13:28:03] cweiske

    This is something that cannot be fixed when PHP4 compatibilty shall be
    kept.

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

    [2010-05-11 13:27:15] alec

    -Summary: E_STRICT violates with MailMime
    +Summary: Deprecated assigning the return value of new by
    reference


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

    [2010-05-11 13:25:49] alec

    -Package: Mail_Mime
    +Package: Mail


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

    [2010-05-11 13:10:53] jimmywar

    Description:
    ------------
    Error detected!
    [2048] Assigning the return value of new by reference is deprecated
    Fatal error on line 349 in file /usr/share/pear/PEAR/Mail/smtp.php



    Test script:
    ---------------
    include_once('Mail.php');
    include_once('Mail/mime.php');
    include_once('Mail/smtp.php');

    Expected result:
    ----------------
    No warning

    Actual result:
    --------------
    Warning on line 349

    ------------------------------------------------------------------------
  • Alec at Jan 14, 2011 at 7:18 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=17388&edit=1

    ID: 17388
    Updated by: alec@alec.pl
    Reported By: jimmywarhammer at gmail dot com
    Summary: Deprecated assigning the return value of new by
    reference
    Status: Feedback
    Type: Bug
    Package: Mail
    Operating System: Linux Centos 5.1
    PHP Version: 5.2.6
    Assigned To: alec
    Roadmap Versions:
    New Comment:

    I think this doesn't breaks BC. See the package source, there's no
    '&new' anywhere.


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

    [2011-01-14 20:08:58] chagenbu

    -Status: Closed
    +Status: Feedback
    Alec, what did you change here? Has there been a change in breaking BC
    without a
    major version?

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

    [2011-01-14 20:03:04] alec

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: alec
    -Roadmap Versions:
    +Roadmap Versions: 1.2.1
    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.

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

    [2010-05-11 13:28:03] cweiske

    This is something that cannot be fixed when PHP4 compatibilty shall be
    kept.

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

    [2010-05-11 13:27:15] alec

    -Summary: E_STRICT violates with MailMime
    +Summary: Deprecated assigning the return value of new by
    reference


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

    [2010-05-11 13:25:49] alec

    -Package: Mail_Mime
    +Package: Mail


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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=17388

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 14, '11 at 7:01p
activeJan 14, '11 at 7:18p
posts3
users2
websitepear.php.net

2 users in discussion

Alec: 2 posts Chuck: 1 post

People

Translate

site design / logo © 2022 Grokbase