cvs: php4 /ext/standard string.c

From: Date: Tue, 05 Nov 2002 13:52:11 +0000
Subject: cvs: php4 /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-15820@lists.php.net to get a copy of this message
moriyoshi Tue Nov 5 08:52:11 2002 EDT Modified files: /php4/ext/standard string.c Log: style fix Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.332 php4/ext/standard/string.c:1.333 --- php4/ext/standard/string.c:1.332 Sat Nov 2 13:54:31 2002 +++ php4/ext/standard/string.c Tue Nov 5 08:52:11 2002 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.332 2002/11/02 18:54:31 iliaa Exp $ */ +/* $Id: string.c,v 1.333 2002/11/05 13:52:11 moriyoshi Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -889,9 +889,16 @@ } php_implode(delim, arr, return_value); - if (arg1 != NULL && arg1_separated) zval_ptr_dtor(arg1); - if (arg2 != NULL && arg2_separated) zval_ptr_dtor(arg2); - if (delim_needs_dtor) FREE_ZVAL(delim); + + if (arg1 != NULL && arg1_separated) { + zval_ptr_dtor(arg1); + } + if (arg2 != NULL && arg2_separated) { + zval_ptr_dtor(arg2); + } + if (delim_needs_dtor) { + FREE_ZVAL(delim); + } } /* }}} */

« previous php.cvs (#15820) next »