]> granicus.if.org Git - php/commitdiff
fixed crash in add_index_bool.
authorThies C. Arntzen <thies@php.net>
Tue, 23 Jan 2001 15:30:18 +0000 (15:30 +0000)
committerThies C. Arntzen <thies@php.net>
Tue, 23 Jan 2001 15:30:18 +0000 (15:30 +0000)
Zend/zend_API.c

index 54467a15eecc55948f1b2655817d79d4481ff71d..2877f51a00c622f0f9c57f96b0e41a6095b46ad5 100644 (file)
@@ -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);
 }