Mysql
PHP Manual

Changelog

The following changes have been made to classes/functions/methods of this extension.

General Changelog for the ext/mysql extension

This changelog references the ext/mysql extension.

Changes to existing functions

The following list is a compilation of changelog entries from the ext/mysql functions.

VersionFunctionDescription
5.5.0mysql_connectThis function will generate an E_DEPRECATED error.
 mysql_db_nameThe mysql_list_dbs function is deprecated, and emits an E_DEPRECATED level error.
 mysql_pconnectThis function will generate an E_DEPRECATED error.
 mysql_tablenameThe mysql_tablename function is deprecated, and emits an E_DEPRECATED level error.
5.3.0mysql_db_queryThis function now throws an E_DEPRECATED notice.
 mysql_escape_stringThis function now throws an E_DEPRECATED notice.
5.0.0mysql_fetch_objectAdded the ability to return as a different object.
4.3.7mysql_list_tablesThis function became deprecated.
4.3.0mysql_connectAdded the client_flags parameter.
 mysql_escape_stringThis function became deprecated, do not use this function. Instead, use mysql_real_escape_string.
 mysql_pconnectAdded the client_flags parameter.
4.2.0mysql_connectAdded the new_link parameter.
4.0.6mysql_db_queryThis function is deprecated, do not use this function. Use mysql_select_db and mysql_query instead.

Global ext/mysql changes

The following is a list of changes to the entire ext/mysql extension.

Version Description
5.5.0

This extension has been deprecated. Connecting to a MySQL database via mysql_connect(), mysql_pconnect() or an implicit connection via any other mysql_* function will generate an E_DEPRECATED error.

5.5.0

All of the old deprecated functions and aliases now emit E_DEPRECATED errors. These functions are:

mysql(), mysql_fieldname(), mysql_fieldtable(), mysql_fieldlen(), mysql_fieldtype(), mysql_fieldflags(), mysql_selectdb(), mysql_createdb(), mysql_dropdb(), mysql_freeresult(), mysql_numfields(), mysql_numrows(), mysql_listdbs(), mysql_listtables(), mysql_listfields(), mysql_db_name(), mysql_dbname(), mysql_tablename(), and mysql_table_name().


Mysql
PHP Manual