summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-28 16:43:49 +0000
committerFelipe Pena <felipe@php.net>2008-03-28 16:43:49 +0000
commitfd6f77d569962033261a6d6e6bb799b1a4cd09e2 (patch)
tree0908f18d15227887a434db0ba3ac6615aa9f08c3
parentdd040e75c36e8ca0285d12aa260832cfa0ed80fb (diff)
downloadphp-git-fd6f77d569962033261a6d6e6bb799b1a4cd09e2.tar.gz
Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) (patch by Thomas Jarosch)
-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)));