Respect the origin behavior (fix one test: ext/pdo_mysql/tests/bug_33689.phpt)

This commit is contained in:
Xinchen Hui 2014-06-23 19:34:23 +08:00
parent 92a7089893
commit 56a966e88a
4 changed files with 9 additions and 7 deletions

View file

@ -1153,7 +1153,7 @@ static void php_add_field_properties(zval *value, const MYSQL_FIELD *field TSRML
add_property_str(value, "orgname", STR_COPY(field->org_name));
add_property_str(value, "table", STR_COPY(field->table));
add_property_str(value, "orgtable", STR_COPY(field->org_table));
add_property_str(value, "def", STR_COPY(field->def));
add_property_str(value, "def", field->def? STR_COPY(field->def) : STR_EMPTY_ALLOC());
add_property_str(value, "db", STR_COPY(field->db));
#else
add_property_string(value, "name",(field->name ? field->name : ""));