diff options
author | Stanislav Malyshev <stas@php.net> | 2016-10-11 14:39:16 -0700 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2016-10-11 14:39:16 -0700 |
commit | c1112ff323c9dd1a4596aa4272e918acf0f797eb (patch) | |
tree | 58fcae0a34767e6b616dcccaddc3d6f79d8a6c2b | |
parent | 21452a5401e9c7e34227b9241495f5839cfc3234 (diff) | |
download | php-git-c1112ff323c9dd1a4596aa4272e918acf0f797eb.tar.gz |
fix tsrm
-rw-r--r-- | ext/standard/math.c | 4 |
1 files 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; } |