cvs: php4 /ext/imap php_imap.c

From: Date: Thu, 17 Aug 2000 16:01:15 +0000
Subject: cvs: php4 /ext/imap php_imap.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1207@lists.php.net to get a copy of this message
chagenbu Thu Aug 17 09:01:15 2000 EDT Modified files: /php4/ext/imap php_imap.c Log: 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. Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.40 php4/ext/imap/php_imap.c:1.41 --- php4/ext/imap/php_imap.c:1.40 Thu Aug 10 10:38:14 2000 +++ php4/ext/imap/php_imap.c Thu Aug 17 09:01:14 2000 @@ -25,7 +25,7 @@ | PHP 4.0 updates: Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_imap.c,v 1.40 2000/08/10 17:38:14 joey Exp $ */ +/* $Id: php_imap.c,v 1.41 2000/08/17 16:01:14 chagenbu Exp $ */ #define IMAP41 @@ -3411,7 +3411,7 @@ } 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; }

« previous php.cvs (#1207) next »