Skip to content

Commit 6f633a3

Browse files
committed
Remove special case for 0 == ""
1 parent 9125984 commit 6f633a3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Zend/zend_operators.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1967,10 +1967,6 @@ static void ZEND_FASTCALL convert_compare_result_to_long(zval *result) /* {{{ */
19671967

19681968
static int compare_long_to_string(zend_long lval, zend_string *str) /* {{{ */
19691969
{
1970-
if (ZSTR_LEN(str) == 0) {
1971-
return ZEND_NORMALIZE_BOOL(lval);
1972-
}
1973-
19741970
zend_long str_lval;
19751971
double str_dval;
19761972
zend_uchar type = is_numeric_string(ZSTR_VAL(str), ZSTR_LEN(str), &str_lval, &str_dval, 0);
@@ -1994,10 +1990,6 @@ static int compare_long_to_string(zend_long lval, zend_string *str) /* {{{ */
19941990

19951991
static int compare_double_to_string(double dval, zend_string *str) /* {{{ */
19961992
{
1997-
if (ZSTR_LEN(str) == 0) {
1998-
return ZEND_NORMALIZE_BOOL(dval);
1999-
}
2000-
20011993
zend_long str_lval;
20021994
double str_dval;
20031995
zend_uchar type = is_numeric_string(ZSTR_VAL(str), ZSTR_LEN(str), &str_lval, &str_dval, 0);

0 commit comments

Comments
 (0)