]> granicus.if.org Git - php/commitdiff
Nuke unused var
authorHannes Magnusson <bjori@php.net>
Sun, 11 Jun 2006 20:33:29 +0000 (20:33 +0000)
committerHannes Magnusson <bjori@php.net>
Sun, 11 Jun 2006 20:33:29 +0000 (20:33 +0000)
ext/standard/exec.c
ext/standard/streamsfuncs.c
ext/standard/string.c
ext/zlib/zlib.c

index 1a763f049d64c84ad67e8051e4ec86fc2aabeebd..f6957d7dc71a127376334c44071b9f06bcf11e17 100644 (file)
@@ -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;
index 894e8ebf21672da6fac1ed0d65027dc4673e7a99..e935bb172d23f769df77ed4866508150c3e6c7ff 100644 (file)
@@ -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) {
index bc580eb314bf18f92265a8b7b22a760af2e2b4a9..27461c2cb624e81233082ee9eadffb4f66788f20 100644 (file)
@@ -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)) {
index ba0b7007f3883be40d1a940c13553289e86da3a4..2d324ce880a8ff2a299ae024b88fbe56c2ca902c 100644 (file)
@@ -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;