Skip to content

Commit be93e5a

Browse files
committed
Make mysqli_stmt_next_result available under libmysql
The libmysqlclient version we require supports mysql_stmt_next_result.
1 parent b88a493 commit be93e5a

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

ext/mysqli/mysqli.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,13 @@ public function result_metadata() {}
457457
* @alias mysqli_stmt_more_results
458458
*/
459459
public function more_results() {}
460+
#endif
460461

461462
/**
462463
* @return bool
463464
* @alias mysqli_stmt_next_result
464465
*/
465466
public function next_result() {}
466-
#endif
467467

468468
/**
469469
* @return int|string
@@ -717,9 +717,9 @@ function mysqli_stmt_insert_id(mysqli_stmt $statement): int|string {}
717717

718718
#if defined(MYSQLI_USE_MYSQLND)
719719
function mysqli_stmt_more_results(mysqli_stmt $statement): bool {}
720+
#endif
720721

721722
function mysqli_stmt_next_result(mysqli_stmt $statement): bool {}
722-
#endif
723723

724724
function mysqli_stmt_num_rows(mysqli_stmt $statement): int|string {}
725725

ext/mysqli/mysqli_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,6 +1576,7 @@ PHP_FUNCTION(mysqli_stmt_more_results)
15761576
RETURN_BOOL(mysqlnd_stmt_more_results(stmt->stmt));
15771577
}
15781578
/* }}} */
1579+
#endif
15791580

15801581
/* {{{ read next result from multi_query */
15811582
PHP_FUNCTION(mysqli_stmt_next_result) {
@@ -1594,7 +1595,6 @@ PHP_FUNCTION(mysqli_stmt_next_result) {
15941595
RETURN_TRUE;
15951596
}
15961597
/* }}} */
1597-
#endif
15981598

15991599
/* {{{ Get number of fields in result */
16001600
PHP_FUNCTION(mysqli_num_fields)

ext/mysqli/mysqli_arginfo.h

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 480939b71e1dacbdbb4634dbabf375943e399b6f */
2+
* Stub hash: 6af7fe4ad33232a118fdde74d13e0fb8a04fb4b0 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
55
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,
353353
ZEND_END_ARG_INFO()
354354
#endif
355355

356-
#if defined(MYSQLI_USE_MYSQLND)
357-
#define arginfo_mysqli_stmt_next_result arginfo_mysqli_stmt_more_results
358-
#endif
356+
#define arginfo_mysqli_stmt_next_result arginfo_mysqli_stmt_execute
359357

360358
#define arginfo_mysqli_stmt_num_rows arginfo_mysqli_stmt_affected_rows
361359

@@ -665,9 +663,7 @@ ZEND_END_ARG_INFO()
665663
#define arginfo_class_mysqli_stmt_more_results arginfo_class_mysqli_get_connection_stats
666664
#endif
667665

668-
#if defined(MYSQLI_USE_MYSQLND)
669-
#define arginfo_class_mysqli_stmt_next_result arginfo_class_mysqli_get_connection_stats
670-
#endif
666+
#define arginfo_class_mysqli_stmt_next_result arginfo_class_mysqli_character_set_name
671667

672668
#define arginfo_class_mysqli_stmt_num_rows arginfo_class_mysqli_character_set_name
673669

@@ -790,9 +786,7 @@ ZEND_FUNCTION(mysqli_stmt_insert_id);
790786
#if defined(MYSQLI_USE_MYSQLND)
791787
ZEND_FUNCTION(mysqli_stmt_more_results);
792788
#endif
793-
#if defined(MYSQLI_USE_MYSQLND)
794789
ZEND_FUNCTION(mysqli_stmt_next_result);
795-
#endif
796790
ZEND_FUNCTION(mysqli_stmt_num_rows);
797791
ZEND_FUNCTION(mysqli_stmt_param_count);
798792
ZEND_FUNCTION(mysqli_stmt_prepare);
@@ -918,9 +912,7 @@ static const zend_function_entry ext_functions[] = {
918912
#if defined(MYSQLI_USE_MYSQLND)
919913
ZEND_FE(mysqli_stmt_more_results, arginfo_mysqli_stmt_more_results)
920914
#endif
921-
#if defined(MYSQLI_USE_MYSQLND)
922915
ZEND_FE(mysqli_stmt_next_result, arginfo_mysqli_stmt_next_result)
923-
#endif
924916
ZEND_FE(mysqli_stmt_num_rows, arginfo_mysqli_stmt_num_rows)
925917
ZEND_FE(mysqli_stmt_param_count, arginfo_mysqli_stmt_param_count)
926918
ZEND_FE(mysqli_stmt_prepare, arginfo_mysqli_stmt_prepare)
@@ -1040,9 +1032,7 @@ static const zend_function_entry class_mysqli_stmt_methods[] = {
10401032
#if defined(MYSQLI_USE_MYSQLND)
10411033
ZEND_ME_MAPPING(more_results, mysqli_stmt_more_results, arginfo_class_mysqli_stmt_more_results, ZEND_ACC_PUBLIC)
10421034
#endif
1043-
#if defined(MYSQLI_USE_MYSQLND)
10441035
ZEND_ME_MAPPING(next_result, mysqli_stmt_next_result, arginfo_class_mysqli_stmt_next_result, ZEND_ACC_PUBLIC)
1045-
#endif
10461036
ZEND_ME_MAPPING(num_rows, mysqli_stmt_num_rows, arginfo_class_mysqli_stmt_num_rows, ZEND_ACC_PUBLIC)
10471037
ZEND_ME_MAPPING(send_long_data, mysqli_stmt_send_long_data, arginfo_class_mysqli_stmt_send_long_data, ZEND_ACC_PUBLIC)
10481038
ZEND_ME_MAPPING(free_result, mysqli_stmt_free_result, arginfo_class_mysqli_stmt_free_result, ZEND_ACC_PUBLIC)

0 commit comments

Comments
 (0)