6.0.0-alpha14
7/1/25

[#11820] PHP Fatal error on sorting a mailbox by FROM column
Summary PHP Fatal error on sorting a mailbox by FROM column
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester aria (at) bsc (dot) gwu (dot) edu
Created 12/05/2012 (4591 days ago)
Due
Updated 12/06/2012 (4590 days ago)
Assigned
Resolved 12/05/2012 (4591 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/06/2012 11:10:41 PM aria (at) bsc (dot) gwu (dot) edu Comment #6 Reply to this comment
Fatal error: Can't inherit abstract function Iterator::next()
(previously declared abstract in Horde_Imap_Client_Tokenize) in
/usr/share/php5/PEAR/Horde/Imap/Client/Tokenize.php on line 29
See http://lists.horde.org/archives/horde/Week-of-Mon-20121203/045767.html

In short: the code is not broken - your PHP version is.  However, I 
have released Horde_Imap_Client 2.3.2 to revert this for now.
Michael,  Thanks for the update.  I can confirm that the bug is fixed 
and I no longer get the PHP error.

Regarding
http://lists.horde.org/archives/horde/Week-of-Mon-20121203/045767.html
for the record, I am using SLES 11-SP2 with PHP 5.3.8 as provided by 
the distribution.  Most larger organizations have contracted 
agreements with distribution provers, in my case SUSE for support ans 
security patches.  In order for the servers to remain in a supportable 
level, and from the point of view of security auditors, I cannot just 
remove the distribution version of PHP and replace it with the latest 
version.  SUSE will support the version provided on their distribution 
and will continue to provide the patches and security fixes through 
their channels.

I hope that you would consider the dilemma that I and others are in 
with regards to versions of PHP and other supporting software.  I do 
understand that you cannot be held responsible for the bugs in other 
software.

Thank you for correcting this bug.


12/06/2012 09:25:39 PM Michael Slusarz Comment #5 Reply to this comment
Fatal error: Can't inherit abstract function Iterator::next() 
(previously declared abstract in Horde_Imap_Client_Tokenize) in 
/usr/share/php5/PEAR/Horde/Imap/Client/Tokenize.php on line 29
See http://lists.horde.org/archives/horde/Week-of-Mon-20121203/045767.html

In short: the code is not broken - your PHP version is.  However, I 
have released Horde_Imap_Client 2.3.2 to revert this for now.
12/06/2012 03:44:28 PM aria (at) bsc (dot) gwu (dot) edu Comment #4 Reply to this comment
Fixed in Horde_Imap_Client 2.3.1.
After upgrading package Horde_Imap_Client from my 2.3.0 level to the 
new 2.3.1 level, I can no longer login (IMP authentication via IMAP 
server).  The login page apperars, but when I submit, I receive PHP 
error:

Fatal error: Can't inherit abstract function Iterator::next() 
(previously declared abstract in Horde_Imap_Client_Tokenize) in 
/usr/share/php5/PEAR/Horde/Imap/Client/Tokenize.php on line 29

I reverted back to 2.3.0 level and the problem went away.

Thanks.
12/05/2012 10:11:36 PM Michael Slusarz Assigned to Michael Slusarz
 
12/05/2012 10:11:16 PM Michael Slusarz Comment #3
Version ⇒ Git master
State ⇒ Resolved
Queue ⇒ Horde Framework Packages
Reply to this comment
Fixed in Horde_Imap_Client 2.3.1.
12/05/2012 10:09:49 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit b756b2689e88d4a991e3cbabb9c5fd1d0fad4206
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Wed Dec 5 15:08:57 2012 -0700

     [mms] Fix client-side address sorting (Bug #11820).

  .../lib/Horde/Imap/Client/Socket/ClientSort.php    |   12 ++++++------
  framework/Imap_Client/package.xml                  |    2 ++
  2 files changed, 8 insertions(+), 6 deletions(-)

http://git.horde.org/horde-git/-/commit/b756b2689e88d4a991e3cbabb9c5fd1d0fad4206
12/05/2012 09:34:55 PM aria (at) bsc (dot) gwu (dot) edu Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ PHP Fatal error on sorting a mailbox by FROM column
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
I am using Horde 5.02 with IMP 6.02 and have found what appears to be a bug
in the PEAR/Horde/Imap/Client/Socket/ClientSort.php module when sorting a
mailbox by the 'From' column AND when IMP is connected to an IMAP server
with the SORT capability turned off (or a server that does not support SORT
capability).

Sorting by the FROM column will result in PHP error:

PHP Fatal error:  Cannot use object of type Horde_Mail_Rfc822_Address as
array in /usr/share/php5/PEAR/Horde/Imap/Client/Socket/ClientSort.php on
line 225

I have confirmed this using two IMAP servers.  I connected to a Cyrus IMAP
server and used the  following setting in my IMP backends.local.php file:

$servers['imap']['capability_ignore'] = array('SORT');


Thanks.

Saved Queries