6.0.0-beta1
7/27/25

[#12992] Undefined index 'key' in Imap/Client/Socket.php
Summary Undefined index 'key' in Imap/Client/Socket.php
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester martin (at) matuska (dot) org
Created 02/24/2014 (4171 days ago)
Due
Updated 02/24/2014 (4171 days ago)
Assigned
Resolved 02/24/2014 (4171 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
02/24/2014 08:13:49 PM Michael Slusarz Comment #3
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
Horde_Imap_Client 2.18.3.
02/24/2014 08:13:28 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 4b3e45520f893003ed9cb5783cac97b3b2f40863
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Feb 24 13:05:30 2014 -0700

     [mms] Fix obtaining bodypart size (Bug #12992; martin@matuska.org).

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |    2 +-
  framework/Imap_Client/package.xml                  |    4 ++--
  2 files changed, 3 insertions(+), 3 deletions(-)

http://git.horde.org/horde-git/-/commit/4b3e45520f893003ed9cb5783cac97b3b2f40863
02/24/2014 04:19:41 PM martin (at) matuska (dot) org Comment #1
Priority ⇒ 2. Medium
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Undefined index 'key' in Imap/Client/Socket.php
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
On line #2728 of Imap_Client/lib/Horde/Imap/Client/Socket.php the 
variable $key is unitialized. The foreach statement needs fixing.

-                    foreach ($c_val as $val) {
+                    foreach ($c_val as $key => $val) {

I am submitting this as a git pull request.

Saved Queries