CVS update: php3/functions

From: Date: Sun, 16 Aug 1998 16:11:00 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-277@lists.php.net to get a copy of this message
Date: Sunday August 16, 1998 @ 12:11 Author: rasmus Update of /repository/php3/functions In directory asf:/export/home/rasmus/php3/functions Modified Files: imap.c Log Message: Fix potential core dumps in imap_append and imap_fetchtext_full. I set the default value to NIL here if no argument is given. Someone with their head wrapped around the c-client stuff to check to make sure this is correct. The fixed stopped the core dumps on my box here. Index: php3/functions/imap.c diff -c php3/functions/imap.c:1.8 php3/functions/imap.c:1.9 *** php3/functions/imap.c:1.8 Fri Aug 14 13:52:45 1998 --- php3/functions/imap.c Sun Aug 16 12:11:00 1998 *************** *** 371,377 **** RETURN_FALSE; } INIT (&st,mail_string,(void *) message->value.str.val,message->value.str.len); ! mail_append_full( imap_stream, folder->value.str.val,flags->value.str.val,NIL,&st); RETURN_TRUE; } --- 371,377 ---- RETURN_FALSE; } INIT (&st,mail_string,(void *) message->value.str.val,message->value.str.len); ! mail_append_full( imap_stream, folder->value.str.val,myargc==4?flags->value.str.val:NIL,NIL,&st); RETURN_TRUE; } *************** *** 583,589 **** php3_error(E_WARNING, "Unable to find stream pointer"); RETURN_FALSE; } ! RETVAL_STRING(mail_fetchtext_full (imap_stream,msgno->value.lval,NIL,flags->value.lval),1); } --- 583,589 ---- php3_error(E_WARNING, "Unable to find stream pointer"); RETURN_FALSE; } ! RETVAL_STRING(mail_fetchtext_full (imap_stream,msgno->value.lval,NIL,myargcount==3?flags->value.lval:NIL),1); } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#277) next »