php.net |  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
Votes:3
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rodrigo-rocha at oi dot net dot br
New email:
PHP Version: OS:

 

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

<?php

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

echo "<script>
   window.location='$_SERVER[REQUEST_URI]';
   </script>";

?>
At my apache web server this crash after 508 loops.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-17 00:15 UTC] mfischer@php.net
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
http://bugs.php.net/bugs-generating-backtrace.php

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] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [2002-10-27 19:06 UTC] sniper@php.net
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");
  fclose($gz);
}
 [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: Fri Dec 06 04:01:28 2024 UTC