mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove type argument from zend_get_zval_ptr
As pointed out by Levi, this is unused, and we already changed the signature of this function for PHP 8.
This commit is contained in:
parent
3804858c47
commit
f60cf0cfe7
3 changed files with 8 additions and 8 deletions
|
@ -71,13 +71,13 @@ PHP 8.0 INTERNALS UPGRADE NOTES
|
|||
Instead type checks should be performed using the zend_parse_parameters()
|
||||
or ZEND_PARSE_PARAMETERS_*() APIs.
|
||||
|
||||
g. zend_free_op type and "should_free" argument of zend_get_zval_ptr() were
|
||||
removed. It's possible to get the old "should_free" value using the
|
||||
following code.
|
||||
g. The zend_free_op type and the "should_free" and "type" arguments of
|
||||
zend_get_zval_ptr() were removed. It's possible to get the old
|
||||
"should_free" value using the following code:
|
||||
|
||||
zval *ret = zend_get_zval_ptr(opline, opline->op1_type, &opline->op1,
|
||||
execute_data, BP_VAR_R);
|
||||
zval *should_free = (op_type & (IS_TMP_VAR|IS_VAR)) ? ret : NULL;
|
||||
zval *ret = zend_get_zval_ptr(
|
||||
opline, opline->op1_type, &opline->op1, execute_data);
|
||||
zval *should_free = (op_type & (IS_TMP_VAR|IS_VAR)) ? ret : NULL;
|
||||
|
||||
h. Added the zend_value_error() function, which is intended to be used
|
||||
to raise ValueError when inappropriate argument values are passed
|
||||
|
|
|
@ -4551,7 +4551,7 @@ ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(zend_uchar opcode)
|
|||
return zend_user_opcode_handlers[opcode];
|
||||
}
|
||||
|
||||
ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, int type)
|
||||
ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data)
|
||||
{
|
||||
zval *ret;
|
||||
|
||||
|
|
|
@ -327,7 +327,7 @@ ZEND_API zval* zend_get_compiled_variable_value(const zend_execute_data *execute
|
|||
ZEND_API int zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler);
|
||||
ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(zend_uchar opcode);
|
||||
|
||||
ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data, int type);
|
||||
ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data);
|
||||
|
||||
ZEND_API void zend_clean_and_cache_symbol_table(zend_array *symbol_table);
|
||||
ZEND_API void zend_free_compiled_variables(zend_execute_data *execute_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue