summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-10-13 03:00:48 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-10-13 03:00:48 +0000
commit6edd9d2f725978289a4676008c830a8f3abcf8b2 (patch)
tree6307adb8d39bcd4bd8687837ad9a665382f01fbd /ext/pgsql
parentb855893b0c8f1ee0f9f57d4d76941830718d959f (diff)
downloadphp-git-6edd9d2f725978289a4676008c830a8f3abcf8b2.tar.gz
Enable pg_escape_bytea().
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/pgsql.c1
-rw-r--r--ext/pgsql/php_pgsql.h1
2 files changed, 2 insertions, 0 deletions
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 */