summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2002-10-13 09:48:18 +0000
committerYasuo Ohgaki <yohgaki@php.net>2002-10-13 09:48:18 +0000
commit1917f5f382907458491c63aad286f15d44fe53a6 (patch)
treee7bcd6b8bdec4685237b27f87de6a75721d5aed0
parenta6de0807ae580041134f0721b721d6a47a895647 (diff)
downloadphp-git-1917f5f382907458491c63aad286f15d44fe53a6.tar.gz
Fixed proto. Clean up.
-rw-r--r--ext/pgsql/pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 13a8e49886..cc79ce0ccd 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -618,7 +618,7 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
if (Z_TYPE_P(index_ptr) != le_index_ptr) {
RETURN_FALSE;
}
- link = (int) (long) index_ptr->ptr; /* XXX: bogus? cast */
+ link = (int) index_ptr->ptr;
ptr = zend_list_find(link,&type); /* check if the link is still there */
if (ptr && (type==le_link || type==le_plink)) {
Z_LVAL_P(return_value) = link;
@@ -850,7 +850,7 @@ PHP_FUNCTION(pg_host)
}
/* }}} */
-/* {{{ proto bool pg_ping([resource connection])
+/* {{{ proto bool pg_ping(resource connection)
Ping database. If connection is bad, try to reconnect. */
PHP_FUNCTION(pg_ping)
{