stas            Tue Feb 12 01:30:58 2008 UTC

  Modified files:              
    /php-src/ext/standard       file.c 
  Log:
  fix build
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.510&r2=1.511&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.510 php-src/ext/standard/file.c:1.511
--- php-src/ext/standard/file.c:1.510   Sun Feb 10 04:09:12 2008
+++ php-src/ext/standard/file.c Tue Feb 12 01:30:58 2008
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: file.c,v 1.510 2008/02/10 04:09:12 felipe Exp $ */
+/* $Id: file.c,v 1.511 2008/02/12 01:30:58 stas Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1368,11 +1368,12 @@
        }
 
        if (Z_TYPE_P(zstring) == IS_UNICODE) {
+               int32_t write_uchars = 0;
+
                if (write_len < 0 || write_len > Z_USTRLEN_P(zstring)) {
                        write_len = Z_USTRLEN_P(zstring);
                }
                /* Convert code units to data points */
-               int32_t write_uchars = 0;
 
                U16_FWD_N(Z_USTRVAL_P(zstring), write_uchars, 
Z_USTRLEN_P(zstring), write_len);
                write_len = write_uchars;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to