Re: PHP 5.2.0RC6 Testing
| From: | Phil Driscoll | Date: | Fri, 20 Oct 2006 09:32:17 +0000 |
| Subject: | Re: PHP 5.2.0RC6 Testing | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-26940@lists.php.net to get a copy of this message | ||
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