diff options
author | Andrey Hristov <andrey@php.net> | 2010-08-17 17:40:31 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2010-08-17 17:40:31 +0000 |
commit | 00825de6a27b88c34227b2fa6079275642f1d28b (patch) | |
tree | 02f3e88480e130fd51534fd721bd43d764b67137 | |
parent | 18aadba237cb062b44b40ed2254ef3c120036f5a (diff) | |
download | php-git-00825de6a27b88c34227b2fa6079275642f1d28b.tar.gz |
Use PHP_DEP_FE - good for reflection
-rw-r--r-- | ext/mysql/php_mysql.c | 4 | ||||
-rw-r--r-- | ext/mysql/tests/mysql_db_name.phpt | 2 | ||||
-rw-r--r-- | ext/mysql/tests/mysql_list_dbs.phpt | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 1f2762b191..6fd51f2639 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -251,8 +251,8 @@ static const zend_function_entry mysql_functions[] = { #endif /* NETWARE */ PHP_FE(mysql_query, arginfo_mysql_query) PHP_FE(mysql_unbuffered_query, arginfo_mysql_query) - PHP_FE(mysql_db_query, arginfo_mysql_db_query) - PHP_FE(mysql_list_dbs, arginfo__optional_mysql_link) + PHP_DEP_FE(mysql_db_query, arginfo_mysql_db_query) + PHP_DEP_FE(mysql_list_dbs, arginfo__optional_mysql_link) PHP_DEP_FE(mysql_list_tables, arginfo_mysql_select_db) PHP_FE(mysql_list_fields, arginfo_mysql_list_fields) PHP_FE(mysql_list_processes, arginfo__optional_mysql_link) diff --git a/ext/mysql/tests/mysql_db_name.phpt b/ext/mysql/tests/mysql_db_name.phpt index e241bc0d9a..bed98bca52 100644 --- a/ext/mysql/tests/mysql_db_name.phpt +++ b/ext/mysql/tests/mysql_db_name.phpt @@ -58,6 +58,8 @@ mysql_close($link); print "done!\n"; ?> --EXPECTF-- +Deprecated: Function mysql_list_dbs() is deprecated in %s on line %d + Deprecated: mysql_list_dbs(): This function is deprecated; use mysql_query() with SHOW DATABASES instead in %s on line %d Warning: mysql_db_name(): Unable to jump to row -1 on MySQL result index %d in %s on line %d diff --git a/ext/mysql/tests/mysql_list_dbs.phpt b/ext/mysql/tests/mysql_list_dbs.phpt index e0850d5a54..6900ab0e0a 100644 --- a/ext/mysql/tests/mysql_list_dbs.phpt +++ b/ext/mysql/tests/mysql_list_dbs.phpt @@ -51,6 +51,8 @@ print "done!\n"; require_once("clean_table.inc"); ?> --EXPECTF-- +Deprecated: Function mysql_list_dbs() is deprecated in %s on line 15 + Deprecated: mysql_list_dbs(): This function is deprecated; use mysql_query() with SHOW DATABASES instead in %s on line %d Deprecated: mysql_list_dbs(): This function is deprecated; use mysql_query() with SHOW DATABASES instead in %s on line %d |