ID:               32750
 Updated by:       [EMAIL PROTECTED]
 Reported By:      master-bx at users dot sourceforge dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         PostgreSQL related
 Operating System: Windows XP SP2
 PHP Version:      5.0.4
 New Comment:

Isn't the expected result supposed to be:

'\\ \\\\ \\\\\\' 

What does var_dump($var); output before and after doing
pg_escape_string() ?




Previous Comments:
------------------------------------------------------------------------

[2005-04-18 21:42:37] master-bx at users dot sourceforge dot net

Description:
------------
Some backslashes are lost after using that function, same bug seems to
be in mysqli_real_escape_string.

Another function (mysql_real_escape_string) does well, if this is not a
bug please give me a solution to fix this.

Thank you,

hajo @ bxcp.com

Reproduce code:
---------------
$var = '\ \\ \\\';

$test = pg_escape_string($var);
echo $test;

Expected result:
----------------
'\ \\ \\\'

Actual result:
--------------
' \ \\'


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32750&edit=1

Reply via email to