]> granicus.if.org Git - php/commitdiff
Removed y2k_compliance ini option, making it "always" enabled internally
authorKalle Sommer Nielsen <kalle@php.net>
Mon, 12 Apr 2010 07:34:30 +0000 (07:34 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Mon, 12 Apr 2010 07:34:30 +0000 (07:34 +0000)
 - The only reference to y2k_compliance was in php_std_date(). Browsers thats not compatable have a marketshare of 0.01% if they even are in use today

NEWS
ext/standard/datetime.c
main/main.c
main/php_globals.h
php.ini-development
php.ini-production

diff --git a/NEWS b/NEWS
index f466f81abf7653cca434401de702586dc3f967aa..c1a1c7a8795ad2e396ef970f0c671f0519f38467 100644 (file)
--- a/NEWS
+++ b/NEWS
 - Added command line option --rz to CLI. (Johannes)
 
 - default_charset if not specified is now UTF-8 instead of ISO-8859-1. (Rasmus)
-- default session.entropy_file is now /dev/urandom or /dev/arandom if either
+
+- Changed session.entropy_file to default to /dev/urandom or /dev/arandom if either
   is present at compile time. (Rasmus)
 
-- Removed legacy features:
-  . define_syslog_variables ini option and its associated function. (Kalle)
+- Removed legacy features: (Kalle)
+  . define_syslog_variables ini option and its associated function.
+  . y2k_compliance ini option.
        
 ?? ??? 20??, PHP 5.3.3
 - Upgraded bundled PCRE to version 8.01. (Ilia)
index 3e21b9a27970d45a22ab4df00f77e668e4b4ef51..55262b57a54ab857822e73e0c24cd78ac668183a 100644 (file)
@@ -64,21 +64,12 @@ PHPAPI char *php_std_date(time_t t TSRMLS_DC)
                return str;
        }
 
-       if (PG(y2k_compliance)) {
-               snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT",
-                               day_short_names[tm1->tm_wday],
-                               tm1->tm_mday,
-                               mon_short_names[tm1->tm_mon],
-                               tm1->tm_year + 1900,
-                               tm1->tm_hour, tm1->tm_min, tm1->tm_sec);
-       } else {
-               snprintf(str, 80, "%s, %02d-%s-%02d %02d:%02d:%02d GMT",
-                               day_full_names[tm1->tm_wday],
-                               tm1->tm_mday,
-                               mon_short_names[tm1->tm_mon],
-                               ((tm1->tm_year) % 100),
-                               tm1->tm_hour, tm1->tm_min, tm1->tm_sec);
-       }
+       snprintf(str, 80, "%s, %02d %s %04d %02d:%02d:%02d GMT",
+                       day_short_names[tm1->tm_wday],
+                       tm1->tm_mday,
+                       mon_short_names[tm1->tm_mon],
+                       tm1->tm_year + 1900,
+                       tm1->tm_hour, tm1->tm_min, tm1->tm_sec);
 
        str[79] = 0;
        return (str);
index 92630c8a8004721ee4d9df32bc6756276610f4c0..8015476b93ef94a1de5bc106a55c4b3d50af6095 100644 (file)
@@ -471,7 +471,6 @@ PHP_INI_BEGIN()
        STD_PHP_INI_BOOLEAN("short_open_tag",   DEFAULT_SHORT_OPEN_TAG, PHP_INI_SYSTEM|PHP_INI_PERDIR,          OnUpdateBool,                   short_tags,                             zend_compiler_globals,  compiler_globals)
        STD_PHP_INI_BOOLEAN("sql.safe_mode",            "0",            PHP_INI_SYSTEM,         OnUpdateBool,                   sql_safe_mode,                  php_core_globals,       core_globals)
        STD_PHP_INI_BOOLEAN("track_errors",                     "0",            PHP_INI_ALL,            OnUpdateBool,                   track_errors,                   php_core_globals,       core_globals)
-       STD_PHP_INI_BOOLEAN("y2k_compliance",           "1",            PHP_INI_ALL,            OnUpdateBool,                   y2k_compliance,                 php_core_globals,       core_globals)
 
        STD_PHP_INI_ENTRY("unserialize_callback_func",  NULL,   PHP_INI_ALL,            OnUpdateString,                 unserialize_callback_func,      php_core_globals,       core_globals)
        STD_PHP_INI_ENTRY("serialize_precision",        "100",  PHP_INI_ALL,            OnUpdateLongGEZero,                     serialize_precision,    php_core_globals,       core_globals)
index b698acb6d2b3c7599bb16019ce37507c56851fbd..f12073abc325276de686b4f8e3a3a3cf2213e982 100644 (file)
@@ -127,8 +127,6 @@ struct _php_core_globals {
        zend_bool register_argc_argv;
        zend_bool auto_globals_jit;
 
-       zend_bool y2k_compliance;
-
        char *docref_root;
        char *docref_ext;
 
index d718b2815a4135d6e2b7533812258d210e1814fd..8f73bfb24f2a39e81bcca5f527fe940753acfbad 100644 (file)
@@ -233,10 +233,6 @@ asp_tags = Off
 ; http://php.net/precision
 precision = 14
 
-; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
-; http://php.net/y2k-compliance
-y2k_compliance = On
-
 ; Output buffering is a mechanism for controlling how much output data
 ; (excluding headers and cookies) PHP should keep internally before pushing that
 ; data to the client. If your application's output exceeds this setting, PHP
index c92690c7fed60c85f9e85d96c344f8973e0f8778..f0b7e82bba21132efaf5148ff3bd4ed39d7d0a01 100644 (file)
@@ -233,10 +233,6 @@ asp_tags = Off
 ; http://php.net/precision
 precision = 14
 
-; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
-; http://php.net/y2k-compliance
-y2k_compliance = On
-
 ; Output buffering is a mechanism for controlling how much output data
 ; (excluding headers and cookies) PHP should keep internally before pushing that
 ; data to the client. If your application's output exceeds this setting, PHP