Skip to content

Commit

Permalink
#828 - Change true to 1 to be PHP7.4 complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Apr 5, 2021
1 parent 12fbdc5 commit 889ef5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernels/ZendEngine3/operators.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ long zephir_get_intval_ex(const zval *op)
case IS_STRING: {
ASSUME(Z_STRVAL_P(op) != NULL);

type = is_numeric_string(Z_STRVAL_P(op), Z_STRLEN_P(op), &long_value, &double_value, true);
type = is_numeric_string(Z_STRVAL_P(op), Z_STRLEN_P(op), &long_value, &double_value, 1);
switch (type) {
case IS_LONG:
return long_value;
Expand Down Expand Up @@ -384,7 +384,7 @@ double zephir_get_doubleval_ex(const zval *op)
return Z_DVAL_P(op);

case IS_STRING:
type = is_numeric_string(Z_STRVAL_P(op), Z_STRLEN_P(op), &long_value, &double_value, true);
type = is_numeric_string(Z_STRVAL_P(op), Z_STRLEN_P(op), &long_value, &double_value, 1);
switch (type) {
case IS_LONG:
return (double) long_value;
Expand Down

0 comments on commit 889ef5b

Please sign in to comment.