diff options
author | Andrey Hristov <andrey@php.net> | 2011-05-17 09:44:11 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2011-05-17 09:44:11 +0000 |
commit | a417820be3b6b4971762a2b8ef852281a8b119d1 (patch) | |
tree | fb23294ebd45152b7eb41b8953dd3d61db6d8b90 /ext | |
parent | 1eb770497469d74c0f73123dc58e7338229c22b0 (diff) | |
download | php-git-a417820be3b6b4971762a2b8ef852281a8b119d1.tar.gz |
exchange a "trap" with an error
Diffstat (limited to 'ext')
-rw-r--r-- | ext/mysqlnd/mysqlnd_result.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_result.c b/ext/mysqlnd/mysqlnd_result.c index 23e28e42a0..74976cac3a 100644 --- a/ext/mysqlnd/mysqlnd_result.c +++ b/ext/mysqlnd/mysqlnd_result.c @@ -1583,7 +1583,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); |