mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
- Change the place CAST uses for the op_type
This commit is contained in:
parent
599813d73a
commit
f2471fd50a
@ -1892,7 +1892,7 @@ void do_cast(znode *result, znode *expr, int type CLS_DC)
|
||||
opline->result.u.var = get_temporary_variable(CG(active_op_array));
|
||||
opline->op1 = *expr;
|
||||
SET_UNUSED(opline->op2);
|
||||
opline->op2.u.constant.type = type;
|
||||
opline->extended_value = type;
|
||||
*result = opline->result;
|
||||
}
|
||||
|
||||
|
@ -2001,7 +2001,7 @@ send_by_ref:
|
||||
if (!EG(free_op1)) {
|
||||
zendi_zval_copy_ctor(*result);
|
||||
}
|
||||
switch (opline->op2.u.constant.type) {
|
||||
switch (opline->extended_value) {
|
||||
case IS_NULL:
|
||||
convert_to_null(result);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user