From: Hannes Magnusson Date: Sun, 11 Jun 2006 20:33:29 +0000 (+0000) Subject: Nuke unused var X-Git-Tag: RELEASE_1_0_0RC1~2744 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53d262c04da1f7bc7b550b9785fa7a4f94cef4cc;p=php Nuke unused var --- diff --git a/ext/standard/exec.c b/ext/standard/exec.c index 1a763f049d..f6957d7dc7 100644 --- a/ext/standard/exec.c +++ b/ext/standard/exec.c @@ -59,7 +59,7 @@ int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_DC) { FILE *fp; - char *buf, *tmp=NULL; + char *buf; int l, pclose_return; char *cmd_p, *b, *d=NULL; php_stream *stream; diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 894e8ebf21..e935bb172d 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -387,7 +387,7 @@ PHP_FUNCTION(stream_get_contents) php_stream *stream; zval *zsrc; long maxlen = PHP_STREAM_COPY_ALL, pos = 0; - int len, newlen; + int len; char *contents = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ll", &zsrc, &maxlen, &pos) == FAILURE) { diff --git a/ext/standard/string.c b/ext/standard/string.c index bc580eb314..27461c2cb6 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -3520,7 +3520,7 @@ PHPAPI char *php_strtr(char *str, int len, char *str_from, char *str_to, int trl */ PHPAPI UChar *php_u_strtr(UChar *str, int len, UChar *str_from, int str_from_len, UChar *str_to, int str_to_len, int trlen, int *outlen TSRMLS_DC) { - int i, j; + int i; int can_optimize = 1; if ((trlen < 1) || (len < 1)) { diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index ba0b7007f3..2d324ce880 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -285,7 +285,7 @@ PHP_FUNCTION(gzfile) char *filename; int filename_len; long flags = 0; - char *slashed, buf[8192]; + char buf[8192]; register int i = 0; int use_include_path = 0; php_stream *stream;