summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/math.c')
-rw-r--r--ext/standard/math.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 7014e6c938..ee06936369 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -972,12 +972,8 @@ PHPAPI zend_long _php_math_basetolong(zval *arg, int base)
if (num > onum)
continue;
- {
- TSRMLS_FETCH();
-
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Number '%s' is too big to fit in long", s);
- return ZEND_LONG_MAX;
- }
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Number '%s' is too big to fit in long", s);
+ return ZEND_LONG_MAX;
}
return num;