Форум программистов, компьютерный форум, киберфорум
PHP для начинающих
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
0 / 0 / 0
Регистрация: 04.09.2014
Сообщений: 3

php 5.4.5 - Fatal error: date(): Timezone database is corrupt - this should *never* happen!

14.11.2012, 15:51. Показов 4251. Ответов 0
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
System - Linux 3.3.8-svn19518 #1525 Fri Jul 20 10:31:14 CEST 2012 mips

решил сделать небольшой блог у себя на домашнем роутере TP-LINK 1043ND(dd-wrt).
lighttpd 1.4.30 + php 5.4.5 + mysql 5.1.53.

phpinfo выдает такую ошибку.

Warning: phpinfo(): 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() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /opt/www/test.php on line 3

установил zoneinfo+ Europe. в результате часовые пояса легли в /opt/usr/share/zoneinfo/Europe
почему в /opt - смонтирован там usb-hdd и там много места).
расскоментировал в php.ini
[date]
date.timezone = Europe/Minsk

php.ini подхватывается нужный.
Кликните здесь для просмотра всего текста
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
[ PHP]
 
zend.ze1_compatibility_mode = Off
 
; Language Options
 
engine = On
;short_open_tag = Off
precision    =  12
y2k_compliance = On
output_buffering = Off
;output_handler =
zlib.output_compression = Off
;zlib.output_compression_level = -1
;zlib.output_handler =
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 100
 
;open_basedir =
disable_functions =
disable_classes =
 
; Colors for Syntax Highlighting mode.  Anything that's acceptable in
; <span style="color: ???????"> would work.
;highlight.string  = #DD0000
;highlight.comment = #FF9900
;highlight.keyword = #007700
;highlight.bg      = #FFFFFF
;highlight.default = #0000BB
;highlight.html    = #000000
 
;ignore_user_abort = On
;realpath_cache_size = 16k
;realpath_cache_ttl = 120
 
; Miscellaneous
 
expose_php = On
 
; Resource Limits
 
max_execution_time = 300    ; Maximum execution time of each script, in seconds.
max_input_time = 600    ; Maximum amount of time each script may spend parsing request data.
;max_input_nesting_level = 64
memory_limit = 16M  ; Maximum amount of memory a script may consume.
 
; Error handling and logging
 
