From: Felipe Pena Date: Wed, 25 May 2011 22:23:48 +0000 (+0000) Subject: - Fixed ZTS build and removed unused vars X-Git-Tag: php-5.5.0alpha1~2040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=565d0063ebcd12531a2b6da4fcee19efe984fa14;p=php - Fixed ZTS build and removed unused vars --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 6ae7cdad3b..34b6468146 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -526,7 +526,7 @@ PHPAPI uid_t php_get_uid_by_name(const char *name, uid_t *uid TSRMLS_DC) char *pwbuf; if (pwbuflen < 1) { - RETURN_FALSE; + return FAILURE; } pwbuf = emalloc(pwbuflen); @@ -666,8 +666,6 @@ PHP_FUNCTION(chmod) wrapper = php_stream_locate_url_wrapper(filename, NULL, 0 TSRMLS_CC); if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) { if(wrapper && wrapper->wops->stream_metadata) { - int option; - void *value; if(wrapper->wops->stream_metadata(wrapper, filename, PHP_STREAM_META_ACCESS, &mode, NULL TSRMLS_CC)) { RETURN_TRUE; } else {