Bug #11932: When mb_send_mail function receive 5 argument, PHP doesn't show any screen.
| From: | yaemon at alles dot or dot jp | Date: | Fri, 06 Jul 2001 13:52:31 +0000 |
| Subject: | Bug #11932: When mb_send_mail function receive 5 argument, PHP doesn't show any screen. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59086@lists.php.net to get a copy of this message | ||
From: yaemon@alles.or.jp
Operating system: FreeBSD 4.2-RELEASE
PHP version: 4.0.6
PHP Bug Type: Unknown/Other Function
Bug description: When mb_send_mail function receive 5 argument, PHP doesn't show any screen.
patch is here
-----------------------------------------------------------------
*** php-4.0.6.org/ext/mbstring/mbstring.c Wed Jun 20
22:01:49 2001
--- php-4.0.6.new/ext/mbstring/mbstring.c Fri Jul 6
17:09:41 2001
***************
*** 2527,2531 ****
{
int argc, n;
! pval **argv[4];
char *to=NULL, *message=NULL, *headers=NULL,
*subject=NULL, *extra_cmd=NULL;
char *message_buf=NULL, *subject_buf=NULL, *p;
--- 2527,2531 ----
{
int argc, n;
! pval **argv[5];
char *to=NULL, *message=NULL, *headers=NULL,
*subject=NULL, *extra_cmd=NULL;
char *message_buf=NULL, *subject_buf=NULL, *p;
***************
*** 2622,2626 ****
#define PHP_MBSTR_MAIL_MIME_HEADER2 "; charset="
#define PHP_MBSTR_MAIL_MIME_HEADER3
"\nContent-Transfer-Encoding: "
! if (argc == 4) {
convert_to_string_ex(argv[3]);
p = Z_STRVAL_PP(argv[3]);
--- 2622,2626 ----
#define PHP_MBSTR_MAIL_MIME_HEADER2 "; charset="
#define PHP_MBSTR_MAIL_MIME_HEADER3
"\nContent-Transfer-Encoding: "
! if (argc >= 4) {
convert_to_string_ex(argv[3]);
p = Z_STRVAL_PP(argv[3]);
--
Edit Bug report at: http://bugs.php.net/?id=11932&edit=1