php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36217 with postgres 8.1, pg_escape_bytea escapes ' as '' and unescape leaves them ''
Submitted: 2006-01-30 21:30 UTC Modified: 2006-01-31 00:05 UTC
From: dabicho2001 at yahoo dot com dot mx Assigned:
Status: Not a bug Package: PostgreSQL related
PHP Version: 4.4.2 OS: linux
Private report: No CVE-ID: None
 [2006-01-30 21:30 UTC] dabicho2001 at yahoo dot com dot mx
Description:
------------
pg_escape_bytea will escape a single quote as ''
i.e.
$a = "'";
$a = pg_escape_bytea($a);

$a now contains "''"

pg_unescape_bytea will leave them unmodified.
i.a.
$a = pg_unescape_bytea($a);

$a still contains "''"

apache's mod_php is 4.4.0


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-30 21:48 UTC] tony2001@php.net
pg_escape_bytea() is just a wrapper for PQescapeBytea() function from Postgresql.
If you think it doesn't work properly - please report it to PG developers.
 [2006-01-30 23:54 UTC] dabicho2001 at yahoo dot com dot mx
silly me.
not a bug, just missinterpretation on my part.
 [2006-01-31 00:05 UTC] johannes@php.net
no bug -> bogus  
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC