Scott Haneda | 1 Oct 2009 02:14
Favicon

php5 defaults issues

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.

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 =

(Continue reading)

Scott Haneda | 1 Oct 2009 02:39
Favicon

php open_basedir bug

Hi, I am hitting this one hard, just migrated a bunch of sites from  
one serve to another:
http://bugs.php.net/bug.php?id=48880

Is there any way to get this patch into the php5 macports? It exposes  
a good deal of directory data, and also makes random failures occur on  
all sites.
--

-- 
Scott * If you contact me off list replace talklists <at>  with scott <at>  *

Ryan Schmidt | 1 Oct 2009 03:30
Favicon

Re: php5 defaults issues


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
>
(Continue reading)

Ryan Schmidt | 1 Oct 2009 03:37
Favicon

Re: [58556] trunk/dports/science


On Sep 30, 2009, at 20:18, singingwolfboy@... wrote:

> Revision: 58556
>          http://trac.macports.org/changeset/58556
> Author:   singingwolfboy@...
> Date:     2009-09-30 18:18:35 -0700 (Wed, 30 Sep 2009)
> Log Message:
> -----------
> added new portfile for emergent simulator
>

You need to specify an svn.revision. Otherwise people installing the  
port at different times will get different versions of the software,  
which we don't want to have happen.

Also, if you don't want to maintain this, then set the maintainer line  
to "nomaintainer". "openmaintainer" by itself is not allowed, as "port  
lint" should report.

> Added Paths:
> -----------
>    trunk/dports/science/emergent/
>    trunk/dports/science/emergent/Portfile
>
> Added: trunk/dports/science/emergent/Portfile
> ===================================================================
> --- trunk/dports/science/emergent/Portfile	                         
> (rev 0)
> +++ trunk/dports/science/emergent/Portfile	2009-10-01 01:18:35 UTC  
(Continue reading)

Scott Haneda | 1 Oct 2009 04:09
Favicon

Re: php5 defaults issues

http://us.php.net/manual/en/mail.configuration.php#ini.sendmail-path

	Where the sendmail program can be found, usually
	/usr/sbin/sendmail or /usr/lib/sendmail. configure
	does an honest attempt of locating this one for you
	and set a default, but if it fails, you can set it here.

Any idea why configure did not figure it out?  In all cases in the  
past, it has.  Would you mind running phpInfo() and seeing if you are  
missing the value as well?

I have never had this default get lost before.
--

-- 
Scott * If you contact me off list replace talklists <at>  with scott <at>  *

On Sep 30, 2009, at 6:30 PM, Ryan Schmidt wrote:

>
> 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:  
(Continue reading)

Ryan Schmidt | 1 Oct 2009 04:21
Favicon

Re: php5 defaults issues


On Sep 30, 2009, at 21:09, Scott Haneda wrote:

> http://us.php.net/manual/en/mail.configuration.php#ini.sendmail-path
>
> 	Where the sendmail program can be found, usually
> 	/usr/sbin/sendmail or /usr/lib/sendmail. configure
> 	does an honest attempt of locating this one for you
> 	and set a default, but if it fails, you can set it here.
>
> Any idea why configure did not figure it out?  In all cases in the  
> past, it has.  Would you mind running phpInfo() and seeing if you  
> are missing the value as well?
>
> I have never had this default get lost before.
> -- 

My phpinfo() does show

sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i

I'm on 10.6.1.

Scott Haneda | 1 Oct 2009 04:27
Favicon

Re: php5 defaults issues

On Sep 30, 2009, at 7:21 PM, Ryan Schmidt wrote:

>
> On Sep 30, 2009, at 21:09, Scott Haneda wrote:
>
>> http://us.php.net/manual/en/mail.configuration.php#ini.sendmail-path
>>
>> 	Where the sendmail program can be found, usually
>> 	/usr/sbin/sendmail or /usr/lib/sendmail. configure
>> 	does an honest attempt of locating this one for you
>> 	and set a default, but if it fails, you can set it here.
>>
>> Any idea why configure did not figure it out?  In all cases in the  
>> past, it has.  Would you mind running phpInfo() and seeing if you  
>> are missing the value as well?
>>
>> I have never had this default get lost before.
>> -- 
>
> My phpinfo() does show
>
> sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t -i

What would be the best way to rebuild php?  I would like to -d it when  
I do, so I can see if there is anything I can catch.  Will I have to  
reinstall all the php5-* ones as well, or can I just uninstall and  
install php5?

Thanks.
--

-- 
(Continue reading)

Ryan Schmidt | 1 Oct 2009 04:33
Favicon

Re: php5 defaults issues

On Sep 30, 2009, at 21:27, Scott Haneda wrote:

> On Sep 30, 2009, at 7:21 PM, Ryan Schmidt wrote:
>
>> On Sep 30, 2009, at 21:09, Scott Haneda wrote:
>>
>>> http://us.php.net/manual/en/mail.configuration.php#ini.sendmail-path
>>>
>>> 	Where the sendmail program can be found, usually
>>> 	/usr/sbin/sendmail or /usr/lib/sendmail. configure
>>> 	does an honest attempt of locating this one for you
>>> 	and set a default, but if it fails, you can set it here.
>>>
>>> Any idea why configure did not figure it out?  In all cases in the  
>>> past, it has.  Would you mind running phpInfo() and seeing if you  
>>> are missing the value as well?
>>>
>>> I have never had this default get lost before.
>>
>> My phpinfo() does show
>>
>> sendmail_path => /usr/sbin/sendmail -t -i  => /usr/sbin/sendmail -t  
>> -i
>
> What would be the best way to rebuild php?  I would like to -d it  
> when I do, so I can see if there is anything I can catch.

I'm not sure there are any "ways" to rebuild php. Just rebuild it.  
Though I'm not sure why it would find something now that it did not  
find before.
(Continue reading)

Ryan Schmidt | 1 Oct 2009 04:34
Favicon

Re: php open_basedir bug


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

> Hi, I am hitting this one hard, just migrated a bunch of sites from  
> one serve to another:
> http://bugs.php.net/bug.php?id=48880
>
> Is there any way to get this patch into the php5 macports? It  
> exposes a good deal of directory data, and also makes random  
> failures occur on all sites.

Thanks for bringing this issue to my attention. The patch looks simple  
enough. I'll see if I can add it to the current port.

php 5.3.1 will of course include the fix. I thought 5.3.1 would have  
been out by now. Guess they're still testing things.

Scott Haneda | 1 Oct 2009 04:38
Favicon

Re: php open_basedir bug

On Sep 30, 2009, at 7:34 PM, Ryan Schmidt wrote:

> On Sep 30, 2009, at 19:39, Scott Haneda wrote:
>
>> Hi, I am hitting this one hard, just migrated a bunch of sites from  
>> one serve to another:
>> http://bugs.php.net/bug.php?id=48880
>>
>> Is there any way to get this patch into the php5 macports? It  
>> exposes a good deal of directory data, and also makes random  
>> failures occur on all sites.
>
> Thanks for bringing this issue to my attention. The patch looks  
> simple enough. I'll see if I can add it to the current port.
>
> php 5.3.1 will of course include the fix. I thought 5.3.1 would have  
> been out by now. Guess they're still testing things.

Awesome.  I was going to rebuild php, but if this is on the way, the  
patch should very well make a rebuild happen anyway.  Please let me  
know if you need a tester, I need to get this fixed before too many  
people notice :)
--

-- 
Scott * If you contact me off list replace talklists <at>  with scott <at>  *


Gmane