1
0
mirror of https://github.com/php/php-src.git synced 2026-04-08 16:43:44 +02:00
This commit is contained in:
Zeev Suraski
2000-03-13 18:01:43 +00:00
parent fe37f4bca9
commit 84569c08fc

View File

@@ -72,7 +72,7 @@ static void build_runtime_defined_function_key(zval *result, zval *name, zend_op
/* NULL, name length, filename length, line number length */
result->value.str.len = 1+name->value.str.len+strlen(filename)+lineno_len+1;
result->value.str.val = (char *) emalloc(result->value.str.len); /* Extra null byte is allocated a line before */
result->value.str.val = (char *) emalloc(result->value.str.len); /* Extra null byte is calculated a line before */
sprintf(result->value.str.val, "%c%s%s%s", '\0', name->value.str.val, filename, lineno_buf);
result->type = IS_STRING;
result->refcount = 1;