Browse Source

prevent mail_criteria from munging the variable passed in containing the

query - just had to add a cpystr(). if this isn't the right fix, let me
know, but it does work.
PHP-4.0.5
Chuck Hagenbuch 26 years ago
parent
commit
b436f97a53
  1. 2
      ext/imap/php_imap.c

2
ext/imap/php_imap.c

@ -3411,7 +3411,7 @@ PHP_FUNCTION(imap_search)
}
IMAPG(imap_messages) = NIL;
mail_search_full(imap_le_struct->imap_stream, NIL, mail_criteria(Z_STRVAL_PP(criteria)), flags);
mail_search_full(imap_le_struct->imap_stream, NIL, mail_criteria(cpystr(Z_STRVAL_PP(criteria))), flags);
if (IMAPG(imap_messages) == NIL) {
RETURN_FALSE;
}

Loading…
Cancel
Save