|
|
|
@ -5940,6 +5940,9 @@ void zend_do_add_static_array_element(zval *result, zval *offset, zval *expr) /* |
|
|
|
case IS_NULL: |
|
|
|
zend_symtable_update(Z_ARRVAL_P(result), "", 1, &expr, sizeof(zval *), NULL); |
|
|
|
break; |
|
|
|
case IS_RESOURCE: |
|
|
|
zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", Z_LVAL_P(offset), Z_LVAL_P(offset)); |
|
|
|
/* break missing intentionally */ |
|
|
|
case IS_LONG: |
|
|
|
case IS_BOOL: |
|
|
|
zend_hash_index_update(Z_ARRVAL_P(result), Z_LVAL_P(offset), &expr, sizeof(zval *), NULL); |
|
|
|
|