php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53829
Patch zlib-largefile-function-renaming revision 2013-02-08 12:24 UTC by skettler@php.net
Patch gzopen64 revision 2012-08-26 10:57 UTC by comments at sentfrom dot com

Patch gzopen64 for Zlib related Bug #53829

Patch version 2012-08-26 10:57 UTC

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

Developer: comments@sentfrom.com

--- php-5.4.6/ext/zlib/zlib.c.dist	Tue Aug 14 21:26:05 2012
+++ php-5.4.6/ext/zlib/zlib.c	Sun Aug 26 03:49:01 2012
@@ -841,7 +841,11 @@
 	PHP_FALIAS(gzgets,		fgets,			arginfo_gzgets)
 	PHP_FALIAS(gzgetss,		fgetss,			arginfo_gzgetss)
 	PHP_FALIAS(gzread,		fread,			arginfo_gzread)
+#ifdef gzopen
+    ZEND_RAW_FENTRY("gzopen", ZEND_FN(gzopen64), arginfo_gzopen, 0)
+#else
 	PHP_FE(gzopen,							arginfo_gzopen)
+#endif
 	PHP_FALIAS(gzpassthru,	fpassthru,		arginfo_gzpassthru)
 	PHP_FALIAS(gzseek,		fseek,			arginfo_gzseek)
 	PHP_FALIAS(gztell,		ftell,			arginfo_gzpassthru)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC