From: Andrey Hristov Date: Tue, 17 May 2011 09:44:11 +0000 (+0000) Subject: exchange a "trap" with an error X-Git-Tag: php-5.3.7RC1~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a417820be3b6b4971762a2b8ef852281a8b119d1;p=php exchange a "trap" with an error --- 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);