From 20a326f84d3357236d4dea638107a1a2e3631066 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Sun, 24 Aug 2008 07:26:26 +0000 Subject: [PATCH] * Added caution note that ticks are deprecated as of 5.3 * Added note in changelog on the following functions that they will throw an E_DEPRECATED notice as of 5.3: * mktime() -- is_dst parameter is deprecated * register_tick_function() * mysql_db_query() * mysql_escape_string() * setlocale() -- Behavior of passing strings insted of one of the LC_* constants is deprecated git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265410 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 8 +++++- reference/datetime/functions/mktime.xml | 17 +++++++----- .../functions/register-tick-function.xml | 27 ++++++++++++++++++- reference/info/functions/dl.xml | 27 ++++++++++++++++++- reference/mysql/functions/mysql-db-query.xml | 8 +++++- .../mysql/functions/mysql-escape-string.xml | 8 +++++- reference/strings/functions/setlocale.xml | 10 ++++++- 7 files changed, 93 insertions(+), 12 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index aff08d03b1..f31927662c 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -1155,6 +1155,12 @@ declare(ticks=1); Ticks + + + As of PHP 5.3.0 ticks are deprecated and will be removed + in PHP 6.0.0. + + A tick is an event that occurs for every N low-level statements executed by the parser within the declare block. diff --git a/reference/datetime/functions/mktime.xml b/reference/datetime/functions/mktime.xml index 94778a7665..d296ce5a3e 100644 --- a/reference/datetime/functions/mktime.xml +++ b/reference/datetime/functions/mktime.xml @@ -1,5 +1,5 @@ - + @@ -129,9 +129,7 @@ &reftitle.errors; - - &date.timezone.errors.description; - + &date.timezone.errors.description; @@ -146,6 +144,13 @@ + + 5.3.0 + + mktime now throws E_DEPRECATED notice + if the is_dst parameter is used. + + 3.0.10 Added is_dst parameter @@ -160,9 +165,9 @@ as zero. - + &date.timezone.errors.changelog; - + diff --git a/reference/funchand/functions/register-tick-function.xml b/reference/funchand/functions/register-tick-function.xml index a2b69115a7..875641e1b9 100644 --- a/reference/funchand/functions/register-tick-function.xml +++ b/reference/funchand/functions/register-tick-function.xml @@ -1,5 +1,5 @@ - + register_tick_function @@ -79,6 +79,31 @@ register_tick_function(array(&$object, 'my_method'), true); + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + Ticks are now deprecated and register_tick_function + now throws an E_DEPRECATED notice. + + + + + + + + &reftitle.notes; diff --git a/reference/info/functions/dl.xml b/reference/info/functions/dl.xml index 810855d995..02a02bc893 100644 --- a/reference/info/functions/dl.xml +++ b/reference/info/functions/dl.xml @@ -1,5 +1,5 @@ - + dl @@ -126,6 +126,31 @@ if (!extension_loaded('sqlite')) { + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.3.0 + + This function now throws an E_DEPRECATED notice on all sapi's + except for CLI, CGI and Embed. + + + + + + + + &reftitle.notes; diff --git a/reference/mysql/functions/mysql-db-query.xml b/reference/mysql/functions/mysql-db-query.xml index 7d5cc1fb62..4593986762 100644 --- a/reference/mysql/functions/mysql-db-query.xml +++ b/reference/mysql/functions/mysql-db-query.xml @@ -1,5 +1,5 @@ - + mysql_db_query @@ -67,6 +67,12 @@ + + 5.3.0 + + This function now throws an E_DEPRECATED notice. + + 4.0.6 diff --git a/reference/mysql/functions/mysql-escape-string.xml b/reference/mysql/functions/mysql-escape-string.xml index 51ba558f3a..cba448e40a 100644 --- a/reference/mysql/functions/mysql-escape-string.xml +++ b/reference/mysql/functions/mysql-escape-string.xml @@ -1,5 +1,5 @@ - + mysql_escape_string @@ -61,6 +61,12 @@ + + 5.3.0 + + This function now throws an E_DEPRECATED notice. + + 4.3.0 diff --git a/reference/strings/functions/setlocale.xml b/reference/strings/functions/setlocale.xml index 1aac407ceb..f4c746ce06 100644 --- a/reference/strings/functions/setlocale.xml +++ b/reference/strings/functions/setlocale.xml @@ -1,5 +1,5 @@ - + setlocale @@ -146,6 +146,14 @@ + + 5.3.0 + + This function now throws an E_DEPRECATED notice if a string is passed + to the category parameter insted of one of the + LC_* constants. + + 4.3.0