| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 Patch pecl-mysql-srcmp for mysql Bug #71198Patch version 2015-12-22 18:01 UTC Return to Bug #71198 | Download this patchPatch Revisions: Developer: lnkvisitor.ts@gmail.com
index 005fd77..c892c7d 100644
--- a/php_mysql.c
+++ b/php_mysql.c
@@ -2023,8 +2023,8 @@ Q: String or long first?
                                        mysql_field_seek(mysql_result, 0);
                                        while ((tmp_field = mysql_fetch_field(mysql_result))) {
                                                if ((!table_name ||
-                                                                       !strncasecmp(tmp_field->table, table_name, tmp_field->table_length)) &&
-                                                               !strncasecmp(tmp_field->name, field_name, tmp_field->name_length)) {
+                                                                       (tmp - Z_STRVAL_P(field) == tmp_field->table_length && !strncasecmp(tmp_field->table, table_name, tmp_field->table_length))) &&
+                                                               Z_STRLEN_P(field) == tmp_field->name_length && !strncasecmp(tmp_field->name, field_name, tmp_field->name_length)){
                                                        field_offset = i;
                                                        break;
                                                }
         | 
    
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 00:00:01 2025 UTC |