summaryrefslogtreecommitdiff
path: root/Zend/zend.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.c
parent24124518ab1387dcc63e3ddeec2acdf43362e20f (diff)
downloadphp-git-ff9d0fcc783c19d729ae475fe8baf76d94a003a9.tar.gz
is_numeric_string() optimization
# Original Patch by Matt Wilmas
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 7192371736..6801cc4db0 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -214,7 +214,7 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop
}
break;
case IS_RESOURCE:
- expr_copy->value.str.val = (char *) emalloc(sizeof("Resource id #")-1 + MAX_LENGTH_OF_LONG);
+ expr_copy->value.str.val = (char *) emalloc(sizeof("Resource id #") + MAX_LENGTH_OF_LONG);
expr_copy->value.str.len = sprintf(expr_copy->value.str.val, "Resource id #%ld", expr->value.lval);
break;
case IS_ARRAY: