Commit: ffec6144123b3d4fdd40be1d8d130f60cb2594d2 Author: Gustavo André dos Santos Lopes <cataphr...@php.net> Sat, 28 Apr 2012 16:32:44 +0100 Parents: a1f7423087c85ecd48a034d4a95a2bf19901f13d Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ffec6144123b3d4fdd40be1d8d130f60cb2594d2 Log: Fix build on MS Windows Changed paths: M ext/standard/pack.c Diff: diff --git a/ext/standard/pack.c b/ext/standard/pack.c index a21d41b..61228a6 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; -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php