summaryrefslogtreecommitdiff
path: root/ext/msql
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-18 16:56:34 +0000
committerZeev Suraski <zeev@php.net>2001-08-18 16:56:34 +0000
commitb8624e7e08dd5c823adc9b025fbc9690870aae7c (patch)
tree9463a1b375939126d87c91abd50123d0b13d38a4 /ext/msql
parentd3aff0f6ee3a565904b0b990e95bbe43aab440d2 (diff)
downloadphp-git-b8624e7e08dd5c823adc9b025fbc9690870aae7c.tar.gz
Fix bugs #7301, #6827
Diffstat (limited to 'ext/msql')
-rw-r--r--ext/msql/php_msql.c3
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;
}
/* }}} */