NYCPHP Meetup

NYPHP.org

[nycphp-talk] Baffling PEAR mail_mime error

Dell Sala dell at sala.ca
Sun Oct 15 09:55:23 EDT 2006


This is a new error notice that was added in php 4.4. You or your  
host must have just upgraded php to 4.4.

The notice is generated for any functions that attempt to return the  
value of an expression as a reference. Apparently it doesn't work and  
the returned value will not be a reference, so the notice was added  
in php 4.4. PEAR Mail_Mime may have been have been updated to fix  
this problem. Make sure you upgrade to the latest version.

Here's more info on the new notice:

http://www.sitepoint.com/blogs/2005/07/30/php-44-minor-gotcha/

I'm curios to hear how others have been dealing with this issue. It's  
cause a lot of what I thought was well written code to start  
generating notices, (which in my mind are errors).

-- Dell


On Oct 15, 2006, at 8:29 AM, Cliff Hirsch wrote:

> I have been using Mail/mime for some time, but it recently started  
> generating the following error. Has anyone seen this? I am  
> completely stumped.
>
>
>
> ERRNO: 8
>
> TEXT: Only variable references should be returned by reference
>
> LOCATION: C:\Program Files\xampp\php\pear\Mail\mime.php, line 375,  
> at October 15, 2006, 8:14 am
>
> Showing backtrace:
>
> Mail_mime._addAlternativePart(null) # line  505, file: C:\Program  
> Files\xampp\php\pear\Mail\mime.php
>
> Mail_mime.get() # line   33, file: C:\kerbeez\include 
> \email_handler.php
>
> EmailManager.MailMime("cliff at pinestream.com", "Order Confirmation",  
> "Thank you for your order…
>
>
>
> ERRNO: 8
>
> TEXT: Only variable references should be returned by reference
>
> LOCATION: C:\Program Files\xampp\php\pear\Mail\mime.php, line 593,  
> at October 15, 2006, 8:14 am
>
> Showing backtrace:
>
> Mail_mime.headers(Array[3]) # line   34, file: C:\kerbeez\include 
> \email_handler.php
>
> EmailManager.MailMime("cliff at pinestream.com", " Order  
> Confirmation", "Thank you for your order…
>
>
>
> Any ideas would be grateful.
>
>
>
> Cliff
>
> _______________________________
> Pinestream Communications, Inc.
> Publisher of Semiconductor Times & Telecom Trends
> 52 Pine Street, Weston, MA 02493 USA
> Tel: 781.647.8800, Fax: 781.647.8825
> http://www.pinestream.com
>
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list