Default to UTC instead of having an undefined timezone.
This can be easily changed per application or system-wide and will allow some PHP apps to behave right out-of-the-box without the following vomit: PHP message: PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set()..... ok robert@ (maintainer)
This commit is contained in:
parent
b02b53695e
commit
04eae4c316
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.71 2014/03/13 17:33:27 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.72 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
|
||||
BROKEN-hppa = no __sync_bool_compare_and_swap support nor asm fallback
|
||||
|
||||
@ -11,6 +11,7 @@ V= ${PV}.28
|
||||
SUHOSIN_PHPV= 5.3.24
|
||||
SUHOSIN_P_V= 0.9.10unofficial
|
||||
REVISION= 4
|
||||
REVISION-main= 5
|
||||
|
||||
INI_TEMPLATES= development production
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-php_ini-development,v 1.5 2012/01/21 23:34:35 sthen Exp $
|
||||
--- php.ini-development.orig.port Thu Dec 15 10:31:02 2011
|
||||
+++ php.ini-development Wed Jan 18 13:57:26 2012
|
||||
$OpenBSD: patch-php_ini-development,v 1.6 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
--- php.ini-development.orig.port Tue Dec 10 20:04:57 2013
|
||||
+++ php.ini-development Thu Mar 20 13:36:43 2014
|
||||
@@ -793,11 +793,8 @@ default_mimetype = "text/html"
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
@ -31,6 +31,15 @@ $OpenBSD: patch-php_ini-development,v 1.5 2012/01/21 23:34:35 sthen Exp $
|
||||
|
||||
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-include
|
||||
@@ -1005,7 +1003,7 @@ default_socket_timeout = 60
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
-;date.timezone =
|
||||
+date.timezone = UTC
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
@@ -1091,16 +1089,6 @@ pdo_mysql.default_socket=
|
||||
define_syslog_variables = Off
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-php_ini-production,v 1.7 2012/08/05 12:00:54 sthen Exp $
|
||||
--- php.ini-production.orig.port Thu Dec 15 10:31:02 2011
|
||||
+++ php.ini-production Wed Jan 18 13:57:26 2012
|
||||
$OpenBSD: patch-php_ini-production,v 1.8 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
--- php.ini-production.orig.port Tue Dec 10 20:04:57 2013
|
||||
+++ php.ini-production Thu Mar 20 13:36:51 2014
|
||||
@@ -793,11 +793,8 @@ default_mimetype = "text/html"
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
@ -31,6 +31,15 @@ $OpenBSD: patch-php_ini-production,v 1.7 2012/08/05 12:00:54 sthen Exp $
|
||||
|
||||
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-include
|
||||
@@ -1005,7 +1003,7 @@ default_socket_timeout = 60
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
-;date.timezone =
|
||||
+date.timezone = UTC
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
@@ -1906,6 +1904,446 @@ ldap.max_links = -1
|
||||
|
||||
[dba]
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.18 2014/03/18 15:18:36 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.19 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
|
||||
BROKEN-hppa = no __sync_bool_compare_and_swap support nor asm fallback
|
||||
|
||||
@ -8,6 +8,7 @@ USE_LIBTOOL= No
|
||||
|
||||
PV= 5.4
|
||||
V= ${PV}.26
|
||||
REVISION-main= 0
|
||||
|
||||
INI_TEMPLATES= development production
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-php_ini-development,v 1.5 2014/03/18 15:18:36 sthen Exp $
|
||||
--- php.ini-development.orig.port Wed Mar 5 08:07:14 2014
|
||||
+++ php.ini-development Tue Mar 18 14:26:53 2014
|
||||
$OpenBSD: patch-php_ini-development,v 1.6 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
--- php.ini-development.orig.port Wed Mar 5 09:07:14 2014
|
||||
+++ php.ini-development Thu Mar 20 14:01:33 2014
|
||||
@@ -693,11 +693,8 @@ default_mimetype = "text/html"
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
@ -31,6 +31,15 @@ $OpenBSD: patch-php_ini-development,v 1.5 2014/03/18 15:18:36 sthen Exp $
|
||||
|
||||
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-include
|
||||
@@ -906,7 +904,7 @@ cli_server.color = On
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
-;date.timezone =
|
||||
+date.timezone = UTC
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
@@ -985,16 +983,6 @@ pdo_mysql.default_socket=
|
||||
;phar.cache_list =
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
$OpenBSD: patch-php_ini-production,v 1.4 2014/03/18 15:18:36 sthen Exp $
|
||||
--- php.ini-production.orig.port Wed Mar 5 08:07:14 2014
|
||||
+++ php.ini-production Tue Mar 18 14:26:53 2014
|
||||
$OpenBSD: patch-php_ini-production,v 1.5 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
--- php.ini-production.orig.port Wed Mar 5 09:07:14 2014
|
||||
+++ php.ini-production Thu Mar 20 14:01:41 2014
|
||||
@@ -693,11 +693,8 @@ default_mimetype = "text/html"
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
@ -31,3 +31,12 @@ $OpenBSD: patch-php_ini-production,v 1.4 2014/03/18 15:18:36 sthen Exp $
|
||||
|
||||
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-include
|
||||
@@ -906,7 +904,7 @@ cli_server.color = On
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
-;date.timezone =
|
||||
+date.timezone = UTC
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2014/03/13 17:33:27 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
|
||||
BROKEN-hppa = no __sync_bool_compare_and_swap support nor asm fallback
|
||||
|
||||
@ -12,6 +12,7 @@ AUTOCONF_VERSION= 2.65
|
||||
PV= 5.5
|
||||
V= ${PV}.5
|
||||
REVISION= 1
|
||||
REVISION-main= 2
|
||||
|
||||
INI_TEMPLATES= development production
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-php_ini-development,v 1.3 2013/09/20 20:20:28 sthen Exp $
|
||||
--- php.ini-development.orig.port Wed Sep 18 14:08:04 2013
|
||||
+++ php.ini-development Fri Sep 20 15:23:16 2013
|
||||
@@ -701,11 +701,8 @@ default_mimetype = "text/html"
|
||||
$OpenBSD: patch-php_ini-development,v 1.4 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
--- php.ini-development.orig.port Tue Oct 15 15:49:47 2013
|
||||
+++ php.ini-development Thu Mar 20 13:39:53 2014
|
||||
@@ -703,11 +703,8 @@ default_mimetype = "text/html"
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
; UNIX: "/path1:/path2"
|
||||
@ -14,7 +14,7 @@ $OpenBSD: patch-php_ini-development,v 1.3 2013/09/20 20:20:28 sthen Exp $
|
||||
; PHP's default setting for include_path is ".;/path/to/php/pear"
|
||||
; http://php.net/include-path
|
||||
|
||||
@@ -727,6 +724,7 @@ user_dir =
|
||||
@@ -729,6 +726,7 @@ user_dir =
|
||||
; extension_dir = "./"
|
||||
; On windows:
|
||||
; extension_dir = "ext"
|
||||
@ -22,7 +22,7 @@ $OpenBSD: patch-php_ini-development,v 1.3 2013/09/20 20:20:28 sthen Exp $
|
||||
|
||||
; Directory where the temporary files should be placed.
|
||||
; Defaults to the system default (see sys_get_temp_dir)
|
||||
@@ -811,7 +809,7 @@ max_file_uploads = 20
|
||||
@@ -813,7 +811,7 @@ max_file_uploads = 20
|
||||
|
||||
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-fopen
|
||||
@ -31,7 +31,16 @@ $OpenBSD: patch-php_ini-development,v 1.3 2013/09/20 20:20:28 sthen Exp $
|
||||
|
||||
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-include
|
||||
@@ -997,16 +995,6 @@ pdo_mysql.default_socket=
|
||||
@@ -920,7 +918,7 @@ cli_server.color = On
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
-;date.timezone =
|
||||
+date.timezone = UTC
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
@@ -999,16 +997,6 @@ pdo_mysql.default_socket=
|
||||
;phar.cache_list =
|
||||
|
||||
[mail function]
|
||||
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-php_ini-production,v 1.3 2013/09/20 20:20:29 sthen Exp $
|
||||
--- php.ini-production.orig.port Wed Sep 18 14:08:04 2013
|
||||
+++ php.ini-production Fri Sep 20 15:23:16 2013
|
||||
@@ -701,11 +701,8 @@ default_mimetype = "text/html"
|
||||
$OpenBSD: patch-php_ini-production,v 1.4 2014/03/20 13:02:19 ajacoutot Exp $
|
||||
--- php.ini-production.orig.port Tue Oct 15 15:49:47 2013
|
||||
+++ php.ini-production Thu Mar 20 13:39:59 2014
|
||||
@@ -703,11 +703,8 @@ default_mimetype = "text/html"
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
; UNIX: "/path1:/path2"
|
||||
@ -14,7 +14,7 @@ $OpenBSD: patch-php_ini-production,v 1.3 2013/09/20 20:20:29 sthen Exp $
|
||||
; PHP's default setting for include_path is ".;/path/to/php/pear"
|
||||
; http://php.net/include-path
|
||||
|
||||
@@ -727,6 +724,7 @@ user_dir =
|
||||
@@ -729,6 +726,7 @@ user_dir =
|
||||
; extension_dir = "./"
|
||||
; On windows:
|
||||
; extension_dir = "ext"
|
||||
@ -22,7 +22,7 @@ $OpenBSD: patch-php_ini-production,v 1.3 2013/09/20 20:20:29 sthen Exp $
|
||||
|
||||
; Directory where the temporary files should be placed.
|
||||
; Defaults to the system default (see sys_get_temp_dir)
|
||||
@@ -811,7 +809,7 @@ max_file_uploads = 20
|
||||
@@ -813,7 +811,7 @@ max_file_uploads = 20
|
||||
|
||||
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-fopen
|
||||
@ -31,3 +31,12 @@ $OpenBSD: patch-php_ini-production,v 1.3 2013/09/20 20:20:29 sthen Exp $
|
||||
|
||||
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
|
||||
; http://php.net/allow-url-include
|
||||
@@ -920,7 +918,7 @@ cli_server.color = On
|
||||
[Date]
|
||||
; Defines the default timezone used by the date functions
|
||||
; http://php.net/date.timezone
|
||||
-;date.timezone =
|
||||
+date.timezone = UTC
|
||||
|
||||
; http://php.net/date.default-latitude
|
||||
;date.default_latitude = 31.7667
|
||||
|
@ -10,10 +10,3 @@ This package installs a stand-alone binary which can be used for
|
||||
command-line scripts, as well as an Apache module. It also contains the
|
||||
pdo_sqlite driver that implements the PHP Data Objects (PDO) interface
|
||||
to enable access to SQLite 3 databases.
|
||||
|
||||
By default this port uses the suhosin patch.
|
||||
The suhosin patch adds security hardening features to PHP to protect
|
||||
your servers on the one hand against a number of well known problems in
|
||||
PHP applications and on the other hand against potential unknown
|
||||
vulnerabilities within those applications or the PHP core itself.
|
||||
http://www.hardened-php.net/suhosin/index.html
|
||||
|
Loading…
Reference in New Issue
Block a user