diff options
author | Jouni Ahto <jah@php.net> | 2000-09-11 21:28:47 +0000 |
---|---|---|
committer | Jouni Ahto <jah@php.net> | 2000-09-11 21:28:47 +0000 |
commit | 0c1620840fd55bd02b81f384684a5592f401cd97 (patch) | |
tree | 4acf1f922d54dc1580eb24c2aebfe1278dc1f3b5 | |
parent | 71066c12dc847da45a4a8e6eb0ea105ca79c83f6 (diff) | |
download | php-git-0c1620840fd55bd02b81f384684a5592f401cd97.tar.gz |
- Renamed functions so that this extension finally starts to follow the
recommended naming scheme of PHP.
-rw-r--r-- | ext/pgsql/pgsql.c | 12 | ||||
-rw-r--r-- | ext/pgsql/php_pgsql.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 4238bda197..07c42b79cd 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -75,8 +75,8 @@ function_entry pgsql_functions[] = { PHP_FE(pg_loreadall, NULL) PHP_FE(pg_loimport, NULL) PHP_FE(pg_loexport, NULL) - PHP_FE(pg_putline, NULL) - PHP_FE(pg_endcopy, NULL) + 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) @@ -647,9 +647,9 @@ PHP_FUNCTION(pg_exec) } } /* }}} */ -/* {{{ proto int pg_endcopy([int connection]) +/* {{{ proto int pg_end_copy([int connection]) Sync with backend. Completes the Copy command */ -PHP_FUNCTION(pg_endcopy) +PHP_FUNCTION(pg_end_copy) { zval **pgsql_link = NULL; int id = -1; @@ -684,9 +684,9 @@ PHP_FUNCTION(pg_endcopy) } /* }}} */ -/* {{{ proto int pg_putline([int connection,] string query) +/* {{{ proto int pg_put_line([int connection,] string query) Send null-terminated string to backend server*/ -PHP_FUNCTION(pg_putline) +PHP_FUNCTION(pg_put_line) { zval **query, **pgsql_link = NULL; int id = -1; diff --git a/ext/pgsql/php_pgsql.h b/ext/pgsql/php_pgsql.h index 445f5664dd..54b3f5d67f 100644 --- a/ext/pgsql/php_pgsql.h +++ b/ext/pgsql/php_pgsql.h @@ -85,8 +85,8 @@ PHP_FUNCTION(pg_lowrite); PHP_FUNCTION(pg_loreadall); PHP_FUNCTION(pg_loimport); PHP_FUNCTION(pg_loexport); -PHP_FUNCTION(pg_putline); -PHP_FUNCTION(pg_endcopy); +PHP_FUNCTION(pg_put_line); +PHP_FUNCTION(pg_end_copy); #if HAVE_PQCLIENTENCODING PHP_FUNCTION(pg_clientencoding); PHP_FUNCTION(pg_setclientencoding); |