Re: PHP 5.2.0RC6 Testing

From: Date: Fri, 20 Oct 2006 13:17:47 +0000
Subject: Re: PHP 5.2.0RC6 Testing
References: 1 2  Groups: php.qa 
Request: Send a blank email to php-qa+get-26941@lists.php.net to get a copy of this message
It looks like a bug to me.... undefined constant converted to a string where a number is expected is a clear error. On 20-Oct-06, at 5:32 AM, Phil Driscoll wrote:
Tested with all my code, phpMyAdmin and Phorum - no problems found. Tested with Squirrelmail 1.4.8 (current stable release) and the following warnings are displayed when viewing an email (which definitely weren't there on RC5): Warning: preg_split() expects parameter 4 to be long, string given in .../functions/imap_messages.php on line 808 Line 808 reads $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY'); Warning: Invalid argument supplied for foreach() in .../functions/mime.php on line 52 Line 52 reads foreach ($flags as $flag) (this is because the $flags is the one returned above). The misspelling and quoting of the PREG_SPLIT_NO_EMPTY constant has been fixed in SquirrelMail's development branch: http://sourceforge.net/tracker/index.php?func=detail&aid=1543573&group_id=311&atid=100311 however, SquirrelMail version 1.4.8 is very widely deployed. I'm not sure why RC5 doesn't complain about this, and RC6 does. --Phil Driscoll --PHP Quality Assurance Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
Ilia Alshanetsky

« previous php.qa (#26941) next »