ID: 50586 Updated by: ras...@php.net Reported By: mike at repartee dot co dot uk -Status: Open +Status: Feedback Bug Type: *Programming Data Structures Operating System: Windows 7 PHP Version: 5.3.2RC1 New Comment:
I seriously doubt you are seeing what you think you are seeing. Try doing a view-source. I bet the entire script is there likely because you are using short tags and you have those disabled in your php.ini or you have messed up your configuration some other way. Previous Comments: ------------------------------------------------------------------------ [2009-12-27 23:59:09] mike at repartee dot co dot uk 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 this bug report at http://bugs.php.net/?id=50586&edit=1