rfc:mysql_deprecation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:mysql_deprecation [2012/11/13 03:06] – Bump version number. aharveyrfc:mysql_deprecation [2012/11/28 06:12] – Slight clarification of the question breakdown. aharvey
Line 1: Line 1:
 ====== Request for Comments: ext/mysql deprecation ====== ====== Request for Comments: ext/mysql deprecation ======
-  * Version: 1.1 +  * Version: 1.1.2 
-  * Date: 2012-11-12+  * Date: 2012-11-28
   * Author: Adam Harvey <aharvey@php.net>   * Author: Adam Harvey <aharvey@php.net>
-  * Status: Under Discussion+  * Status: Voting
   * First Published at: https://wiki.php.net/rfc/mysql_deprecation   * First Published at: https://wiki.php.net/rfc/mysql_deprecation
   * Trivial patch: http://files.adamharvey.name/mysql-deprecation.patch   * Trivial patch: http://files.adamharvey.name/mysql-deprecation.patch
Line 9: Line 9:
  
 This RFC proposes to generate E_DEPRECATED errors when connecting to a MySQL database with the ext/mysql API. This RFC proposes to generate E_DEPRECATED errors when connecting to a MySQL database with the ext/mysql API.
 +
 +===== Voting ======
 +
 +Please note that there are two questions below: please vote on both if possible. The first controls the direct result of this RFC, while the second is to provide guidance should the RFC be rejected.
 +
 +<doodle title="Should ext/mysql generate E_DEPRECATED errors in PHP 5.5?" auth="user" voteType="single" closed="false">
 +   * Yes
 +   * No
 +</doodle>
 +
 +There are four options available for the next question:
 +
 +If the vote to make ext/mysql generate E_DEPRECATED errors is unsuccessful, what course of action do you think we should take?
 +
 +  * **(a)** Enhance the manual text to make the soft deprecation clearer, and generate E_DEPRECATED notices in PHP 5.6.
 +  * **(b)** Enhance the manual text to make the soft deprecation clearer, but take no further action in terms of E_DEPRECATED for the forseeable future.
 +  * **%%(c)%%** Remove the warnings from the manual and undeprecate ext/mysql entirely.
 +  * **(d)** Do nothing.
 +
 +<doodle title="If the vote to make ext/mysql generate E_DEPRECATED errors is unsuccessful, what course of action do you think we should take?" auth="user" voteType="single" closed="false">
 +>
 +   * (a)
 +   * (b)
 +   * (c)
 +   * (d)
 +</doodle>
  
 ===== Background ===== ===== Background =====
Line 21: Line 47:
  
 [[http://files.adamharvey.name/mysql-deprecation.patch|An extremely trivial patch to do this is available.]] [[http://files.adamharvey.name/mysql-deprecation.patch|An extremely trivial patch to do this is available.]]
 +
 +The proposed wording of the deprecation message is:
 +
 +> The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead
  
 ===== Why? ===== ===== Why? =====
Line 45: Line 75:
  
 None of those reasons have gone away. None of those reasons have gone away.
 +
 +Ulf Wendel has also written [[http://blog.ulf-wendel.de/2012/php-mysql-why-to-upgrade-extmysql/|a terrific blog post explaining why upgrading from ext/mysql is a good idea]].
  
 ===== Issues ===== ===== Issues =====
Line 66: Line 98:
 ==== Converting to MySQLi or PDO ==== ==== Converting to MySQLi or PDO ====
  
-  * https://wikis.oracle.com/display/mysql/Converting+to+MySQLi+  * http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers
  
 ==== Suppressing deprecation warnings ==== ==== Suppressing deprecation warnings ====
Line 78: Line 110:
 ===== Changelog ===== ===== Changelog =====
  
 +  * 1.1.2 (2012-11-28): Replace the Oracle Wiki link with a link to Ulf's new blog post; moved to voting phase.
 +  * 1.1.1 (2012-11-19): Added the wording of the deprecation message that was already in the patch.
   * 1.1 (2012-11-13): Added workarounds; fixed formatting on the quote of Johannes' e-mail.   * 1.1 (2012-11-13): Added workarounds; fixed formatting on the quote of Johannes' e-mail.
   * 1.0 (2012-11-12): Initial version.   * 1.0 (2012-11-12): Initial version.
rfc/mysql_deprecation.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1