Skip to content

Commit 0b8ea28

Browse files
committed
false wouldn't automaticaly switch to an array type, which resulted in an
incompatibility with PHP 3. Fixed.
1 parent cf6a2b1 commit 0b8ea28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Zend/zend_execute.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,7 @@ static void zend_fetch_dimension_address(znode *result, znode *op1, znode *op2,
672672
}
673673

674674
if (container->type==IS_NULL
675+
|| (container->type==IS_BOOL && container->value.lval==0)
675676
|| (container->type==IS_STRING && container->value.str.len==0)) {
676677
switch (type) {
677678
case BP_VAR_RW:

0 commit comments

Comments
 (0)