From: Marcus Boerger Date: Tue, 21 Feb 2006 09:12:32 +0000 (+0000) Subject: - Ansi compliance issue found by rob X-Git-Tag: RELEASE_1_2~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=416f3ef16024daf737addf67dd5f316efe2da171;p=php - Ansi compliance issue found by rob --- diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 76a49ed644..36b58de133 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4171,6 +4171,7 @@ ZEND_METHOD(reflection_extension, getDependencies) while(dep->name) { char *relation; char *rel_type; + int len; switch(dep->type) { case MODULE_DEP_REQUIRED: @@ -4187,7 +4188,7 @@ ZEND_METHOD(reflection_extension, getDependencies) break; } - int len = spprintf(&relation, 0, "%s%s%s%s%s", + len = spprintf(&relation, 0, "%s%s%s%s%s", rel_type, dep->rel ? " " : "", dep->rel ? dep->rel : "",