summaryrefslogtreecommitdiff
path: root/Zend/zend_strtod.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-04-01 13:32:23 +0300
committerDmitry Stogov <dmitry@zend.com>2015-04-01 13:32:23 +0300
commitacfc31c0f803601f49a4d512d73968f50924a68c (patch)
tree0b94afd8529192cb2590463139f0ebeccdacd4f0 /Zend/zend_strtod.c
parentac470ddf1cf45ce0a9f6c2bec6c61a913d979351 (diff)
downloadphp-git-acfc31c0f803601f49a4d512d73968f50924a68c.tar.gz
Use zend_error_noreturn() for fatal errors
Diffstat (limited to 'Zend/zend_strtod.c')
-rw-r--r--Zend/zend_strtod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c
index b8a30a8efd..4fa9ee311d 100644
--- a/Zend/zend_strtod.c
+++ b/Zend/zend_strtod.c
@@ -600,7 +600,7 @@ Balloc
rv = (Bigint *)MALLOC(sizeof(Bigint) + (x-1)*sizeof(ULong));
if (!rv) {
FREE_DTOA_LOCK(0);
- zend_error(E_ERROR, "Balloc() failed to allocate memory");
+ zend_error_noreturn(E_ERROR, "Balloc() failed to allocate memory");
}
#else
len = (sizeof(Bigint) + (x-1)*sizeof(ULong) + sizeof(double) - 1)
@@ -613,7 +613,7 @@ Balloc
rv = (Bigint*)MALLOC(len*sizeof(double));
if (!rv) {
FREE_DTOA_LOCK(0);
- zend_error(E_ERROR, "Balloc() failed to allocate memory");
+ zend_error_noreturn(E_ERROR, "Balloc() failed to allocate memory");
}
#endif
rv->k = k;