#31529 [Opn->Bgs]: Can not escape Vars
| From: | sniper@php.net | Date: | Fri, 14 Jan 2005 03:46:56 +0000 |
| Subject: | #31529 [Opn->Bgs]: Can not escape Vars | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72120@lists.php.net to get a copy of this message | ||
ID: 31529
Updated by: sniper@php.net
Reported By: david at 21stcd dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: windows xp
PHP Version: 4.3.8
New Comment:
\x$ is not valid syntax.
Previous Comments:
------------------------------------------------------------------------
[2005-01-13 10:08:58] david at 21stcd dot com
Description:
------------
The problem comes from the use of var substitution or addtion to
strings that you are trying to "escape"
I find this problem when trying to create escaped hex strings to write
data to sockets.
Reproduce code:
---------------
<?PHP
$hex = "FF";
echo "\x$hex";
?>
Expected result:
----------------
ÿ
Actual result:
--------------
\xFF
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31529&edit=1