|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-10-27 16:58 UTC] me at phillipoertel dot com
most of the zlib file reading functions, like gzfile,gzread,gzpassthru,gzgetc do not work in the Apache Module version of php.
the function returns no value - without outputting any error or warning; sometimes the webserver crashes.
when i switched php to run as cgi everything works as expected.
don't know if this has been fixed, couldn't find an entry in the bugfinder.
phil.
running extensions:
extension=php_zlib.dll
extension=php_sablot.dll
extension=php_gd.dll
extension=php_pdf.dll
demo script (test.gz would be ascii text):
$log = gzfile('test.gz');
foreach ($log as $l) echo "$l<br>";
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
even with error_reporting(E_ALL) i don't get any error messages from the script. i already had tried this. i have both the cgi and win-apache server module version of php installed parallely. .php files are mapped to the php module and .phpc to cgi. that way it is very easy to compare the output of an identical script by just renaming it. while as cgi the script outputs the textfile as expected, the module doesn't give me anything. i only have one php.ini on my system, which resides in winnt\system32\php.ini. it is used by the cgi and module. <?php error_reporting(E_ALL); $log = gzfile('test.gz'); foreach ($log as $l) echo "$l<br>"; ?> phil.