diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-12-26 16:44:20 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-12-26 16:44:20 +0000 |
commit | ff9d0fcc783c19d729ae475fe8baf76d94a003a9 (patch) | |
tree | d65d57b4975f5ebbb243ab538b871ca2f57d3c91 /Zend/zend.c | |
parent | 24124518ab1387dcc63e3ddeec2acdf43362e20f (diff) | |
download | php-git-ff9d0fcc783c19d729ae475fe8baf76d94a003a9.tar.gz |
is_numeric_string() optimization
# Original Patch by Matt Wilmas
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 2 |
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: |