ID: 22545 Updated by: [EMAIL PROTECTED] Reported By: neo_in_matrix at msn dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows 2000/SP3/Hotfixes PHP Version: 4.3.1 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. Try php -r "echo '\'';". That will output only a '. Use \\ to output \. And next time, look in the manual first. Previous Comments: ------------------------------------------------------------------------ [2003-03-05 00:04:58] neo_in_matrix at msn dot com I'm a newbie on PHP, so what I describe here may NOT be a bug. I understand that any character between a paif of single quotes does not get 'escaped'. So I thought the follow small program will print abc\ to the output screen (I'm using the so-named php-cli). <? $s = 'abc\'; print $s; ?> Yet, I get the following message: Parse error: parse error, unexpected $end in X:\dir\tes t.php on line 6 But the following code runs just fine. It prints out abc\088 That's exactly what I mean to do. <? $s = 'abc\088'; print $s; ?> So my conclusion is that the engine has a little problem dealing with ending \ in a single-quoted string. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22545&edit=1