]> granicus.if.org Git - php/commitdiff
Make mysqli_stmt_next_result available under libmysql
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 18 Dec 2020 10:27:10 +0000 (11:27 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 18 Dec 2020 10:32:41 +0000 (11:32 +0100)
The libmysqlclient version we require supports mysql_stmt_next_result.

ext/mysqli/mysqli.stub.php
ext/mysqli/mysqli_api.c
ext/mysqli/mysqli_arginfo.h

index c1059254fc14fbca17e401ac12576e90cc20f430..e4da55cbb4d39a110e078061c34cb1437ebf345f 100644 (file)
@@ -457,13 +457,13 @@ class mysqli_stmt
      * @alias mysqli_stmt_more_results
      */
     public function more_results() {}
+#endif
 
     /**
      * @return bool
      * @alias mysqli_stmt_next_result
      */
     public function next_result() {}
-#endif
 
     /**
      * @return int|string
@@ -717,9 +717,9 @@ function mysqli_stmt_insert_id(mysqli_stmt $statement): int|string {}
 
 #if defined(MYSQLI_USE_MYSQLND)
 function mysqli_stmt_more_results(mysqli_stmt $statement): bool {}
+#endif
 
 function mysqli_stmt_next_result(mysqli_stmt $statement): bool {}
-#endif
 
 function mysqli_stmt_num_rows(mysqli_stmt $statement): int|string {}
 
index 0fc7017960256aa3ee0160c535521b6b1756fa0d..45c7dd196ff8a8d38c2e6535cf6d105930cf8c05 100644 (file)
@@ -1576,6 +1576,7 @@ PHP_FUNCTION(mysqli_stmt_more_results)
        RETURN_BOOL(mysqlnd_stmt_more_results(stmt->stmt));
 }
 /* }}} */
+#endif
 
 /* {{{ read next result from multi_query */
 PHP_FUNCTION(mysqli_stmt_next_result) {
@@ -1594,7 +1595,6 @@ PHP_FUNCTION(mysqli_stmt_next_result) {
        RETURN_TRUE;
 }
 /* }}} */
-#endif
 
 /* {{{ Get number of fields in result */
 PHP_FUNCTION(mysqli_num_fields)
index 509840a7fc57d9d312ab5c2d7759e8861ed675af..c7d4cac03a36db628ad1fecaccf5b7187ad0b626 100644 (file)
@@ -1,5 +1,5 @@
 /* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 480939b71e1dacbdbb4634dbabf375943e399b6f */
+ * Stub hash: 6af7fe4ad33232a118fdde74d13e0fb8a04fb4b0 */
 
 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
        ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)
@@ -353,9 +353,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_mysqli_stmt_more_results, 0, 1,
 ZEND_END_ARG_INFO()
 #endif
 
-#if defined(MYSQLI_USE_MYSQLND)
-#define arginfo_mysqli_stmt_next_result arginfo_mysqli_stmt_more_results
-#endif
+#define arginfo_mysqli_stmt_next_result arginfo_mysqli_stmt_execute
 
 #define arginfo_mysqli_stmt_num_rows arginfo_mysqli_stmt_affected_rows
 
@@ -665,9 +663,7 @@ ZEND_END_ARG_INFO()
 #define arginfo_class_mysqli_stmt_more_results arginfo_class_mysqli_get_connection_stats
 #endif
 
-#if defined(MYSQLI_USE_MYSQLND)
-#define arginfo_class_mysqli_stmt_next_result arginfo_class_mysqli_get_connection_stats
-#endif
+#define arginfo_class_mysqli_stmt_next_result arginfo_class_mysqli_character_set_name
 
 #define arginfo_class_mysqli_stmt_num_rows arginfo_class_mysqli_character_set_name
 
@@ -790,9 +786,7 @@ ZEND_FUNCTION(mysqli_stmt_insert_id);
 #if defined(MYSQLI_USE_MYSQLND)
 ZEND_FUNCTION(mysqli_stmt_more_results);
 #endif
-#if defined(MYSQLI_USE_MYSQLND)
 ZEND_FUNCTION(mysqli_stmt_next_result);
-#endif
 ZEND_FUNCTION(mysqli_stmt_num_rows);
 ZEND_FUNCTION(mysqli_stmt_param_count);
 ZEND_FUNCTION(mysqli_stmt_prepare);
@@ -918,9 +912,7 @@ static const zend_function_entry ext_functions[] = {
 #if defined(MYSQLI_USE_MYSQLND)
        ZEND_FE(mysqli_stmt_more_results, arginfo_mysqli_stmt_more_results)
 #endif
-#if defined(MYSQLI_USE_MYSQLND)
        ZEND_FE(mysqli_stmt_next_result, arginfo_mysqli_stmt_next_result)
-#endif
        ZEND_FE(mysqli_stmt_num_rows, arginfo_mysqli_stmt_num_rows)
        ZEND_FE(mysqli_stmt_param_count, arginfo_mysqli_stmt_param_count)
        ZEND_FE(mysqli_stmt_prepare, arginfo_mysqli_stmt_prepare)
@@ -1040,9 +1032,7 @@ static const zend_function_entry class_mysqli_stmt_methods[] = {
 #if defined(MYSQLI_USE_MYSQLND)
        ZEND_ME_MAPPING(more_results, mysqli_stmt_more_results, arginfo_class_mysqli_stmt_more_results, ZEND_ACC_PUBLIC)
 #endif
-#if defined(MYSQLI_USE_MYSQLND)
        ZEND_ME_MAPPING(next_result, mysqli_stmt_next_result, arginfo_class_mysqli_stmt_next_result, ZEND_ACC_PUBLIC)
-#endif
        ZEND_ME_MAPPING(num_rows, mysqli_stmt_num_rows, arginfo_class_mysqli_stmt_num_rows, ZEND_ACC_PUBLIC)
        ZEND_ME_MAPPING(send_long_data, mysqli_stmt_send_long_data, arginfo_class_mysqli_stmt_send_long_data, ZEND_ACC_PUBLIC)
        ZEND_ME_MAPPING(free_result, mysqli_stmt_free_result, arginfo_class_mysqli_stmt_free_result, ZEND_ACC_PUBLIC)