mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- silent warning, NULL is not 0
This commit is contained in:
parent
95b781c992
commit
cdeee70a88
1 changed files with 3 additions and 3 deletions
|
@ -1191,7 +1191,7 @@ PHP_FUNCTION(imap_reopen)
|
||||||
zval *streamind;
|
zval *streamind;
|
||||||
char *mailbox;
|
char *mailbox;
|
||||||
int mailbox_len;
|
int mailbox_len;
|
||||||
long options = NULL, retries = NULL;
|
long options = 0, retries = 0;
|
||||||
pils *imap_le_struct;
|
pils *imap_le_struct;
|
||||||
MAILSTREAM *imap_stream;
|
MAILSTREAM *imap_stream;
|
||||||
long flags=NIL;
|
long flags=NIL;
|
||||||
|
@ -1561,7 +1561,7 @@ PHP_FUNCTION(imap_body)
|
||||||
pils *imap_le_struct;
|
pils *imap_le_struct;
|
||||||
int msgindex, argc = ZEND_NUM_ARGS();
|
int msgindex, argc = ZEND_NUM_ARGS();
|
||||||
char *body;
|
char *body;
|
||||||
unsigned long body_len;
|
unsigned long body_len = 0;
|
||||||
|
|
||||||
if (zend_parse_parameters(argc TSRMLS_CC, "rl|l", &streamind, &msgno, &flags) == FAILURE) {
|
if (zend_parse_parameters(argc TSRMLS_CC, "rl|l", &streamind, &msgno, &flags) == FAILURE) {
|
||||||
return;
|
return;
|
||||||
|
@ -2845,7 +2845,7 @@ PHP_FUNCTION(imap_setflag_full)
|
||||||
zval *streamind;
|
zval *streamind;
|
||||||
char *sequence, *flag;
|
char *sequence, *flag;
|
||||||
int sequence_len, flag_len;
|
int sequence_len, flag_len;
|
||||||
long flags = NULL;
|
long flags = 0;
|
||||||
pils *imap_le_struct;
|
pils *imap_le_struct;
|
||||||
|
|
||||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|l", &streamind, &sequence, &sequence_len, &flag, &flag_len, &flags) == FAILURE) {
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss|l", &streamind, &sequence, &sequence_len, &flag, &flag_len, &flags) == FAILURE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue