From: [EMAIL PROTECTED] Operating system: debian linux PHP version: 4.3.0 PHP Bug Type: Scripting Engine problem Bug description: bizarre!: status replaced with foo1 or nothing
The word "status" was replace by foo1 and sometimes just spaces within & outside of <? ?> tags! snippets from my page html .... <select name=' ' size="1"> <option value="" <?= $_SESSION['status'] ? "" : "selected" ?>>All</option> output via view source in IE .... <select name=' ' size="1"> <option value="" selected>All</option> php <? if ($_SESSION['cat_id']) $sql .= " and cat_id = {$_SESSION['cat_id']}"; if ($_SESSION['status']) $sql .= " and foo1 = {$_SESSION['status']}"; echo "$sql"; ?> relevant php output .... ... and cat_id = 8 and foo1 = 'pending' I have never seen anything like this before. It's replacing words outside of the php, too. Furthermore, I've used status in parts of the same page in other sql statements (albeit for different tables), and they were not replaced. Insight would be greatly appreciated! -- Edit bug report at http://bugs.php.net/?id=21851&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21851&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21851&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21851&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21851&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21851&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21851&r=support Expected behavior: http://bugs.php.net/fix.php?id=21851&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21851&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21851&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21851&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21851&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21851&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21851&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21851&r=gnused