Skip to content

Commit abc8c00

Browse files
committed
MNDR:
- rename mysqlnd.c to mysqlnd_connection.c
1 parent c24d452 commit abc8c00

File tree

4 files changed

+258
-258
lines changed

4 files changed

+258
-258
lines changed

ext/mysqlnd/config.w32

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ if (PHP_MYSQLND != "no") {
66

77
if (CHECK_LIB("ws2_32.lib", "mysqlnd")) {
88
mysqlnd_source =
9-
"mysqlnd.c " +
109
"mysqlnd_alloc.c " +
1110
"mysqlnd_auth.c " +
1211
"mysqlnd_block_alloc.c " +
12+
"mysqlnd_connection.c " +
1313
"mysqlnd_charset.c " +
1414
"mysqlnd_commands.c " +
1515
"mysqlnd_debug.c " +

ext/mysqlnd/config9.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fi
1818
dnl If some extension uses mysqlnd it will get compiled in PHP core
1919
if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
2020
mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
21-
mysqlnd_base_sources="mysqlnd.c mysqlnd_alloc.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
21+
mysqlnd_base_sources="mysqlnd_connection.c mysqlnd_alloc.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
2222
mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_vio.c mysqlnd_protocol_frame_codec.c \
2323
mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \
2424
mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c mysqlnd_commands.c \

ext/mysqlnd/mysqlnd.h

+14-14
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,14 @@ PHPAPI zend_ulong mysqlnd_old_escape_string(char * newstr, const char * escapest
224224

225225

226226
/* PS */
227-
#define mysqlnd_stmt_init(conn) ((conn)->data)->m->stmt_init(((conn)->data))
228-
#define mysqlnd_stmt_store_result(stmt) (!mysqlnd_stmt_field_count((stmt)) ? PASS:((stmt)->m->store_result((stmt))? PASS:FAIL))
229-
#define mysqlnd_stmt_get_result(stmt) (stmt)->m->get_result((stmt))
230-
#define mysqlnd_stmt_more_results(stmt) (stmt)->m->more_results((stmt))
231-
#define mysqlnd_stmt_next_result(stmt) (stmt)->m->next_result((stmt))
232-
#define mysqlnd_stmt_data_seek(stmt, row) (stmt)->m->seek_data((stmt), (row))
233-
#define mysqlnd_stmt_prepare(stmt, q, qlen) (stmt)->m->prepare((stmt), (q), (qlen))
234-
#define mysqlnd_stmt_execute(stmt) (stmt)->m->execute((stmt))
227+
#define mysqlnd_stmt_init(conn) ((conn)->data)->m->stmt_init(((conn)->data))
228+
#define mysqlnd_stmt_store_result(stmt) (!mysqlnd_stmt_field_count((stmt)) ? PASS:((stmt)->m->store_result((stmt))? PASS:FAIL))
229+
#define mysqlnd_stmt_get_result(stmt) (stmt)->m->get_result((stmt))
230+
#define mysqlnd_stmt_more_results(stmt) (stmt)->m->more_results((stmt))
231+
#define mysqlnd_stmt_next_result(stmt) (stmt)->m->next_result((stmt))
232+
#define mysqlnd_stmt_data_seek(stmt, row) (stmt)->m->seek_data((stmt), (row))
233+
#define mysqlnd_stmt_prepare(stmt, q, qlen) (stmt)->m->prepare((stmt), (q), (qlen))
234+
#define mysqlnd_stmt_execute(stmt) (stmt)->m->execute((stmt))
235235
#define mysqlnd_stmt_send_long_data(stmt,p,d,l) (stmt)->m->send_long_data((stmt), (p), (d), (l))
236236
#define mysqlnd_stmt_alloc_param_bind(stmt) (stmt)->m->alloc_parameter_bind((stmt))
237237
#define mysqlnd_stmt_free_param_bind(stmt,bind) (stmt)->m->free_parameter_bind((stmt), (bind))
@@ -245,10 +245,10 @@ PHPAPI zend_ulong mysqlnd_old_escape_string(char * newstr, const char * escapest
245245
#define mysqlnd_stmt_param_metadata(stmt) (stmt)->m->get_parameter_metadata((stmt))
246246
#define mysqlnd_stmt_result_metadata(stmt) (stmt)->m->get_result_metadata((stmt))
247247

248-
#define mysqlnd_stmt_free_result(stmt) (stmt)->m->free_result((stmt))
249-
#define mysqlnd_stmt_close(stmt, implicit) (stmt)->m->dtor((stmt), (implicit))
250-
#define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt))
251-
#define mysqlnd_stmt_flush(stmt) (stmt)->m->flush((stmt))
248+
#define mysqlnd_stmt_free_result(stmt) (stmt)->m->free_result((stmt))
249+
#define mysqlnd_stmt_close(stmt, implicit) (stmt)->m->dtor((stmt), (implicit))
250+
#define mysqlnd_stmt_reset(stmt) (stmt)->m->reset((stmt))
251+
#define mysqlnd_stmt_flush(stmt) (stmt)->m->flush((stmt))
252252

253253

254254
#define mysqlnd_stmt_attr_get(stmt, attr, value) (stmt)->m->get_attribute((stmt), (attr), (value))
@@ -261,8 +261,8 @@ PHPAPI zend_ulong mysqlnd_old_escape_string(char * newstr, const char * escapest
261261
PHPAPI void _mysqlnd_get_client_stats(zval *return_value ZEND_FILE_LINE_DC);
262262

263263
/* double check the class name to avoid naming conflicts when using these: */
264-
#define MYSQLND_METHOD(class, method) php_##class##_##method##_pub
265-
#define MYSQLND_METHOD_PRIVATE(class, method) php_##class##_##method##_priv
264+
#define MYSQLND_METHOD(class, method) mysqlnd_##class##_##method##_pub
265+
#define MYSQLND_METHOD_PRIVATE(class, method) mysqlnd_##class##_##method##_priv
266266

267267
ZEND_BEGIN_MODULE_GLOBALS(mysqlnd)
268268
char * debug; /* The actual string */

0 commit comments

Comments
 (0)