#47591 [Fbk-Opn]: Unknown Whitespace being passed with value
ID: 47591 User updated by: diego at freagair dot com Reported By: diego at freagair dot com -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: Debian and FreeBSD PHP Version: 5.2.9 New Comment: I have tried the following code and still get an error in IE ?php $paint = trim($_POST['paints']); echo($paint); ? The IE development team says it is not IE bug Previous Comments: [2009-03-10 10:30:48] j...@php.net This is most likely just user error, please try this script: ?php echo OUT form method=post input type=text name=f / input type=submit / /form OUT; $f = trim($_POST['f']); var_dump($f); ? Tune the form part so it actually works :) [2009-03-08 16:28:28] diego at freagair dot com Hello I have tried the following code below, but still seem to get the extra white space. The values have been passed via AJAX POST and GET but to no avail. All the commented code has also been used. ?php //$paint = $_GET['paints']; $paint = $_POST['paints']; //PREVIEW COLOR #echo trim($paint); #echo '#AB1616'; $newStr = ereg_replace('[[:space:]]+', '', trim($paint)); echo $newStr; #echo $paint; echo trim($paint); ? [2009-03-08 14:18:16] ka...@php.net What php code do you exactly use that is sent back to the browser? A small reproduce code would be needed to see if the bug is on php or browser level. [2009-03-07 06:37:03] diego at freagair dot com Description: A user types in a color into an input box, it is then sent via ajax GET or POST to dynamically color any given DIV, via style.backgroundColor or color. More specific information about the issue located at the MSDN IE Forums: http://urloid.com/iebug2 It seems that the problem is generated by some whitespace in the PHP string 00380023 00380038 000a This whitespace problem occurs with (Debian) and (FreeBSD) Reproduce code: --- A white space is passed after any value, the error can be seen using any IE 6-8 http://89.233.173.91/bug/ Expected result: I would expect for the value to not contain any whitespace. Example: #333 is turned into #333 which causes errors with all Internet Explorer versions Actual result: -- Example at http://89.233.173.91/bug/ totally fails a very simple AJAX/ DOM script, because the PHP value contains a whitespace -- Edit this bug report at http://bugs.php.net/?id=47591edit=1
#47591 [Fbk-Opn]: Unknown Whitespace being passed with value
ID: 47591 User updated by: diego at freagair dot com Reported By: diego at freagair dot com -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: Debian and FreeBSD PHP Version: 5.2.9 New Comment: http://89.233.173.91/bug/test.php Just changed the f to e Previous Comments: [2009-03-10 17:00:16] j...@php.net Would you mind showing the output of the script I provided? I can NOT reproduce this.. [2009-03-10 16:37:02] diego at freagair dot com I have tried the following code and still get an error in IE ?php $paint = trim($_POST['paints']); echo($paint); ? The IE development team says it is not IE bug [2009-03-10 10:30:48] j...@php.net This is most likely just user error, please try this script: ?php echo OUT form method=post input type=text name=f / input type=submit / /form OUT; $f = trim($_POST['f']); var_dump($f); ? Tune the form part so it actually works :) [2009-03-08 16:28:28] diego at freagair dot com Hello I have tried the following code below, but still seem to get the extra white space. The values have been passed via AJAX POST and GET but to no avail. All the commented code has also been used. ?php //$paint = $_GET['paints']; $paint = $_POST['paints']; //PREVIEW COLOR #echo trim($paint); #echo '#AB1616'; $newStr = ereg_replace('[[:space:]]+', '', trim($paint)); echo $newStr; #echo $paint; echo trim($paint); ? [2009-03-08 14:18:16] ka...@php.net What php code do you exactly use that is sent back to the browser? A small reproduce code would be needed to see if the bug is on php or browser level. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47591 -- Edit this bug report at http://bugs.php.net/?id=47591edit=1
#47591 [Bgs]: Unknown Whitespace being passed with value
ID: 47591 User updated by: diego at freagair dot com Reported By: diego at freagair dot com Status: Bogus Bug Type: Unknown/Other Function Operating System: Debian and FreeBSD PHP Version: 5.2.9 New Comment: Is the initial test http://89.233.173.91/bug/ working for you now? Previous Comments: [2009-03-10 17:10:30] j...@php.net As I suspected: It works fine with all browsers I have right now: IE7, Chrome, Firefox.. [2009-03-10 17:08:31] diego at freagair dot com http://89.233.173.91/bug/test.php Just changed the f to e [2009-03-10 17:00:16] j...@php.net Would you mind showing the output of the script I provided? I can NOT reproduce this.. [2009-03-10 16:37:02] diego at freagair dot com I have tried the following code and still get an error in IE ?php $paint = trim($_POST['paints']); echo($paint); ? The IE development team says it is not IE bug [2009-03-10 10:30:48] j...@php.net This is most likely just user error, please try this script: ?php echo OUT form method=post input type=text name=f / input type=submit / /form OUT; $f = trim($_POST['f']); var_dump($f); ? Tune the form part so it actually works :) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47591 -- Edit this bug report at http://bugs.php.net/?id=47591edit=1
#47591 [Fbk-Opn]: Unknown Whitespace being passed with value
ID: 47591 User updated by: diego at freagair dot com Reported By: diego at freagair dot com -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: Debian and FreeBSD PHP Version: 5.2.9 New Comment: Hello I have tried the following code below, but still seem to get the extra white space. The values have been passed via AJAX POST and GET but to no avail. All the commented code has also been used. ?php //$paint = $_GET['paints']; $paint = $_POST['paints']; //PREVIEW COLOR #echo trim($paint); #echo '#AB1616'; $newStr = ereg_replace('[[:space:]]+', '', trim($paint)); echo $newStr; #echo $paint; echo trim($paint); ? Previous Comments: [2009-03-08 14:18:16] ka...@php.net What php code do you exactly use that is sent back to the browser? A small reproduce code would be needed to see if the bug is on php or browser level. [2009-03-07 06:37:03] diego at freagair dot com Description: A user types in a color into an input box, it is then sent via ajax GET or POST to dynamically color any given DIV, via style.backgroundColor or color. More specific information about the issue located at the MSDN IE Forums: http://urloid.com/iebug2 It seems that the problem is generated by some whitespace in the PHP string 00380023 00380038 000a This whitespace problem occurs with (Debian) and (FreeBSD) Reproduce code: --- A white space is passed after any value, the error can be seen using any IE 6-8 http://89.233.173.91/bug/ Expected result: I would expect for the value to not contain any whitespace. Example: #333 is turned into #333 which causes errors with all Internet Explorer versions Actual result: -- Example at http://89.233.173.91/bug/ totally fails a very simple AJAX/ DOM script, because the PHP value contains a whitespace -- Edit this bug report at http://bugs.php.net/?id=47591edit=1
#47591 [NEW]: Unknown Whitespace being passed with value
From: diego at freagair dot com Operating system: Debian and FreeBSD PHP version: 5.2.9 PHP Bug Type: Unknown/Other Function Bug description: Unknown Whitespace being passed with value Description: A user types in a color into an input box, it is then sent via ajax GET or POST to dynamically color any given DIV, via style.backgroundColor or color. More specific information about the issue located at the MSDN IE Forums: http://urloid.com/iebug2 It seems that the problem is generated by some whitespace in the PHP string 00380023 00380038 000a This whitespace problem occurs with (Debian) and (FreeBSD) Reproduce code: --- A white space is passed after any value, the error can be seen using any IE 6-8 http://89.233.173.91/bug/ Expected result: I would expect for the value to not contain any whitespace. Example: #333 is turned into #333 which causes errors with all Internet Explorer versions Actual result: -- Example at http://89.233.173.91/bug/ totally fails a very simple AJAX/ DOM script, because the PHP value contains a whitespace -- Edit bug report at http://bugs.php.net/?id=47591edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47591r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47591r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47591r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47591r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47591r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47591r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47591r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47591r=needscript Try newer version: http://bugs.php.net/fix.php?id=47591r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47591r=support Expected behavior: http://bugs.php.net/fix.php?id=47591r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47591r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47591r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47591r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47591r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=47591r=dst IIS Stability: http://bugs.php.net/fix.php?id=47591r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47591r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47591r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47591r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47591r=mysqlcfg