summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--ext/imap/php_imap.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 64d2b15991..e2fe01d542 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? Apr 2008, PHP 5.2.6
+- Fixed bug #44557 (Crash in imap_setacl when supplied integer as username)
+ (Thomas Jarosch)
27 Mar 2008, PHP 5.2.6RC3
- Properly address incomplete multibyte chars inside escapeshellcmd() (Ilia,
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index ffad65cc6a..3d6f3c6c8f 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -1051,6 +1051,7 @@ PHP_FUNCTION(imap_setacl)
ZEND_FETCH_RESOURCE(imap_le_struct, pils *, streamind, -1, "imap", le_imap);
convert_to_string_ex(mailbox);
+ convert_to_string_ex(id);
convert_to_string_ex(rights);
RETURN_BOOL(imap_setacl(imap_le_struct->imap_stream, Z_STRVAL_PP(mailbox), Z_STRVAL_PP(id), Z_STRVAL_PP(rights)));