Skip to content

Commit

Permalink
#1259 - Update code in ext/ directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Apr 24, 2021
1 parent ffc3d78 commit 87d85a9
Show file tree
Hide file tree
Showing 8 changed files with 220 additions and 20 deletions.
4 changes: 2 additions & 2 deletions ext/kernel/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ int ZEPHIR_FASTCALL zephir_array_unset(zval *arr, zval *index, int flags)
return (zend_symtable_del(ht, Z_STR_P(index)) == SUCCESS);

default:
zend_error(E_WARNING, "Illegal offset type");
zend_error(E_WARNING, "Passed index has illegal offset type (check zephir_array_unset())");
return 0;
}
}
Expand All @@ -387,7 +387,7 @@ int ZEPHIR_FASTCALL zephir_array_unset_string(zval *arr, const char *index, uint
}

if ((flags & PH_SEPARATE) == PH_SEPARATE) {
SEPARATE_ARRAY(arr);
SEPARATE_ZVAL(arr);
}

return zend_hash_str_del(Z_ARRVAL_P(arr), index, index_length);
Expand Down
2 changes: 1 addition & 1 deletion ext/kernel/concat.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ void zephir_concat_vvv(zval *result, zval *op1, zval *op2, zval *op3, int self_v
void zephir_concat_function(zval *result, zval *op1, zval *op2)
{
zval tmp;
SEPARATE_ZVAL(result);
SEPARATE_ZVAL_NOREF(result);

/*
res == op1 == op2: won't leak
Expand Down
7 changes: 5 additions & 2 deletions ext/stub/arrayaccessobj.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 44 additions & 9 deletions ext/stub/arrayaccesstest.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions ext/stub/arrayaccesstest.zep.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

149 changes: 148 additions & 1 deletion ext/stub/assign.zep.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions ext/stub/assign.zep.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 87d85a9

Please sign in to comment.