From: Felipe Pena Date: Fri, 28 Mar 2008 16:43:49 +0000 (+0000) Subject: Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) (patch... X-Git-Tag: php-5.2.6RC4~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd6f77d569962033261a6d6e6bb799b1a4cd09e2;p=php Fixed bug #44557 (Crash in imap_setacl when supplied integer as username) (patch by Thomas Jarosch) --- 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)));