php5 defaults issues

Ryan Schmidt ryandesign at macports.org
Wed Sep 30 18:30:32 PDT 2009


On Sep 30, 2009, at 19:14, Scott Haneda wrote:

> I have two issues with the current php5 install.  A phpInfo shows  
> the sendmail path to be blank.  I have never had to set this in the  
> past, there was a default value built in that worked.
>
> I have set
> /usr/sbin/sendmail -t -i
> which solved the problem, but wondered why this was not a default.
>
> From php.ini
> ; For Unix only.  You may supply arguments as well (default:  
> "sendmail -t -i").
> ; http://php.net/sendmail-path
> ;sendmail_path =
>
> So I should have had 'sendmail -t -i' without defining anything.

Perhaps the php developers decided to change the default for 5.3.0.  
I'm not doing anything special in the portfile related to this.


> in phpInfo I am seeing in the date section:
> dateWarning: phpinfo(): It is not safe to rely on the system's  
> timezone settings. You are *required* to use the date.timezone  
> setting or the date_default_timezone_set() function. In case you  
> used any of those methods and you are still getting this warning,  
> you most likely misspelled the timezone identifier. We selected  
> 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in info.php on line 2
>
> The php.ini has this:
> [Date]
> ; Defines the default timezone used by the date functions
> ; http://php.net/date.timezone
> ;date.timezone =
>
> Suggestions?

You must set the correct timezone in the php.ini, as the error message  
states. This is a change the php developers made in 5.3.0.





More information about the macports-dev mailing list