summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-05-17 09:44:11 +0000
committerAndrey Hristov <andrey@php.net>2011-05-17 09:44:11 +0000
commit778273291d3bba2c1bfc7cdc9c7e23ab6be10ed8 (patch)
tree1f93df3257bf130fe459b03a2979f97d2ede6eb4
parent85eb08885b097eaa4a064ced6cdf4bd80331a097 (diff)
downloadphp-git-778273291d3bba2c1bfc7cdc9c7e23ab6be10ed8.tar.gz
exchange a "trap" with an error
-rw-r--r--ext/mysqlnd/mysqlnd_result.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c
index 30368f4346..f1c6332788 100644
--- a/ext/mysqlnd/mysqlnd_result.c
+++ b/ext/mysqlnd/mysqlnd_result.c
@@ -1546,7 +1546,7 @@ MYSQLND_METHOD(mysqlnd_res, fetch_row_c)(MYSQLND_RES * result TSRMLS_DC)
} else if (result->m.fetch_row == result->m.fetch_row_normal_unbuffered) {
DBG_RETURN(mysqlnd_fetch_row_unbuffered_c(result TSRMLS_CC));
} else {
- *((int*)NULL) = 1;
+ php_error_docref(NULL TSRMLS_CC, E_ERROR, "result->m.fetch_row has invalid value. Report to the developers");
}
}
DBG_RETURN(ret);