From: Stanislav Malyshev Date: Tue, 11 Oct 2016 21:39:16 +0000 (-0700) Subject: fix tsrm X-Git-Tag: php-5.6.28RC1~9^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1112ff323c9dd1a4596aa4272e918acf0f797eb;p=php fix tsrm --- 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; }