Bug 16937 - /usr/share/php-apcu/index.php of package php-apcu-admin use deprecated date() => error log fills up
Summary: /usr/share/php-apcu/index.php of package php-apcu-admin use deprecated date()...
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-11 03:45 CEST by Morgan Leijström
Modified: 2015-10-12 18:18 CEST (History)
0 users

See Also:
Source RPM: php-apcu-4.0.7-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2015-10-11 03:45:50 CEST
Description of problem:  /usr/share/php-apcu/index.php contain calls to deprecated date() function, so php-errors.log fills up with error messages like 

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() 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 /usr/share/php-apcu/index.php on line 782

(While I am runing owncloud)

There are a few more lines in that file, containing date(


Version-Release number of selected component (if applicable):
Source RPM  : php-apcu-4.0.7-1.mga5.src.rpm
package : php-apcu-admin

Reproducible: 

Steps to Reproduce:
Comment 1 Samuel Verschelde 2015-10-12 09:55:59 CEST
It's not a problem in php-apcu-admin. date() is not deprecated. Since PHP 5.3 you are required to set your timezone in /etc/php.ini, otherwise this message shows up.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Comment 2 Morgan Leijström 2015-10-12 18:18:34 CEST
OOPS thanks.  Added it to https://wiki.mageia.org/en/OwnCloud#Configure_php_timezone

Note You need to log in before you can comment on or make changes to this bug.