mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
- The Sprit of PHP is to have descriptive function names and not
necessarily short ones. Maybe we should have some FAQ for this?
This commit is contained in:
parent
cce70fa84a
commit
526d45e95f
@ -78,11 +78,11 @@ function_entry pgsql_functions[] = {
|
|||||||
PHP_FE(pg_put_line, NULL)
|
PHP_FE(pg_put_line, NULL)
|
||||||
PHP_FE(pg_end_copy, NULL)
|
PHP_FE(pg_end_copy, NULL)
|
||||||
#if HAVE_PQCLIENTENCODING
|
#if HAVE_PQCLIENTENCODING
|
||||||
PHP_FE(pg_client_enc, NULL)
|
PHP_FE(pg_client_encoding, NULL)
|
||||||
PHP_FE(pg_set_client_enc, NULL)
|
PHP_FE(pg_set_client_encoding, NULL)
|
||||||
/* for downwards compatibility */
|
/* for downwards compatibility */
|
||||||
PHP_FALIAS(pg_clientencoding, pg_client_enc, NULL)
|
PHP_FALIAS(pg_clientencoding, pg_client_encoding, NULL)
|
||||||
PHP_FALIAS(pg_setclientencoding, pg_set_client_enc, NULL)
|
PHP_FALIAS(pg_setclientencoding, pg_set_client_encoding, NULL)
|
||||||
#endif
|
#endif
|
||||||
{NULL, NULL, NULL}
|
{NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
@ -1709,9 +1709,9 @@ PHP_FUNCTION(pg_loexport)
|
|||||||
|
|
||||||
#if HAVE_PQCLIENTENCODING
|
#if HAVE_PQCLIENTENCODING
|
||||||
|
|
||||||
/* {{{ proto int pg_set_client_enc([int connection,] string encoding)
|
/* {{{ proto int pg_set_client_encoding([int connection,] string encoding)
|
||||||
Set client encoding */
|
Set client encoding */
|
||||||
PHP_FUNCTION(pg_set_client_enc)
|
PHP_FUNCTION(pg_set_client_encoding)
|
||||||
{
|
{
|
||||||
zval **encoding, **pgsql_link = NULL;
|
zval **encoding, **pgsql_link = NULL;
|
||||||
int id = -1;
|
int id = -1;
|
||||||
@ -1745,9 +1745,9 @@ PHP_FUNCTION(pg_set_client_enc)
|
|||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ proto string pg_client_enc([int connection])
|
/* {{{ proto string pg_client_encoding([int connection])
|
||||||
Get the current client encoding */
|
Get the current client encoding */
|
||||||
PHP_FUNCTION(pg_client_enc)
|
PHP_FUNCTION(pg_client_encoding)
|
||||||
{
|
{
|
||||||
zval **pgsql_link = NULL;
|
zval **pgsql_link = NULL;
|
||||||
int id = -1;
|
int id = -1;
|
||||||
|
@ -88,8 +88,8 @@ PHP_FUNCTION(pg_loexport);
|
|||||||
PHP_FUNCTION(pg_put_line);
|
PHP_FUNCTION(pg_put_line);
|
||||||
PHP_FUNCTION(pg_end_copy);
|
PHP_FUNCTION(pg_end_copy);
|
||||||
#if HAVE_PQCLIENTENCODING
|
#if HAVE_PQCLIENTENCODING
|
||||||
PHP_FUNCTION(pg_client_enc);
|
PHP_FUNCTION(pg_client_encoding);
|
||||||
PHP_FUNCTION(pg_set_client_enc);
|
PHP_FUNCTION(pg_set_client_encoding);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent);
|
void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent);
|
||||||
|
Loading…
Reference in New Issue
Block a user