Skip to content

Commit 00825de

Browse files
committed
Use PHP_DEP_FE - good for reflection
1 parent 18aadba commit 00825de

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

ext/mysql/php_mysql.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ static const zend_function_entry mysql_functions[] = {
251251
#endif /* NETWARE */
252252
PHP_FE(mysql_query, arginfo_mysql_query)
253253
PHP_FE(mysql_unbuffered_query, arginfo_mysql_query)
254-
PHP_FE(mysql_db_query, arginfo_mysql_db_query)
255-
PHP_FE(mysql_list_dbs, arginfo__optional_mysql_link)
254+
PHP_DEP_FE(mysql_db_query, arginfo_mysql_db_query)
255+
PHP_DEP_FE(mysql_list_dbs, arginfo__optional_mysql_link)
256256
PHP_DEP_FE(mysql_list_tables, arginfo_mysql_select_db)
257257
PHP_FE(mysql_list_fields, arginfo_mysql_list_fields)
258258
PHP_FE(mysql_list_processes, arginfo__optional_mysql_link)

ext/mysql/tests/mysql_db_name.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ mysql_close($link);
5858
print "done!\n";
5959
?>
6060
--EXPECTF--
61+
Deprecated: Function mysql_list_dbs() is deprecated in %s on line %d
62+
6163
Deprecated: mysql_list_dbs(): This function is deprecated; use mysql_query() with SHOW DATABASES instead in %s on line %d
6264

6365
Warning: mysql_db_name(): Unable to jump to row -1 on MySQL result index %d in %s on line %d

ext/mysql/tests/mysql_list_dbs.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ print "done!\n";
5151
require_once("clean_table.inc");
5252
?>
5353
--EXPECTF--
54+
Deprecated: Function mysql_list_dbs() is deprecated in %s on line 15
55+
5456
Deprecated: mysql_list_dbs(): This function is deprecated; use mysql_query() with SHOW DATABASES instead in %s on line %d
5557

5658
Deprecated: mysql_list_dbs(): This function is deprecated; use mysql_query() with SHOW DATABASES instead in %s on line %d

0 commit comments

Comments
 (0)