PEAR breaks on upgrading to PHP5

From DreamHost
Jump to: navigation, search

After enabling PHP5 using the control panel, I found that my web application didn't work. Scary!

Turns out that DreamHost's installation of PHP5 has a different include path than PHP4 did, so you have to tell it where to find the PEAR libraries. To fix this, add this in your PHP configuration file:

set_include_path(
	get_include_path() . 
	PATH_SEPARATOR . '/usr/local/lib/php'
);

--Sam LG 17:22, 4 Aug 2005 (PDT)

This does not work for me. I still get the error: Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/lib/php/Mail.php on line 13

And none of the forums that I have searched so far, provide a solution. --Iclarke (talk) 21:47, 4 October 2013 (PDT)