php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24351 PHP scripting engine seems to replacing the word "status" with "foo1"
Submitted: 2003-06-26 15:37 UTC Modified: 2003-06-27 14:29 UTC
From: php at glaciersoftware dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.1 OS: Linux 2.4.20-18.8 RedHat 8.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at glaciersoftware dot com
New email:
PHP Version: OS:

 

 [2003-06-26 15:37 UTC] php at glaciersoftware dot com
Description:
------------
For some unknown reason, the PHP scripting engine seems to replacing the word "status" with "foo1" when an equal-sign, 0x3d, appears within 6 characters of the word "status".

Bug was reported on http://bugs.php.net as Bug #21851, but status was changed to CLOSED after someone was not able to duplicate the problem.

Tested Environment
==================
The following webservers were used to test the below code for the existance of this problem:
* PHP 4.2.1 with Apache/1.3.24 running on Linux 2.4.18-3 RedHat 7.3
* PHP 4.3.1 with Apache/2.0.43 running on Linux 2.4.20-18.8 RedHat 8.0

Code
====
The following code should replicate the problem. The "<br>\n" appended to the echo() call is used only for readability, the problem will still exist without this string added.

<< See Reproduce Code >>

Reproduce code:
---------------
<?php
   // *** Note the 6 spaces, 0x20, between the word status and the equal-sign
   // *** the word "status" will be replaced with "foo1"
   $buf = "foo1        = 'C' ";
   echo($buf . "<br>\n");

   // *** The number of spaces has been changed from 6 to 7
   // *** now it doesn't replace "status" with "foo1"
   $buf = "status       = 'C' ";
   echo($buf . "<br>\n");
?>


Expected result:
----------------
status      = 'C' <br>
status       = 'C' <br>


Actual result:
--------------
foo1        = 'C' <br>
status       = 'C' <br>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-26 17:51 UTC] sniper@php.net
Please don't submit same bug twice.

 [2003-06-26 17:52 UTC] sniper@php.net
And I can't reproduce anything like what you've described here, it's totally bogus.

 [2003-06-27 14:29 UTC] php at glaciersoftware dot com
You're right, it is totally bogus. The problem was caused by a third-party program running on my computer which watches the TCP/IP stack and filters raw data for the Internet Explorer process running on my Windows XP box and prevents pop-ups, ads, etc.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 15:00:03 2025 UTC