6.0.0-beta1
9/17/25

[#2999] PHP4.4 notice: Only variable references...
Summary PHP4.4 notice: Only variable references...
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester jens (at) peino (dot) de
Created 11/18/2005 (7243 days ago)
Due
Updated 11/18/2005 (7243 days ago)
Assigned
Resolved 11/18/2005 (7243 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/18/2005 06:48:35 PM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Please upload patches as files in the future. Fixed.
11/18/2005 05:51:23 PM jens (at) peino (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ PHP4.4 notice: Only variable references...
Queue ⇒ Horde Framework Packages
Reply to this comment
Hello,



another php4.4 warning.



Possible patch below:





Index: framework/MIME/MIME/Structure.php

===================================================================

RCS file: /repository/framework/MIME/MIME/Structure.php,v

retrieving revision 1.93

diff -u -r1.93 Structure.php

--- framework/MIME/MIME/Structure.php   7 Nov 2005 15:34:26 -0000       1.93

+++ framework/MIME/MIME/Structure.php   18 Nov 2005 17:46:10 -0000

@@ -292,13 +292,16 @@



          $mimeDecode = &new Mail_mimeDecode($text, MIME_PART_EOL);

          if (!($structure = $mimeDecode->decode($decode_args))) {

-            return false;

+            $mime_structure = false;

          }

+        else {

+            /* Put the object into imap_parsestructure() form. */

+            MIME_Structure::_convertMimeDecodeData($structure);



-        /* Put the object into imap_parsestructure() form. */

-        MIME_Structure::_convertMimeDecodeData($structure);

-

-        return MIME_Structure::parse($structure);

+            $mime_structure = MIME_Structure::parse($structure);

+        }

+

+        return $mime_structure;

Saved Queries