From: Thies C. Arntzen Date: Tue, 23 Jan 2001 15:30:18 +0000 (+0000) Subject: fixed crash in add_index_bool. X-Git-Tag: php-4.0.5RC1~485 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=373e8301177fbe268eacdb0f32aa6d193ab647f6;p=php fixed crash in add_index_bool. --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 54467a15ee..2877f51a00 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -332,7 +332,7 @@ ZEND_API inline int add_index_bool(zval *arg, uint index, int b) zval *tmp; MAKE_STD_ZVAL(tmp); - ZVAL_BOOL(arg, b); + ZVAL_BOOL(tmp, b); return zend_hash_index_update(Z_ARRVAL_P(arg), index, (void *) &tmp, sizeof(zval *),NULL); }