Skip to content

Commit

Permalink
- Renamed functions so that this extension finally starts to follow the
Browse files Browse the repository at this point in the history
  recommended naming scheme of PHP.
  • Loading branch information
Jouni Ahto committed Sep 11, 2000
1 parent 71066c1 commit 0c16208
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ext/pgsql/pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions ext/pgsql/php_pgsql.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c16208

Please sign in to comment.