]> granicus.if.org Git - php/commitdiff
removed function mysql_num_warnings (libmysql change).
authorGeorg Richter <georg@php.net>
Wed, 12 Feb 2003 10:39:06 +0000 (10:39 +0000)
committerGeorg Richter <georg@php.net>
Wed, 12 Feb 2003 10:39:06 +0000 (10:39 +0000)
ext/mysqli/mysqli_api.c
ext/mysqli/mysqli_fe.c
ext/mysqli/php_mysqli.h

index 3d70d9ac4c8f78cacfcecceb30422f5548d956f8..8efee2e66b711e23ed493e877d78fcb410ac5baf 100644 (file)
@@ -1082,22 +1082,6 @@ PHP_FUNCTION(mysqli_num_rows)
 }
 /* }}} */
 
-/* {{{ proto int mysqli_num_warnings 
- */
-PHP_FUNCTION(mysqli_num_warnings)
-{
-       MYSQL *mysql;
-       zval  *mysql_link = NULL;
-
-       if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "O", &mysql_link, mysqli_link_class_entry) == FAILURE) {
-               return;
-       }
-       MYSQLI_FETCH_RESOURCE(mysql, MYSQL *, &mysql_link, "mysqli_link"); 
-
-       RETURN_LONG(mysql_warning_count(mysql));
-}
-/* }}} */
-
 /* {{{ proto bool mysqli_options(resource link, int flags, mixed values)
    set options */
 PHP_FUNCTION(mysqli_options)
index e93adccc8ca0323c1c996ea43cbda25f43bfe0e9..ac6aa05410ddbc9882c80cd38e5b17c0a3e93565 100644 (file)
@@ -80,7 +80,6 @@ function_entry mysqli_functions[] = {
        PHP_FE(mysqli_master_query,                                                     NULL)
        PHP_FE(mysqli_num_fields,                                                       NULL)
        PHP_FE(mysqli_num_rows,                                                         NULL)
-       PHP_FE(mysqli_num_warnings,                                                     NULL)
        PHP_FE(mysqli_options,                                                          NULL)
        PHP_FE(mysqli_param_count,                                                      NULL)
        PHP_FE(mysqli_ping,                                                                     NULL)
index 545a4f537b20fd2a44ede5f1078beb345699850c..9c4a0edd05a681f71a9906d22cea075996d5668e 100644 (file)
@@ -186,7 +186,6 @@ PHP_FUNCTION(mysqli_kill);
 PHP_FUNCTION(mysqli_master_query);
 PHP_FUNCTION(mysqli_num_fields);
 PHP_FUNCTION(mysqli_num_rows);
-PHP_FUNCTION(mysqli_num_warnings);
 PHP_FUNCTION(mysqli_options);
 PHP_FUNCTION(mysqli_param_count);
 PHP_FUNCTION(mysqli_ping);