MFB: Fixed bug #44557 (Crash in imap_setacl when supplied integer as username)

This commit is contained in:
Felipe Pena 2008-03-28 16:45:05 +00:00
parent f66f55edc5
commit 3946b1fd29

View File

@ -1057,6 +1057,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)));