diff options
author | Zeev Suraski <zeev@php.net> | 2001-08-18 16:56:34 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-08-18 16:56:34 +0000 |
commit | b8624e7e08dd5c823adc9b025fbc9690870aae7c (patch) | |
tree | 9463a1b375939126d87c91abd50123d0b13d38a4 /ext/msql | |
parent | d3aff0f6ee3a565904b0b990e95bbe43aab440d2 (diff) | |
download | php-git-b8624e7e08dd5c823adc9b025fbc9690870aae7c.tar.gz |
Fix bugs #7301, #6827
Diffstat (limited to 'ext/msql')
-rw-r--r-- | ext/msql/php_msql.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c index 66639cb1a1..7a9444518d 100644 --- a/ext/msql/php_msql.c +++ b/ext/msql/php_msql.c @@ -849,11 +849,10 @@ PHP_FUNCTION(msql_result) return_value->value.str.len = (sql_row[field_offset]?strlen(sql_row[field_offset]):0); return_value->value.str.val = (char *) safe_estrndup(sql_row[field_offset],return_value->value.str.len); } + return_value->type = IS_STRING; } else { ZVAL_FALSE(return_value); } - - return_value->type = IS_STRING; } /* }}} */ |