summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-05-03 16:06:27 +0800
committerXinchen Hui <laruence@gmail.com>2014-05-03 16:08:58 +0800
commitd8651fbe1c4caaaedc42cef1dee0dd3b3f1e447e (patch)
tree499ace92cf766bf5cd5a1220d54498632416526f /ext/mysql/php_mysql.c
parent5984f95d8f8d75007fff4963d67ebe65e572efea (diff)
downloadphp-git-d8651fbe1c4caaaedc42cef1dee0dd3b3f1e447e.tar.gz
Make they are in the same style of Z_ISREF
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 9f7f07d038..0b27f1e44c 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -2209,7 +2209,7 @@ static void php_mysql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, long result_type,
if (zend_call_function(&fci, &fcc TSRMLS_CC) == FAILURE) {
zend_throw_exception_ex(zend_exception_get_default(TSRMLS_C), 0 TSRMLS_CC, "Could not execute %s::%s()", ce->name->val, ce->constructor->common.function_name->val);
} else {
- if (!ZVAL_IS_UNDEF(&retval)) {
+ if (!Z_ISUNDEF(retval)) {
zval_ptr_dtor(&retval);
}
}