php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53587
Patch php-5.3-zip_fseeko.patch revision 2010-12-21 10:27 UTC by jerome dot auge at anakeen dot com

Patch php-5.3-zip_fseeko.patch for Zip Related Bug #53587

Patch version 2010-12-21 10:27 UTC

Return to Bug #53587 | Download this patch
Patch Revisions:

Developer: jerome.auge@anakeen.com

--- ./lib/zipint.h.orig	2010-12-21 09:18:15.000000000 +0100
+++ ./lib/zipint.h	2010-12-21 10:21:43.000000000 +0100
@@ -52,12 +52,14 @@
 # define strcmpi strcasecmp 
 #endif
 
+/*
 #ifndef HAVE_FSEEKO
 #define fseeko(s, o, w)	(fseek((s), (long int)(o), (w)))
 #endif
 #ifndef HAVE_FTELLO
 #define ftello(s)	((long)ftell((s)))
 #endif
+*/
 
 
 
@@ -174,8 +176,8 @@
     struct zip_dirent *entry;	/* directory entries */
     int nentry;			/* number of entries */
 
-    unsigned int size;		/* size of central direcotry */
-    unsigned int offset;	/* offset of central directory in file */
+    off_t size;			/* size of central direcotry */
+    off_t offset;		/* offset of central directory in file */
     char *comment;		/* zip archive comment */
     unsigned short comment_len;	/* length of zip archive comment */
 };
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 15 12:01:34 2019 UTC