File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,7 @@ php_mysqlnd_greet_read(void * _packet)
392
392
packet -> server_capabilities = uint2korr (p );
393
393
p += 2 ;
394
394
BAIL_IF_NO_MORE_DATA ;
395
+ DBG_INF_FMT ("4.1 server_caps=%u\n" , (uint32_t ) packet -> server_capabilities );
395
396
396
397
packet -> charset_no = uint1korr (p );
397
398
p ++ ;
@@ -421,7 +422,8 @@ php_mysqlnd_greet_read(void * _packet)
421
422
p -- ;
422
423
423
424
/* Additional 16 bits for server capabilities */
424
- packet -> server_capabilities |= uint2korr (pad_start ) << 16 ;
425
+ DBG_INF_FMT ("additional 5.5+ caps=%u\n" , (uint32_t ) uint2korr (pad_start ));
426
+ packet -> server_capabilities |= ((uint32_t ) uint2korr (pad_start )) << 16 ;
425
427
/* And a length of the server scramble in one byte */
426
428
packet -> authentication_plugin_data .l = uint1korr (pad_start + 2 );
427
429
if (packet -> authentication_plugin_data .l > SCRAMBLE_LENGTH ) {
You can’t perform that action at this time.
0 commit comments