Patch mysqli_patch for MySQLi related Bug #55703
Patch version 2011-09-15 15:13 UTC
Return to Bug #55703 |
Download this patch
Patch Revisions:
Developer: eran@zend.com
diff -ruw php-5.3.8.orig/ext/mysqli/mysqli_api.c php-5.3.8/ext/mysqli/mysqli_api.c
--- php-5.3.8.orig/ext/mysqli/mysqli_api.c 2011-08-02 18:30:58.000000000 +0300
+++ php-5.3.8/ext/mysqli/mysqli_api.c 2011-09-13 11:50:30.453609563 +0300
@@ -1053,7 +1053,9 @@
add_property_string(value, "orgtable", (char *) (field->org_table ? field->org_table : ""), 1);
add_property_string(value, "def", (field->def ? field->def : ""), 1);
add_property_string(value, "db", (field->db ? field->db : ""), 1);
- add_property_string(value, "catalog", (field->catalog ? field->catalog : ""), 1);
+ // FIXME: manually set the catalog to "def" due to bug in
+ // libmysqlclient which does not initialize field->catalog
+ add_property_string(value, "catalog", "def", 1);
add_property_long(value, "max_length", field->max_length);
add_property_long(value, "length", field->length);
|