#21851 [Opn->Fbk]: bizarre!: status replaced with foo1 or nothing

From: Date: Fri, 24 Jan 2003 09:27:07 +0000
Subject: #21851 [Opn->Fbk]: bizarre!: status replaced with foo1 or nothing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-31128@lists.php.net to get a copy of this message
ID: 21851 Updated by: sniper@php.net Reported By: keith@lucidts.com -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: debian linux PHP Version: 4.3.0 New Comment: Try changing your error_reporting to E_ALL and you'll see the problem. And what use is it to have empty name for select tag? Previous Comments: ------------------------------------------------------------------------ [2003-01-24 03:26:50] keith@lucidts.com derick in your email that i received when you posted i could see <select name='s t a t u s' size="1"> using squirrelmail ... a php imap client BUT browsing this thread online (same computer and same browser as the imap client, XP home and IE respectively) ... no "s t a t u s"! anyone browsing this thread on a mac using IE perchance? ------------------------------------------------------------------------ [2003-01-24 03:19:32] keith@lucidts.com update ... ok this may not be a php problem afterall ... although i can reproduce it on every windows machine i've tried but on every lynx and conquerer it comes out as expected ... the mystery continues .... additional note ... i've tried with both netscape and ie on xp and 98 problem persists from 4 different computers (2 at the office 2 at home) ------------------------------------------------------------------------ [2003-01-24 03:06:41] derick@php.net Looks fine here: <select name='status' size="1"> Derick ------------------------------------------------------------------------ [2003-01-23 19:24:13] keith@lucidts.com OMG! It just did it to this post! Am I missing something or just dumb? I wrote <select name='s t a t u s' without the space and look what happened! Same thing for the first foo1. That was actually a 's t a t u s' when I submitted this bug report. I feel so lost right now. ------------------------------------------------------------------------ [2003-01-23 19:17:09] keith@lucidts.com 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 this bug report at http://bugs.php.net/?id=21851&edit=1

« previous php.bugs (#31128) next »