Bug #75980 [NEW]: greater or equal formerly >= is missinterpreted
| From: | rolf at rolfjentsch dot de | Date: | Mon, 19 Feb 2018 12:13:29 +0000 |
| Subject: | Bug #75980 [NEW]: greater or equal formerly >= is missinterpreted | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-214019@lists.php.net to get a copy of this message | ||
From: rolf at rolfjentsch dot de
Operating system: windows 10 xamp
PHP version: 7.2.2
Package: Scripting Engine problem
Bug Type: Bug
Bug description:greater or equal formerly >= is missinterpreted
Description:
------------
Problem arrises when >= is processed something like "= 0) {
$where="http://qnap/piwik/"; }" is echoed
instead of doing what it did
in php 5.6
Below is a test script to reproduce the error
Test script:
---------------
<?
if (isset($_SERVER['SERVER_ADDR']))
{
if (strpos($_SERVER['SERVER_ADDR'],"192.168.10") >= 0)
{
$where="http://qnap/piwik/";
}
else
{
$where="https://someurlhere/";
}
} else $where="https://someurlhere/";
?>
--
Edit bug report at https://bugs.php.net/bug.php?id=75980&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75980&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75980&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75980&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75980&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75980&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75980&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75980&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75980&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75980&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75980&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75980&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75980&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75980&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75980&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75980&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75980&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75980&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75980&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75980&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75980&r=mysqlcfg