cvs: php4(PHP_4_3) /ext/standard string.c

From: Date: Sun, 06 Oct 2002 18:39:14 +0000
Subject: cvs: php4(PHP_4_3) /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14629@lists.php.net to get a copy of this message
sander Sun Oct 6 14:39:14 2002 EDT Modified files: (Branch: PHP_4_3) /php4/ext/standard string.c Log: MFH Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.313.2.1 php4/ext/standard/string.c:1.313.2.2 --- php4/ext/standard/string.c:1.313.2.1 Sun Oct 6 07:31:19 2002 +++ php4/ext/standard/string.c Sun Oct 6 14:39:14 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.313.2.1 2002/10/06 11:31:19 sander Exp $ */ +/* $Id: string.c,v 1.313.2.2 2002/10/06 18:39:14 sander Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -860,14 +860,14 @@ } if (argc == 1) { - MAKE_STD_ZVAL(delim); -#define _IMPL_EMPTY "" - ZVAL_STRINGL(delim, _IMPL_EMPTY, sizeof(_IMPL_EMPTY) - 1, 0); - if (Z_TYPE_PP(arg1) != IS_ARRAY) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Argument to implode must be an array."); return; } + + MAKE_STD_ZVAL(delim); +#define _IMPL_EMPTY "" + ZVAL_STRINGL(delim, _IMPL_EMPTY, sizeof(_IMPL_EMPTY) - 1, 0); SEPARATE_ZVAL(arg1); arr = *arg1;

« previous php.cvs (#14629) next »