From: Pierre Joye Date: Sat, 25 Apr 2009 14:53:50 +0000 (+0000) Subject: - silent warning, NULL is not 0 X-Git-Tag: php-5.4.0alpha1~191^2~3857 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdeee70a88e150f35f5ab0c89e1658be5d679d0b;p=php - silent warning, NULL is not 0 --- diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 7c57dfed16..213e2b8f52 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1191,7 +1191,7 @@ PHP_FUNCTION(imap_reopen) zval *streamind; char *mailbox; int mailbox_len; - long options = NULL, retries = NULL; + long options = 0, retries = 0; pils *imap_le_struct; MAILSTREAM *imap_stream; long flags=NIL; @@ -1561,7 +1561,7 @@ PHP_FUNCTION(imap_body) pils *imap_le_struct; int msgindex, argc = ZEND_NUM_ARGS(); char *body; - unsigned long body_len; + unsigned long body_len = 0; if (zend_parse_parameters(argc TSRMLS_CC, "rl|l", &streamind, &msgno, &flags) == FAILURE) { return; @@ -2845,7 +2845,7 @@ PHP_FUNCTION(imap_setflag_full) zval *streamind; char *sequence, *flag; int sequence_len, flag_len; - long flags = NULL; + long flags = 0; pils *imap_le_struct; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|l", &streamind, &sequence, &sequence_len, &flag, &flag_len, &flags) == FAILURE) {