php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32706 <> does not work
Submitted: 2005-04-14 19:39 UTC Modified: 2005-04-14 21:01 UTC
From: dwd at polyserve dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.9 OS: SuSE Linux Enterprise Server 9
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: dwd at polyserve dot com
New email:
PHP Version: OS:

 

 [2005-04-14 19:39 UTC] dwd at polyserve dot com
Description:
------------
Our index.php has some code at the top that uses the '<>' operator:

<?

...
        if ($email <> "")
        {
                ...
        }
?>

This code was not being parsed correctly, and the web browser would spit out the text following the <> operator as if it was content. Changing the <> to != fixed the problem, but I'd like to know why, as <> should be equivalent to != according to the documentation.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-14 19:48 UTC] tony2001@php.net
1) 4.3.9 is too old. Upgrade first.
2) Can't reproduce it.
3) What browser are you talking about? PHP is a server side language and it's not supposed to be parsed by a "browser". If you see PHP code in your browser, your server is just misconfigured.
 [2005-04-14 20:14 UTC] dwd at polyserve dot com
Sorry for the botched description.

Issue 1: I cannot upgrade PHP. We are not allowed to upgrade packages outside of std. SuSE releases, so 4.3.4 is what I have to work with, full stop. (Note: Your stupid bug interface would not let me specify an earlier release than 4.3.9, so I had to lie.)

Issue 2: Yes, I know that PHP is server side. Although I botched the description, what I meant to say is that the code isn't being parsed correctly from Apache, and parts of the code (after the <> op) are displayed as content in my browser. Changing to != worked, but it's puzzling. N.B. This code has been in production for years now, on earlier versions of PHP, and we only noticed this now after migrating from RHEL3 to SLES9 with a later version (4.3.4) of PHP. 

Issue 3: Try reproducing on 4.3.4 using a SuSE Linux Enterprise 9 system with Apache2 before you tell me again that it's not reproducible. I can reproduce at will here.
 [2005-04-14 20:57 UTC] wez@php.net
The reason that the bug interface doesn't let you enter ancient versions is that we don't support them.

If you have a problem with SuSE's packages, you should be filing a bug report with them, not with us, as we can only support our own official distribution.
 [2005-04-14 21:01 UTC] wez@php.net
I should clarify that: we don't list older versions because the chances are that bugs you find in them have already been fixed in the versions that we do list.  Since we're volunteers working in our spare time, it's not feasible for us to try to support ever version of PHP on every possible platform.

Regardless, problems in 3rd party packages should be reported to the people that provided you the 3rd party, before they are reported to us.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 18:01:32 2024 UTC