]> granicus.if.org Git - php/commitdiff
updated some functions'name using obsolete name convention.
authorRui Hirokawa <hirokawa@php.net>
Tue, 12 Sep 2000 23:19:58 +0000 (23:19 +0000)
committerRui Hirokawa <hirokawa@php.net>
Tue, 12 Sep 2000 23:19:58 +0000 (23:19 +0000)
ext/pgsql/pgsql.c
ext/pgsql/php_pgsql.h

index 07c42b79cdfb4dd6b1aad9bb5db239f0ac97c3ab..f429b1c026b8195eda126e494c89c792c99d2cc2 100644 (file)
@@ -78,8 +78,11 @@ function_entry pgsql_functions[] = {
        PHP_FE(pg_put_line,             NULL)
        PHP_FE(pg_end_copy,             NULL)
 #if HAVE_PQCLIENTENCODING
-       PHP_FE(pg_clientencoding,       NULL)
-       PHP_FE(pg_setclientencoding,    NULL)
+       PHP_FE(pg_client_enc,           NULL)
+       PHP_FE(pg_set_client_enc,       NULL)
+       /* for downwards compatibility */
+       PHP_FALIAS(pg_clientencoding,           pg_client_enc,          NULL)
+       PHP_FALIAS(pg_setclientencoding,        pg_set_client_enc,      NULL)
 #endif
        {NULL, NULL, NULL}
 };
@@ -1706,9 +1709,9 @@ PHP_FUNCTION(pg_loexport)
 
 #if HAVE_PQCLIENTENCODING
 
-/* {{{ proto int pg_setclientencoding([int connection,] string encoding)
+/* {{{ proto int pg_set_client_enc([int connection,] string encoding)
    Set client encoding */
-PHP_FUNCTION(pg_setclientencoding)
+PHP_FUNCTION(pg_set_client_enc)
 {
        zval **encoding, **pgsql_link = NULL;
        int id = -1;
@@ -1742,9 +1745,9 @@ PHP_FUNCTION(pg_setclientencoding)
 }
 /* }}} */
 
-/* {{{ proto string pg_clientencoding([int connection])
+/* {{{ proto string pg_client_enc([int connection])
    Get the current client encoding */
-PHP_FUNCTION(pg_clientencoding)
+PHP_FUNCTION(pg_client_enc)
 {
        zval **pgsql_link = NULL;
        int id = -1;
index 54b3f5d67fb07c93154434eacbe7de4c70cdd88a..53cb1127b6c09c0a72021531d753cc3f1687405a 100644 (file)
@@ -88,8 +88,8 @@ PHP_FUNCTION(pg_loexport);
 PHP_FUNCTION(pg_put_line);
 PHP_FUNCTION(pg_end_copy);
 #if HAVE_PQCLIENTENCODING
-PHP_FUNCTION(pg_clientencoding);
-PHP_FUNCTION(pg_setclientencoding);
+PHP_FUNCTION(pg_client_enc);
+PHP_FUNCTION(pg_set_client_enc);
 #endif
 
 void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent);