summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-12-26 16:44:20 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-12-26 16:44:20 +0000
commitff9d0fcc783c19d729ae475fe8baf76d94a003a9 (patch)
treed65d57b4975f5ebbb243ab538b871ca2f57d3c91 /Zend/zend_exceptions.c
parent24124518ab1387dcc63e3ddeec2acdf43362e20f (diff)
downloadphp-git-ff9d0fcc783c19d729ae475fe8baf76d94a003a9.tar.gz
is_numeric_string() optimization
# Original Patch by Matt Wilmas
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 6a7cf43bd5..8f11606517 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -404,7 +404,7 @@ static int _build_trace_string(zval **frame, int num_args, va_list args, zend_ha
} else {
line = 0;
}
- s_tmp = emalloc(Z_STRLEN_PP(file) + MAX_LENGTH_OF_LONG + 2 + 1);
+ s_tmp = emalloc(Z_STRLEN_PP(file) + MAX_LENGTH_OF_LONG + 4 + 1);
sprintf(s_tmp, "%s(%ld): ", Z_STRVAL_PP(file), line);
TRACE_APPEND_STRL(s_tmp, strlen(s_tmp));
efree(s_tmp);