PHP 5.3

Support/Development for PHP
premierhosting
Forum Regular
Forum Regular
Posts: 257
Joined: Wed Aug 04, 2010 2:52 pm

PHP 5.3

Unread post by premierhosting »

Howdy,

I know PHP 5.3 isn't live because of reasons, but I just figured I'd share why I think it would be great to get it up to speed.

1. Native ability to log mail() commands. This means you can track exactly what script on what domain is being used to spam from your system.
2. PHP 5.2 is no longer in development.

That's all.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP 5.3

Unread post by scott »

The atomic version has had that feature since 5.2.5 if I recall.
premierhosting
Forum Regular
Forum Regular
Posts: 257
Joined: Wed Aug 04, 2010 2:52 pm

Re: PHP 5.3

Unread post by premierhosting »

For serious? Where's the log?
premierhosting
Forum Regular
Forum Regular
Posts: 257
Joined: Wed Aug 04, 2010 2:52 pm

Re: PHP 5.3

Unread post by premierhosting »

It would be great to find this. I see email going through the queue with a foreign from address, and unless the ASL qmail is an open relay, I think some PHP script is allowing this.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP 5.3

Unread post by scott »

Its actually the exact same feature that was merged into 5.3, so the same documentation applies. There are ini settings that let you either add a header into the message, or log the use of the function. One thing to be aware of with plesk is that the open_basedir restriction would effect where that log will go, so generally i add them on a per vhost.conf basis.
premierhosting
Forum Regular
Forum Regular
Posts: 257
Joined: Wed Aug 04, 2010 2:52 pm

Re: PHP 5.3

Unread post by premierhosting »

For everyone's enjoyment:

Adding to the mail section in /etc/php.ini

Code: Select all

mail.log = /var/log/mail_php.log
Then...

Code: Select all

touch /var/log/mail_php.log
chown apache.apache /var/log/mail_php.log
service httpd restart
It works great. I'm not seeing any open_basedir restrictions.

Is this an ART or an ASL patch? Either way, it's beautiful, thank you!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: PHP 5.3

Unread post by scott »

I dont recall the original author, but that patch ultimately was merged into 5.3 as a main-line feature.
Post Reply