From: Pierre Joye Date: Wed, 7 May 2014 05:31:21 +0000 (+0200) Subject: -- missing length declaration, may have worked w/some gcc as length is not used in... X-Git-Tag: POST_PHPNG_MERGE~386 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38c886a449a54574119a8eb1c6c5e5376acba6d8;p=php -- missing length declaration, may have worked w/some gcc as length is not used in the macro but still need it, ifdef just make code uncertain. will get opt out anyway if not used --- diff --git a/main/php_ini.c b/main/php_ini.c index 2b62e80554..d742712758 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -355,6 +355,7 @@ static void php_load_php_extension_cb(void *arg TSRMLS_DC) static void php_load_zend_extension_cb(void *arg TSRMLS_DC) { char *filename = *((char **) arg); + const int length = strlen(filename); if (IS_ABSOLUTE_PATH(filename, length)) { zend_load_extension(filename TSRMLS_CC);