, Arpad Ray * @link http://php.net/function.pg_escape_bytea * @author Ian Eure * @version $Revision@ * @since PHP 4.2.0 * @require PHP 4.0.0 */ function php_compat_pg_escape_bytea($data) { return str_replace( array(chr(92), chr(0), chr(39)), array('\\\134', '\\\000', '\\\047'), $data); } // Define if (!function_exists('pg_escape_bytea')) { function pg_escape_bytea($data) { return php_compat_pg_escape_bytea($data); } }