Bug 528760

Summary: Fix misspelled constant PREG_SPLIT_NI_EMPTY in sqimap_get_message
Product: Red Hat Enterprise Linux 4 Reporter: Adam Stokes <astokes>
Component: squirrelmailAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED WONTFIX QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: low    
Version: 4.9CC: tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 528758 Environment:
Last Closed: 2010-03-05 13:58:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 528758    
Bug Blocks:    
Attachments:
Description Flags
fix typo none

Description Adam Stokes 2009-10-13 15:56:33 UTC
Created attachment 364618 [details]
fix typo

+++ This bug was initially created as a clone of Bug #528758 +++

Created an attachment (id=364617)
fix typo

Description of problem:

There was a CONSTANT typo in squirrelmail version < 1.4.9, this was fixed in December of 2006 resulting in the following errors:

Error while replying:
Warning: preg_split() expects parameter 4 to be long, string given in
/usr/share/squirrelmail/functions/imap_messages.php on line 808

Error while sending regularly:
Warning: Invalid argument supplied for foreach() in
/usr/share/squirrelmail/functions/mime.php on line 52


How reproducible:

view /usr/share/squirrelmail/functions/imap_messages.php on line 808 in rhel4, squirrelmail-1.4.8-5.el4_8.5.noarch

[root@esx02-sa-el4-i386 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
[root@esx02-sa-el4-i386 ~]# rpm -q squirrelmail
squirrelmail-1.4.8-5.el4_8.5
[root@esx02-sa-el4-i386 ~]# grep -n /usr/share/squirrelmail/functions/imap_messages.php -e PREG_SPLIT_NI
808:                $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
[root@esx02-sa-el4-i386 ~]#


Steps to Reproduce:



Actual results:

Expected results:

Additional info:

http://squirrelmail.org/changelog.php

Version 1.4.9 - 2 December 2006
- Fix misspelled constant PREG_SPLIT_NI_EMPTY in sqimap_get_message (#1543573).

Comment 1 Michal Hlavinka 2010-03-05 13:58:35 UTC
I'm sorry for not addressing the issue in RHEL-4. As squirrelmail
is not scheduled for update in RHEL-4.9, I'm closing that bugzilla WONTFIX. If
you are still experiencing the issue with RHEL-5, feel free to reopen it
against RHEL-5.