From 6edd9d2f725978289a4676008c830a8f3abcf8b2 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Sun, 13 Oct 2002 03:00:48 +0000 Subject: [PATCH] Enable pg_escape_bytea(). --- ext/pgsql/pgsql.c | 1 + ext/pgsql/php_pgsql.h | 1 + 2 files changed, 2 insertions(+) diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index d68bbf6872..8c6f8be66c 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -142,6 +142,7 @@ function_entry pgsql_functions[] = { #if HAVE_PQESCAPE PHP_FE(pg_escape_string,NULL) PHP_FE(pg_escape_bytea, NULL) + PHP_FE(pg_unescape_bytea, NULL) #endif #if HAVE_PQCLIENTENCODING PHP_FE(pg_client_encoding, NULL) diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 1dea2e120e..9d41441e5c 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -129,6 +129,7 @@ PHP_FUNCTION(pg_set_client_encoding); #if HAVE_PQESCAPE PHP_FUNCTION(pg_escape_string); PHP_FUNCTION(pg_escape_bytea); +PHP_FUNCTION(pg_unescape_bytea); #endif /* misc functions */ -- 2.40.0