From c1112ff323c9dd1a4596aa4272e918acf0f797eb Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 11 Oct 2016 14:39:16 -0700 Subject: [PATCH] fix tsrm --- ext/standard/math.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/math.c b/ext/standard/math.c index 8290b2044f..bb64425ee3 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -1124,7 +1124,7 @@ static char *_php_math_number_format_ex_len(double d, int dec, char *dec_point, if (thousand_sep) { if (integral + thousand_sep_len * ((integral-1) / 3) < integral) { /* overflow */ - php_error_docref(NULL TSRMLS_CC, E_ERROR, "String overflow"); + zend_error(E_ERROR, "String overflow"); } integral += thousand_sep_len * ((integral-1) / 3); } @@ -1137,7 +1137,7 @@ static char *_php_math_number_format_ex_len(double d, int dec, char *dec_point, if (dec_point) { if (reslen + dec_point < dec_point) { /* overflow */ - php_error_docref(NULL TSRMLS_CC, E_ERROR, "String overflow"); + zend_error(E_ERROR, "String overflow"); } reslen += dec_point_len; } -- 2.40.0