ALT Linux Bugzilla
– Attachment 4602 Details for
Bug 24266
Fail to get timezone without tzdata
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Вариант решения: в отсутствии данных из tzdata считать timezone='UTC'
24266.patch (text/plain), 680 bytes, created by
Nikolay A. Fetisov
on 2010-10-11 07:46:28 MSD
(
hide
)
Description:
Вариант решения: в отсутствии данных из tzdata считать timezone='UTC'
Filename:
MIME Type:
Creator:
Nikolay A. Fetisov
Created:
2010-10-11 07:46:28 MSD
Size:
680 bytes
patch
obsolete
>--- a/control.d/facilities/apache2-mod_php5 >+++ b/control.d/facilities/apache2-mod_php5 >@@ -11,6 +11,7 @@ readonly PHP_DOC_ROOT="/var/www/html" > : ${php_on:?} ${php_off:?} > > php_timezone=$(php_get_timezone) >+: ${php_timezone:="UTC"} > > for f in `ls -1 "/etc/php/$PHP_MAJOR/$PHP_SAPI/control.d/"`; do > . "/etc/php/$PHP_MAJOR/$PHP_SAPI/control.d/$f" >--- a/control.d/phpfunctions >+++ b/control.d/phpfunctions >@@ -189,7 +189,7 @@ php_get_timezone() { > ZI_PATH=/usr/share/zoneinfo/ > ZI_SIZE=$(stat --dereference --format=%s $ZI_FILE) > >- for j in 2 1 >+ [ -d "ZI_PATH" ] && for j in 2 1 > do > for i in $(find $ZI_PATH -maxdepth $j -mindepth $j -type f -size ${ZI_SIZE}c) > do
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 24266
: 4602