From 07632d6e682821066a06f96a56c7b28dab77a514 Mon Sep 17 00:00:00 2001 From: Andreas Schnederle-Wagner Date: Tue, 6 Feb 2018 10:46:53 +0100 Subject: [PATCH] Update php_mysql.c As mysql_list_fields() was removed from mysqlnd we should throw Error here I guess ... https://github.com/php/php-src/commit/398caf9336a5f6a71439969c7fd610bfaf522b93#diff-48eed863ec9451a1280e0e2d1d8e45b0 --- php_mysql.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php_mysql.c b/php_mysql.c index c49ef1c..d9f4639 100644 --- a/php_mysql.c +++ b/php_mysql.c @@ -1756,6 +1756,10 @@ PHP_FUNCTION(mysql_list_fields) php_mysql_conn *mysql; MYSQL_RES *mysql_result; +#if PHP_VERSION_ID > 70000 + php_error_docref(NULL, E_ERROR, "mysql_list_fields() was removed from mysqlnd and can no longer be used!"); +#endif + if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss|r", &db, &db_len, &table, &table_len, &mysql_link) == FAILURE) { return; }