Bug #16972 Updated: 1 by1 pixel image problem

From: Date: Fri, 05 Jul 2002 11:30:22 +0000
Subject: Bug #16972 Updated: 1 by1 pixel image problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13209@lists.php.net to get a copy of this message
ID: 16972 Updated by: robtjenkins@email.com Reported By: robtjenkins@email.com Status: Bogus Bug Type: Output Control Operating System: Red Hat Linux 6.2 PHP Version: 4.1.2 New Comment: I wanted to add a followup note. It first appeared to me that a bug existed because the behavior of the script changed when my web host upgraded from 4.0.4 to 4.1.2. When the upgrade occured, the problem of multiple counting began. However, I was examining some of my scripts using the tool "Achilles". I noticed that I was using a foreach statement on an empty array. Between my two sites, the scripts were identical. On one site, the array serves a purpose. On the other, it is not needed and is empty. The empty array was causing the problem with the script and the multiple counting. This same array was also empty when the script was being run under 4.0.4 and for some reason was not causing a problem under the earlier version. Previous Comments: ------------------------------------------------------------------------ [2002-05-03 12:02:59] robtjenkins@email.com I do intend to report back when my second web host updates to 4.12. The second web host uses a Rackshack server and (the way I understand it) is waiting for the Ensim Appliance to be updated for the higher version of 4.12. I want to see if the same error occurs. If so, then it is more likely a result of quircky PHP 4.12 behavior. If it does not, then the error is most likely a configuration problem with my first web host. ------------------------------------------------------------------------ [2002-05-03 09:37:52] robtjenkins@email.com Basically, I have refined the solution mentioned above to successfully override the buggy behavior. So I'm not going to take it to support. As for giving a short script, I'm having trouble reproducing the bug with a short script. In other words, taking an html file with a 1 by 1 pixel image leading to a php file which produces no output to the screen. The web tracker of which I am speaking is a very lengthy script which I will not try to reproduce. Suffice it to say, that it worked fine under versions of PHP 3, 4.04 and 4.06. But under 4.12 it could not work with Netscape due to continuous calls for the 1 by 1 image. It also had some trouble working with IE. To trick the Netscape browser, it is necessary to complete the script by telling it to flush and then print something as short as "OK", even though the print output will never show up on the screen. ------------------------------------------------------------------------ [2002-05-03 09:15:14] cynic@php.net how could anyone tell without seeing a *short* and *self-contained* script first? I suggest you take this issue to php-general@, and if the conclusion on the list is that it's really a change NOT announced in ChangeLog or NEWS, take it (along with a short script) here. ------------------------------------------------------------------------ [2002-05-03 09:05:14] robtjenkins@email.com But at first I thought it was a bug. In fact, I'm only speculating that it is a configuration problem. I would like some confirmation as to whether a bug truly exists which would cause this behavior or whether it is a problem in the configuration. If it is a bug causing 4.12 to behave differently than earlier versions, then it should be addressed. ------------------------------------------------------------------------ [2002-05-03 04:11:49] cynic@php.net The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16972 -- Edit this bug report at http://bugs.php.net/?id=16972&edit=1

« previous php.bugs (#13209) next »