#24351 [Bgs]: PHP scripting engine seems to replacing the word "status" with "foo1"
| From: | sniper@php.net | Date: | Thu, 26 Jun 2003 22:52:40 +0000 |
| Subject: | #24351 [Bgs]: PHP scripting engine seems to replacing the word "status" with "foo1" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42587@lists.php.net to get a copy of this message | ||
ID: 24351
Updated by: sniper@php.net
Reported By: php at glaciersoftware dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux 2.4.20-18.8 RedHat 8.0
PHP Version: 4.3.1
New Comment:
And I can't reproduce anything like what you've described here, it's
totally bogus.
Previous Comments:
------------------------------------------------------------------------
[2003-06-26 17:51:28] sniper@php.net
Please don't submit same bug twice.
------------------------------------------------------------------------
[2003-06-26 15:37:52] 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>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24351&edit=1