Skip to content

Commit b83484d

Browse files
committed
ext/session: Use is_numeric_str helper
1 parent ac3807e commit b83484d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/session/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2603,7 +2603,7 @@ PHP_FUNCTION(session_start)
26032603
if (Z_TYPE_P(value) != IS_STRING) {
26042604
tmp = zval_get_long(value);
26052605
} else {
2606-
if (is_numeric_string(Z_STRVAL_P(value), Z_STRLEN_P(value), &tmp, NULL, false) != IS_LONG) {
2606+
if (is_numeric_str_function(Z_STR_P(value), &tmp, NULL) != IS_LONG) {
26072607
zend_type_error("%s(): Option \"%s\" value must be of type compatible with int, \"%s\" given",
26082608
get_active_function_name(), ZSTR_VAL(str_idx), Z_STRVAL_P(value)
26092609
);

0 commit comments

Comments
 (0)