php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25478 zlib.output_compression = on
Submitted: 2003-09-10 16:55 UTC Modified: 2003-09-11 14:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: boccara at netvision dot net dot il Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.4-dev (20030911) OS: Win2k SBS SP4 Apache 2.0.47
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: boccara at netvision dot net dot il
New email:
PHP Version: OS:

 

 [2003-09-10 16:55 UTC] boccara at netvision dot net dot il
Description:
------------
With Microsoft SQL server 2000

*******************************************
* when using zlib.output_compression = on *
*******************************************

I've got this bug since older version of php and apache ( this is NOT a new bug ).

When doing a while ( fetch ) of a query, it cause a crash at the same time.

By Ex: If I make a query that should return 78 results,
when I make my while ( fetch ), it cause the system to crash at the result number 49.
For another query , it wont't crash.
and for another query it will crash at the result 62 ( of 98 results by ex.)

rem: All the query works.

rem: when using zlib.output_compression = OFF

evrything works thine.


Reproduce code:
---------------
QUERY

WHILE ( FETCH )

   ECHO RESULT;

ENDWHILE


Expected result:
----------------
1
2
3
4
5
6
7
8
9
10
11

Actual result:
--------------
NO OUTPUT !!!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 20:10 UTC] sniper@php.net
Please try using this CVS snapshot:

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

This should be fixed already. 

 [2003-09-11 08:12 UTC] boccara at netvision dot net dot il
I tried the 4.3.4-dev version and it still crash !.
Really sorry.
 [2003-09-11 10:49 UTC] sniper@php.net
Please provide a complete BUT SHORT example script.

 [2003-09-11 11:11 UTC] boccara at netvision dot net dot il
<?

while (dbFetch($iQuery, $tabCol))
		{
			if (isset($LastRef) && $LastRef == $tabCol[0] && $tri != "designation")
			{
				$ShowRef = false;
			}
			else
			{
				$ShowRef = true;
			}
			
			$LastRef = $tabCol[0];
			
		?>
		   <tr bgcolor=<?
  		if ($flagcolor)
		{
			echo ("\"#CCCCFF\">");
			$flagcolor=false;
		}
		else
		{
			echo ("\"#FFFFFF\">");
			$flagcolor=true;
		}?>
    
            <td nowrap class="listproduitsref" ><? if ($ShowRef) { echo $tabCol[0];} else { echo"&nbsp;"; }?></td>
			<td class="listproduitsdes"><? echo $tabCol[1]; ?></td>
            <td nowrap >
              <input type="text" size="3" value="1" align="right">
              <a  class='plus' href="javascript:addLine('<? echo $tabCol[0]; ?>','<? echo EncodeData(ApostropheSql($tabCol[1])); ?>','<? echo $tabCol[2];?>',<? echo $index; ?>)">&nbsp;+&nbsp;</a>
              <a  class="moins" href="javascript:minusLine('<? echo $tabCol[0]; ?>','<? echo EncodeData(ApostropheSql($tabCol[1])); ?>','<? echo "$tabCol[2]";?>',<? echo $index; ?>)">&nbsp;-&nbsp;</a>
			</td>
          </tr>
        <?
		$index++;
		}
?>
 [2003-09-11 11:34 UTC] sniper@php.net
Let's try again: Provide a script that we can actually RUN.
(the one you posted has functions I don't have defined..)

Also, max 20 lines.

 [2003-09-11 12:15 UTC] boccara at netvision dot net dot il
I only got problems of crash with this portion of code, and with some specific queries.
I will try to make so tests myself ( not before 2 weeks ) to search the origin of the problem, and where the crash occur exactly.
by the way, when I use the debugger of Zend Developpment, the crash don't occur ! very very strange.
I will recontact you when I will have more informations.
Thank you .
 [2003-09-11 14:22 UTC] sniper@php.net
Reopen when you can give real info.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 16:01:29 2024 UTC