]> 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 30368f4346f2f08c30c27cd2f1518e174675fee6..f1c633278860a78266acba6b3777e720ceb6ab04 100644 (file)
@@ -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);