]> granicus.if.org Git - php/commitdiff
false wouldn't automaticaly switch to an array type, which resulted in an
authorZeev Suraski <zeev@php.net>
Sat, 18 Mar 2000 14:28:03 +0000 (14:28 +0000)
committerZeev Suraski <zeev@php.net>
Sat, 18 Mar 2000 14:28:03 +0000 (14:28 +0000)
incompatibility with PHP 3.  Fixed.

Zend/zend_execute.c

index 44dab2b10c6e389fa2ae502dc3862e48c0c7319b..3b1c05c2b5a0e37577e4aba0c1b9fbb7614cf33d 100644 (file)
@@ -672,6 +672,7 @@ static void zend_fetch_dimension_address(znode *result, znode *op1, znode *op2,
        }
 
        if (container->type==IS_NULL
+               || (container->type==IS_BOOL && container->value.lval==0)
                || (container->type==IS_STRING && container->value.str.len==0)) {
                switch (type) {
                        case BP_VAR_RW: