| // | Mocha (http://us4.php.net/pg_escape_bytea) | // +----------------------------------------------------------------------+ // // $Id$ /** * Replace pg_escape_bytea() * * @category PHP * @package PHP_Compat * @link http://php.net/function.pg_escape_bytea * @author Ian Eure * @version $Revision@ * @since PHP 4.2.0 * @require PHP 4.0.0 */ if (!function_exists('pg_escape_bytea')) { function pg_escape_bytea($data) { return str_replace( array(chr(92), chr(0), chr(39)), array('\\\134', '\\\000', '\\\047'), $data); } } ?>