]> granicus.if.org Git - php/commitdiff
- MF43: Fixed bug #32699 (pg_affected_rows() was defined when it was not
authorDerick Rethans <derick@php.net>
Wed, 13 Apr 2005 21:46:32 +0000 (21:46 +0000)
committerDerick Rethans <derick@php.net>
Wed, 13 Apr 2005 21:46:32 +0000 (21:46 +0000)
  available).

NEWS
ext/pgsql/pgsql.c
ext/pgsql/php_pgsql.h

diff --git a/NEWS b/NEWS
index c98ccfd88e3313175df1db470d5de797dc1d2f52..b40b760ebb73a6cbf7f7a13ccb063e9b5dd5d08b 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2005, PHP 5.0.5
 - Removed php_check_syntax() function, never worked properly. (Ilia)
+- Fixed bug #32699 (pg_affected_rows() was defined when it was not available).
+  (Derick)
 - Fixed bug #32615 (Segfault in replaceChild() using fragment when 
   previousSibling is NULL). (Rob)
 - Fixed bug #32591 (ext/mysql: Unsatisfied symbol: ntohs with HP-UX). (Jani)
index 414e2050ecd9f35409ab6ca8bce94b0fee5093f1..32f5a7e8e6ea9666b76c7e2b314237067f4a4544 100644 (file)
@@ -105,7 +105,9 @@ function_entry pgsql_functions[] = {
        PHP_FE(pg_fetch_array,  NULL)
        PHP_FE(pg_fetch_object, NULL)
        PHP_FE(pg_fetch_all,    NULL)
+#if HAVE_PQCMDTUPLES
        PHP_FE(pg_affected_rows,NULL)
+#endif
        PHP_FE(pg_get_result,   NULL)
        PHP_FE(pg_result_seek,  NULL)
        PHP_FE(pg_result_status,NULL)
@@ -1156,6 +1158,7 @@ PHP_FUNCTION(pg_num_fields)
 }
 /* }}} */
 
+#if HAVE_PQCMDTUPLES
 /* {{{ proto int pg_affected_rows(resource result)
    Returns the number of affected tuples */
 PHP_FUNCTION(pg_affected_rows)
@@ -1163,6 +1166,7 @@ PHP_FUNCTION(pg_affected_rows)
        php_pgsql_get_result_info(INTERNAL_FUNCTION_PARAM_PASSTHRU,PHP_PG_CMD_TUPLES);
 }
 /* }}} */
+#endif
 
 /* {{{ proto string pg_last_notice(resource connection)
    Returns the last notice set by the backend */
index f25acc9072b9ff747faa44d3c703395c7c4fc23f..ceb9a732996a1b4df0bd3d9d83874d55119f24c5 100644 (file)
@@ -86,7 +86,9 @@ PHP_FUNCTION(pg_fetch_object);
 PHP_FUNCTION(pg_fetch_result);
 PHP_FUNCTION(pg_fetch_row);
 PHP_FUNCTION(pg_fetch_all);
+#if HAVE_PQCMDTUPLES
 PHP_FUNCTION(pg_affected_rows);
+#endif
 PHP_FUNCTION(pg_get_result);
 PHP_FUNCTION(pg_result_seek);
 PHP_FUNCTION(pg_result_status);