yohgaki         Sun Oct 13 05:48:19 2002 EDT

  Modified files:              
    /php4/ext/pgsql     pgsql.c 
  Log:
  Fixed proto. Clean up.
  
  
Index: php4/ext/pgsql/pgsql.c
diff -u php4/ext/pgsql/pgsql.c:1.234 php4/ext/pgsql/pgsql.c:1.235
--- php4/ext/pgsql/pgsql.c:1.234        Sun Oct 13 05:41:35 2002
+++ php4/ext/pgsql/pgsql.c      Sun Oct 13 05:48:18 2002
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
  
-/* $Id: pgsql.c,v 1.234 2002/10/13 09:41:35 yohgaki Exp $ */
+/* $Id: pgsql.c,v 1.235 2002/10/13 09:48:18 yohgaki Exp $ */
 
 #include <stdlib.h>
 
@@ -618,7 +618,7 @@
                        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 @@
 }
 /* }}} */
 
-/* {{{ 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)
 {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to