mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Respect the origin behavior (fix one test: ext/pdo_mysql/tests/bug_33689.phpt)
This commit is contained in:
parent
92a7089893
commit
56a966e88a
4 changed files with 9 additions and 7 deletions
|
@ -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 : ""));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue