|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19442 In a loop of gzopen gzclose the server stops
Submitted: 2002-09-16 15:42 UTC Modified: 2002-10-27 19:06 UTC
Avg. Score:4.3 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:3 (100.0%)
From: rodrigo-rocha at oi dot net dot br Assigned:
Status: No Feedback Package: Zlib related
PHP Version: 4.2.3 OS: windows/?
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-09-16 15:42 UTC] rodrigo-rocha at oi dot net dot br
This script will make the setver to crash down


$filepointer = gzopen("somefile.txt","rb");

echo "<script>

At my apache web server this crash after 508 loops.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-17 00:15 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2002-10-08 21:48 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-27 19:06 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2003-01-21 04:05 UTC] bosman at wlkp dot org
I've the same problem with fresh instalation of php 4.3.0 under Windows 2000 Server SP3, both under Apache 2.0.44 as module and with plain php.exe (CLI version).

This code works similar:
for ($i = 1; $i < 200; $i++) {
  $gz = fopen("compress.zlib://C:/Temp/$i.gz", "wb");
  fwrite($gz, "Test");
 [2003-04-27 14:48 UTC] Suicidal_Insanity at stormcoast-fortress dot ne
also have the same issue under apache / php 4.3.0 / windows 2000 SP 3, crashes during the 508th call to my parse code.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 17:01:28 2024 UTC