From: Gustavo André dos Santos Lopes Date: Sat, 28 Apr 2012 15:32:44 +0000 (+0100) Subject: Fix build on MS Windows X-Git-Tag: php-5.5.0alpha1~259 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffec6144123b3d4fdd40be1d8d130f60cb2594d2;p=php Fix build on MS Windows --- diff --git a/ext/standard/pack.c b/ext/standard/pack.c index a21d41bda7..61228a63df 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -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;