diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-01-30 02:33:16 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-01-30 02:33:16 +0000 |
commit | 453368afdffaa2017c22f75f72b736a3b3cb510a (patch) | |
tree | 9110d98320549877fbcf1d61bd1e66b550124f91 /ext/mssql | |
parent | e3672e49fc70e3d26b046d062cf3acc6dd06e54a (diff) | |
download | php-git-453368afdffaa2017c22f75f72b736a3b3cb510a.tar.gz |
Removed pointless checks.
Diffstat (limited to 'ext/mssql')
-rw-r--r-- | ext/mssql/php_mssql.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index b44deff3c6..c60065c73e 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -1490,9 +1490,8 @@ PHP_FUNCTION(mssql_fetch_field) RETURN_FALSE; } - if (object_init(return_value)==FAILURE) { - RETURN_FALSE; - } + object_init(return_value); + add_property_string(return_value, "name",result->fields[field_offset].name, 1); add_property_long(return_value, "max_length",result->fields[field_offset].max_length); add_property_string(return_value, "column_source",result->fields[field_offset].column_source, 1); |