]> granicus.if.org Git - php/commitdiff
exchange a "trap" with an error
authorAndrey Hristov <andrey@php.net>
Tue, 17 May 2011 09:44:11 +0000 (09:44 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 17 May 2011 09:44:11 +0000 (09:44 +0000)
ext/mysqlnd/mysqlnd_result.c

index 23e28e42a049163c02787e8d7d1122dc474d0fd7..74976cac3a0a98c0e5b09415eeeb27e115b1fd39 100644 (file)
@@ -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);