summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-09-25 16:11:31 +0000
committerSascha Schumann <sas@php.net>2002-09-25 16:11:31 +0000
commit6816ba4b324d9e0ba0167be933f2afdd3b05d70a (patch)
tree7eb0f018d7ee72bb118cc86c22553ccfc3a14534
parentbc4253f73a445ef9bd7643273888a172877529a3 (diff)
downloadphp-git-6816ba4b324d9e0ba0167be933f2afdd3b05d70a.tar.gz
We are about to enter 2003, sending two-digit years does not make too
much sense anymore. According to an article from '98, only Netscape 3.x was affected anyway.
-rw-r--r--NEWS1
-rw-r--r--main/main.c2
-rw-r--r--php.ini-dist5
3 files changed, 5 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 843ef57e18..c34b51f783 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
PHP 4 NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
? ? ??? 2002, Version 4.3.0
+- Changed y2k_compliance to default to 1 now. (Sascha)
- Added platform independent socket error constants for better error handling.
- Fixed include() and require() to work with remote files under win32. (Wez)
- Added php.ini option "auto_detect_line_endings" which enables PHP to detect
diff --git a/main/main.c b/main/main.c
index aae6cdd523..ffa1152091 100644
--- a/main/main.c
+++ b/main/main.c
@@ -275,7 +275,7 @@ 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", "0", PHP_INI_ALL, OnUpdateBool, y2k_compliance, 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("arg_separator.output", "&", PHP_INI_ALL, OnUpdateStringUnempty, arg_separator.output, php_core_globals, core_globals)
diff --git a/php.ini-dist b/php.ini-dist
index 59ad4f200e..58b3267f2b 100644
--- a/php.ini-dist
+++ b/php.ini-dist
@@ -77,7 +77,7 @@ asp_tags = Off
precision = 12
; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
-y2k_compliance = Off
+y2k_compliance = on
; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
@@ -819,7 +819,8 @@ session.entropy_file =
;session.entropy_file = /dev/urandom
-; Set to {nocache,private,public} to determine HTTP caching aspects.
+; Set to {nocache,private,public,} to determine HTTP caching aspects
+; or leave this empty to avoid sending anti-caching headers.
session.cache_limiter = nocache
; Document expires after n minutes.