After recent PHP updates there is a bug in squirrelmail where they is a typo. on line 926 in functions/imap_messages.php there is the following code: $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NO_EMPTY'); This needs to be changed to: $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY); The PREG_SPLIT_NO_EMPTY in the original line is being used as a string rather than a long value and this is where the problem comes from. I guess this needs to be passed back up to the Squirrelmail devs? :-) Reproducible: Always
(In reply to comment #0) > After recent PHP updates > I guess this needs to be passed back up to the Squirrelmail devs? :-) Yeah, so do it?
> Yeah, so do it? Thank you for your constructive comment.....what are you 10 years old?!
Looks like this is already fixed in 1.4.9a (which is stable for all arches): ticho@thelair ~/wrk/squirrelmail-1.4.9a/functions $ grep PREG_SPLIT_NO_EMPTY imap_messages.php $thread_new[$i] = preg_split("/\|/", $thread_new[$i], -1, PREG_SPLIT_NO_EMPTY); $thread_temp = preg_split("//", $thread_list, -1, PREG_SPLIT_NO_EMPTY); $thread_list = preg_split("/\s/", $thread_list, -1, PREG_SPLIT_NO_EMPTY); $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY); ticho@thelair ~/wrk/squirrelmail-1.4.9a/functions $ Thank you for your concern though, and... Just ignore Jakub please.
Sorry, I forgot to say that I'm using the squirrelmail-1.5.1-r1 release.
(In reply to comment #4) > Sorry, I forgot to say that I'm using the squirrelmail-1.5.1-r1 release. > Fixed in upstream SVN as well. :) ticho@daria ~/svnarea/squirrelmail/functions $ grep PREG_SPLIT imap_messages.php $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY);