@@ -309,9 +309,9 @@ MYSQLND_METHOD(mysqlnd_conn_data, free_contents)(MYSQLND_CONN_DATA * conn)
309
309
mnd_pefree (conn -> auth_plugin_data , pers );
310
310
conn -> auth_plugin_data = NULL ;
311
311
}
312
- if (conn -> last_message ) {
313
- mnd_pefree (conn -> last_message , pers );
314
- conn -> last_message = NULL ;
312
+ if (conn -> last_message . s ) {
313
+ mnd_pefree (conn -> last_message . s , pers );
314
+ conn -> last_message . s = NULL ;
315
315
}
316
316
if (conn -> error_info -> error_list ) {
317
317
zend_llist_clean (conn -> error_info -> error_list );
@@ -356,7 +356,7 @@ MYSQLND_METHOD_PRIVATE(mysqlnd_conn_data, dtor)(MYSQLND_CONN_DATA * conn)
356
356
}
357
357
/* }}} */
358
358
359
-
359
+ #if 0
360
360
/* {{{ mysqlnd_conn_data::send_command_handle_response */
361
361
static enum_func_status
362
362
MYSQLND_METHOD (mysqlnd_conn_data , send_command_handle_response )(
@@ -458,7 +458,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, send_command_handle_response)(
458
458
DBG_RETURN (ret );
459
459
}
460
460
/* }}} */
461
-
461
+ #endif
462
462
463
463
/* {{{ mysqlnd_conn_data::set_server_option */
464
464
static enum_func_status
@@ -488,9 +488,9 @@ MYSQLND_METHOD(mysqlnd_conn_data, restart_psession)(MYSQLND_CONN_DATA * conn)
488
488
DBG_ENTER ("mysqlnd_conn_data::restart_psession" );
489
489
MYSQLND_INC_CONN_STATISTIC (conn -> stats , STAT_CONNECT_REUSED );
490
490
/* Free here what should not be seen by the next script */
491
- if (conn -> last_message ) {
492
- mnd_pefree (conn -> last_message , conn -> persistent );
493
- conn -> last_message = NULL ;
491
+ if (conn -> last_message . s ) {
492
+ mnd_pefree (conn -> last_message . s , conn -> persistent );
493
+ conn -> last_message . s = NULL ;
494
494
}
495
495
DBG_RETURN (PASS );
496
496
}
@@ -1791,7 +1791,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, statistic)(MYSQLND_CONN_DATA * conn, zend_stri
1791
1791
1792
1792
if (PASS == (ret = PACKET_READ (stats_header ))) {
1793
1793
/* will be freed by Zend, thus don't use the mnd_ allocator */
1794
- * message = zend_string_init (stats_header -> message , stats_header -> message_len , 0 );
1794
+ * message = zend_string_init (stats_header -> message . s , stats_header -> message . l , 0 );
1795
1795
DBG_INF (ZSTR_VAL (* message ));
1796
1796
}
1797
1797
PACKET_FREE (stats_header );
@@ -2075,7 +2075,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, warning_count)(const MYSQLND_CONN_DATA * const
2075
2075
static const char *
2076
2076
MYSQLND_METHOD (mysqlnd_conn_data , info )(const MYSQLND_CONN_DATA * const conn )
2077
2077
{
2078
- return conn -> last_message ;
2078
+ return conn -> last_message . s ;
2079
2079
}
2080
2080
/* }}} */
2081
2081
@@ -3054,7 +3054,7 @@ MYSQLND_CLASS_METHODS_START(mysqlnd_conn_data)
3054
3054
MYSQLND_METHOD_PRIVATE (mysqlnd_conn_data , get_reference ),
3055
3055
MYSQLND_METHOD_PRIVATE (mysqlnd_conn_data , free_reference ),
3056
3056
3057
- MYSQLND_METHOD (mysqlnd_conn_data , send_command_handle_response ),
3057
+ // MYSQLND_METHOD(mysqlnd_conn_data, send_command_handle_response),
3058
3058
MYSQLND_METHOD (mysqlnd_conn_data , restart_psession ),
3059
3059
MYSQLND_METHOD (mysqlnd_conn_data , end_psession ),
3060
3060
MYSQLND_METHOD (mysqlnd_conn_data , send_close ),
0 commit comments