; Error Level Constants:
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
; E_ERROR           - fatal run-time errors
; E_RECOVERABLE_ERROR  - almost fatal run-time errors
; E_WARNING         - run-time warnings (non-fatal errors)
; E_PARSE           - compile-time parse errors
;E_NOTICE          - run-time notices (these are warnings which often result
;                     from a bug in your code, but it's possible that it was
;                     intentional (e.g., using an uninitialized variable and
;                     relying on the fact it's automatically initialized to an
;                     empty string)
; E_STRICT          - run-time notices, enable to have PHP suggest changes
;                     to your code which will ensure the best interoperability
;                     and forward compatibility of your code
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's
;                     initial startup
; E_COMPILE_ERROR   - fatal compile-time errors
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
; E_USER_ERROR      - user-generated error message
; E_USER_WARNING    - user-generated warning message
; E_USER_NOTICE     - user-generated notice message
; E_DEPRECATED      - warn about code that will not work in future versions
;                     of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
 
error_reporting = E_ALL & ~E_NOTICE
display_errors = on
 
display_startup_errors = on
log_errors = on
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
;report_zend_debug = 0
track_errors = Off
;html_errors = Off
;docref_root = "/phpmanual/"
;docref_ext = .html
;error_prepend_string = "<font color=#ff0000>"
;error_append_string = "</font>"
; Log errors to specified file.
error_log = /tmp/var/log/php_errors.log
; Log errors to syslog.
;error_log = syslog
 
; Data Handling
 
;arg_separator.output = "&amp;"
;arg_separator.input = ";&"
variables_order = "EGPCS"
request_order = "GP"
register_globals = Off
register_long_arrays = Off
register_argc_argv = On
auto_globals_jit = On
post_max_size = 8M
;magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
;always_populate_raw_post_data = On
 
; Paths and Directories
 
; UNIX: "/path1:/path2"
;include_path = ""
doc_root = "/opt/www"
user_dir = "/usr/"
extension_dir = "/opt/usr/lib/php"
enable_dl = On
;cgi.force_redirect = 1
;cgi.nph = 1
;cgi.redirect_status_env = ;
cgi.fix_pathinfo=1
;fastcgi.impersonate = 1;
;fastcgi.logging = 0
;cgi.rfc2616_headers = 0
 
; File Uploads
 
file_uploads = On
upload_tmp_dir = "/opt/tmp"
upload_max_filesize = 2M
max_file_uploads = 20
 
; Fopen wrappers
 
allow_url_fopen = On
allow_url_include = Off
;from="john@doe.com"
;user_agent="PHP"
default_socket_timeout = 60
;auto_detect_line_endings = Off
 
; Dynamic Extensions
 
extension=pdo.so
extension=gd.so
extension=sockets.so
extension=mysql.so
extension=pdo-mysql.so
extension=session.so
extension=xml.so
;extension=xmlreader.so
;extension=xmlwriter.so
extension=timezonedb.so
;extension=pdo_sqlite.so
;extension=sqlite.so
;extension=sqlite3.so
;extension=pdo-pgsql.so
extension=mysqli.so
;extension=ctype.so
;extension=curl.so
;extension=dom.so
;extension=exif.so
;extension=ftp.so
;extension=gmp.so
;extension=hash.so
;extension=iconv.so
;extension=json.so
;extension=ldap.so
;extension=mbstring.so
;extension=mcrypt.so
;extension=openssl.so
;extension=pcre.so
;extension=pgsql.so
;extension=soap.so
;extension=tokenizer.so
 
 
; Module Settings
 
[ APC]
apc.enabled = 1
apc.shm_segments = 1    ;The number of shared memory segments to allocate for the compiler cache.
apc.shm_size = 4M   ;The size of each shared memory segment.
 
[ Date]
date.timezone = Europe/Minsk
date.default_latitude = 31.7667
date.default_longitude = 35.2333
date.sunrise_zenith = 90.583333
date.sunset_zenith = 90.583333
 
[ filter]
;filter.default = unsafe_raw
;filter.default_flags =
 
[ iconv]
;iconv.input_encoding = ISO-8859-1
;iconv.internal_encoding = ISO-8859-1
;iconv.output_encoding = ISO-8859-1
 
[ sqlite]
;sqlite.assoc_case = 0
 
[ sqlite3]
;sqlite3.extension_dir =
 
[ Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket= 
;pdo_mysql.default_socket= PHP_INI_SYSTEM
;pdo_mysql.debug = PHP_INI_SYSTEM
 
[ MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port = 
mysql.default_socket =
mysql.default_host = 
mysql.default_user = 
mysql.default_password = 
mysql.connect_timeout = 60
mysql.trace_mode = Off
 
[ PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
 
[ Session]
session.save_handler = files
session.save_path = "/opt/tmp"
session.use_cookies = 1
;session.cookie_secure =
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor     = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = On
session.bug_compat_warn = On
session.referer_check =
session.entropy_length = 0
;session.entropy_file = /dev/urandom
session.entropy_file =
;session.entropy_length = 16
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
session.hash_function = 0
session.hash_bits_per_character = 4
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fieldset="
 
[ mbstring]
;mbstring.language = Japanese
;mbstring.internal_encoding = EUC-JP
;mbstring.http_input = auto
;mbstring.http_output = SJIS
;mbstring.encoding_translation = Off
;mbstring.detect_order = auto
;mbstring.substitute_character = none;
;mbstring.func_overload = 0
;mbstring.strict_detection = Off
;mbstring.http_output_conv_mimetype=
;mbstring.script_encoding=
 
[ gd]
;gd.jpeg_ignore_warning = 0
 
[ exif]
;exif.encode_unicode = ISO-8859-15
;exif.decode_unicode_motorola = UCS-2BE
;exif.decode_unicode_intel    = UCS-2LE
;exif.encode_jis =
;exif.decode_jis_motorola = JIS
;exif.decode_jis_intel    = JIS
 
[ soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir="/tmp"
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
 
[ sysvshm]
;sysvshm.init_mem = 10000
 
[ ldap]
ldap.max_links = -1
 
[ mcrypt]
;mcrypt.algorithms_dir=
;mcrypt.modes_dir=

php в упор не видит этой БД таймпоясов(
как ему их подсунуть ?
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
14.11.2012, 15:51
Ответы с готовыми решениями:

Error 203 fatal error LNK1179: invalid or corrupt file: duplicate COMDAT '?0<unnamed-tag>@0CMyClass@@QAE@XZ' CMyClass.obj
Не первый раз сталкиваюсь с такой ошибкой.... Раньше помогало удаление этого OBJ файла и пересборка.... Теперь ничё не помогает.... Из -за...

Ошибка в MAPI: fatal error LNK1136: invalid or corrupt file
Кто-нибудь использовал MAPI? Я попытался, вот проблемы: на включаемый файл mapix.h VC реагирует кучей ошибок решил проблему так: ...

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt #include&lt;iostream&gt; using namespace std; ...

0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
14.11.2012, 15:51
Помогаю со студенческими работами здесь

Ошибка 1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Два компа. ОС Windows XP. VC++ Express 2010. Настройки по умолчанию. На одном всё нормально. На другом так. Если Общие - Пустой проект, то...

FEMModule fatal error LNK1201: error writing to program database
Здравствуйте.... Возникает такая проблема... если я дебагил программу а потом пытаюсь сразу нажать rebuild то выскакивает такая ошибка: ...

Как исправить ошибку "fatal error LNK1285: corrupt PDB file"?
Проект стал крашится с данной ошибкой. после удаления пдб-файла в папке дебаг, временно все работало а потом опять. Это какая-то ошибка в...

Fatal error: Call to undefined method DataBase
Всем доброй ночи,помогите найти ошибку Fatal error: Call to undefined method DataBase::existstID() in...

VS2008: fatal error C1033: cannot open program database 'c:\путь_к_файлу\debug\vc90.idb'
Прошу помощи с проблемой. Периодически вылетает ошибка fatal error C1033: cannot open program database 'c:\путь_к_файлу\debug\vc90.idb'....


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
1
Ответ Создать тему
Новые блоги и статьи
PhpStorm 2025.3: WSL Terminal всегда стартует в ~
and_y87 14.12.2025
PhpStorm 2025. 3: WSL Terminal всегда стартует в ~ (home), игнорируя директорию проекта Симптом: После обновления до PhpStorm 2025. 3 встроенный терминал WSL открывается в домашней директории. . .
Access
VikBal 11.12.2025
Помогите пожалуйста !! Как объединить 2 одинаковые БД Access с разными данными.
Новый ноутбук
volvo 07.12.2025
Всем привет. По скидке в "черную пятницу" взял себе новый ноутбук Lenovo ThinkBook 16 G7 на Амазоне: Ryzen 5 7533HS 64 Gb DDR5 1Tb NVMe 16" Full HD Display Win11 Pro
Музыка, написанная Искусственным Интеллектом
volvo 04.12.2025
Всем привет. Некоторое время назад меня заинтересовало, что уже умеет ИИ в плане написания музыки для песен, и, собственно, исполнения этих самых песен. Стихов у нас много, уже вышли 4 книги, еще 3. . .
От async/await к виртуальным потокам в Python
IndentationError 23.11.2025
Армин Ронахер поставил под сомнение async/ await. Создатель Flask заявляет: цветные функции - провал, виртуальные потоки - решение. Не threading-динозавры, а новое поколение лёгких потоков. Откат?. . .
Поиск "дружественных имён" СОМ портов
Argus19 22.11.2025
Поиск "дружественных имён" СОМ портов На странице: https:/ / norseev. ru/ 2018/ 01/ 04/ comportlist_windows/ нашёл схожую тему. Там приведён код на С++, который показывает только имена СОМ портов, типа,. . .
Сколько Государство потратило денег на меня, обеспечивая инсулином.
Programma_Boinc 20.11.2025
Сколько Государство потратило денег на меня, обеспечивая инсулином. Вот решила сделать интересный приблизительный подсчет, сколько государство потратило на меня денег на покупку инсулинов. . . .
Ломающие изменения в C#.NStar Alpha
Etyuhibosecyu 20.11.2025
Уже можно не только тестировать, но и пользоваться C#. NStar - писать оконные приложения, содержащие надписи, кнопки, текстовые поля и даже изображения, например, моя игра "Три в ряд" написана на этом. . .
Мысли в слух
kumehtar 18.11.2025
Кстати, совсем недавно имел разговор на тему медитаций с людьми. И обнаружил, что они вообще не понимают что такое медитация и зачем она нужна. Самые базовые вещи. Для них это - когда просто люди. . .
Создание Single Page Application на фреймах
krapotkin 16.11.2025
Статья исключительно для начинающих. Подходы оригинальностью не блещут. В век Веб все очень привыкли к дизайну Single-Page-Application . Быстренько разберем подход "на фреймах". Мы делаем одну. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2025, CyberForum.ru