]> granicus.if.org Git - php/commitdiff
Fix build on MS Windows
authorGustavo André dos Santos Lopes <cataphract@php.net>
Sat, 28 Apr 2012 15:32:44 +0000 (16:32 +0100)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Sat, 28 Apr 2012 15:32:44 +0000 (16:32 +0100)
ext/standard/pack.c

index a21d41bda7569e95f9e690c398a3bc65b0b80564..61228a63df783e4a7f9603df4f595ac08d259c74 100644 (file)
@@ -719,7 +719,8 @@ PHP_FUNCTION(unpack)
                                        case 'Z': {
                                                /* Z will strip everything after the first null character */
                                                char pad = '\0';
-                                               int len = inputlen - inputpos;  /* Remaining string */
+                                               int      s,
+                                                        len = inputlen - inputpos;     /* Remaining string */
 
                                                /* If size was given take minimum of len and size */
                                                if ((size >= 0) && (len > size)) {
@@ -729,7 +730,7 @@ PHP_FUNCTION(unpack)
                                                size = len;
 
                                                /* Remove everything after the first null */
-                                               int s = 0;
+                                               s = 0;
                                                while (s++ <= len) {
                                                        if (input[inputpos + s] == pad)
                                                                break;