From: mike at repartee dot co dot uk Operating system: Windows 7 PHP version: 5.3.2RC1 PHP Bug Type: *Programming Data Structures Bug description: Greater than operator '>' causes script to drop out of PHP into HTML
Description: ------------ I have an old PHP script embedded in a page that is mostly html that includes the expression: if ($number > "2") ..... This has been working fine up to now but having installed PHP 5.3.1 a few days ago (updated to 5.3.2 today) locally on my new Windows 7 PC, I find that when I run the web page containing the above bit of PHP, the PHP is terminated at the '>' ( as if it were '?>') so the rest of the PHP code appears as text in my browser. Previously I used an earlier version of PHP and the script still runs fine on our remote web-server running PHP 5.2.8 so this really seems to be related to version 5.3 However I cannot see any reported problems on this issue. The problem occurs with both Internet Explorer and Firefox so it is not a browser problem. I am running Apache 2.2.14 and MySQL 5.1.41. Reproduce code: --------------- Snippit as above: if ($number > "2") ..... Expected result: ---------------- I would expect the '>' operator to work as 'greater than'. Actual result: -------------- The PHP is ended at the '>' character as if it is '?>'. The rest of the code just appears as ordinary text in the browser. -- Edit bug report at http://bugs.php.net/?id=50586&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50586&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50586&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50586&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50586&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50586&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50586&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50586&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50586&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50586&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50586&r=support Expected behavior: http://bugs.php.net/fix.php?id=50586&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50586&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50586&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50586&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50586&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50586&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50586&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50586&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50586&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50586&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50586&r=mysqlcfg