mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fixup
This commit is contained in:
parent
a6403b79e0
commit
30ee954ed1
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ void zend_optimizer_pass2(zend_op_array *op_array)
|
||||||
if (ZEND_OP1_TYPE(opline) == IS_CONST) {
|
if (ZEND_OP1_TYPE(opline) == IS_CONST) {
|
||||||
if (Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_STRING) {
|
if (Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_STRING) {
|
||||||
/* don't optimise if it should produce a runtime numeric string error */
|
/* don't optimise if it should produce a runtime numeric string error */
|
||||||
if (!is_numeric_string(Z_STRVAL(ZEND_OP1_LITERAL(opline)), Z_STRLEN(ZEND_OP1_LITERAL(opline)), NULL, NULL, 0)) {
|
if (is_numeric_string(Z_STRVAL(ZEND_OP1_LITERAL(opline)), Z_STRLEN(ZEND_OP1_LITERAL(opline)), NULL, NULL, 0)) {
|
||||||
convert_scalar_to_number(&ZEND_OP1_LITERAL(opline));
|
convert_scalar_to_number(&ZEND_OP1_LITERAL(opline));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -67,7 +67,7 @@ void zend_optimizer_pass2(zend_op_array *op_array)
|
||||||
if (ZEND_OP2_TYPE(opline) == IS_CONST) {
|
if (ZEND_OP2_TYPE(opline) == IS_CONST) {
|
||||||
if (Z_TYPE(ZEND_OP2_LITERAL(opline)) == IS_STRING) {
|
if (Z_TYPE(ZEND_OP2_LITERAL(opline)) == IS_STRING) {
|
||||||
/* don't optimise if it should produce a runtime numeric string error */
|
/* don't optimise if it should produce a runtime numeric string error */
|
||||||
if (!is_numeric_string(Z_STRVAL(ZEND_OP2_LITERAL(opline)), Z_STRLEN(ZEND_OP2_LITERAL(opline)), NULL, NULL, 0)) {
|
if (is_numeric_string(Z_STRVAL(ZEND_OP2_LITERAL(opline)), Z_STRLEN(ZEND_OP2_LITERAL(opline)), NULL, NULL, 0)) {
|
||||||
convert_scalar_to_number(&ZEND_OP2_LITERAL(opline));
|
convert_scalar_to_number(&ZEND_OP2_LITERAL(opline));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue