Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 351507 - dev-lang/php-5.3.5, 5.3.3-r1
Summary: dev-lang/php-5.3.5, 5.3.3-r1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-13 02:16 UTC by Tiago Marques
Modified: 2011-01-13 18:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
PHP 5.3 output (index.html.4,29.68 KB, text/plain)
2011-01-13 02:16 UTC, Tiago Marques
Details
PHP 5.2 output (index.html.5,28.68 KB, text/plain)
2011-01-13 02:16 UTC, Tiago Marques
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago Marques 2011-01-13 02:16:01 UTC
I'm having an issue with PHP 5.3 where PHPBB is having an error logged into the output, outside HTML tags, which results in a dead website. I've tried configuring php.ini by setting display_errors to Off but it does nothing. I attach outputs with php 5.2 and 5.3 below.

Reproducible: Always
Comment 1 Tiago Marques 2011-01-13 02:16:24 UTC
Created attachment 259677 [details]
PHP 5.3 output
Comment 2 Tiago Marques 2011-01-13 02:16:42 UTC
Created attachment 259679 [details]
PHP 5.2 output
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-01-13 07:13:11 UTC
<b>[phpBB Debug] PHP Notice</b>: in file <b>/index.php</b>...

That's not a PHP message. 
To fix it, read the error message:

   You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

(likely setting date.timezone in php.ini is what you want)
Comment 4 Tiago Marques 2011-01-13 12:44:39 UTC
It's not? It is a PHP function:

http://php.net/manual/en/function.date-default-timezone-set.php

And it is properly logged in the error log with PHP 5.2. The message also says "PHP Notice"...

If it is not, why does it show up correctly in the error_log in 5.2 and why can't I get it to only show up on the log in 5.3?

Best regards,
Tiago
Comment 5 Alex Legler (RETIRED) archtester gentoo-dev Security 2011-01-13 13:04:42 UTC
<b>[phpBB Debug] PHP Notice</b>: in file <b>/index.php</b>...

See how it is prepended with "[phpBB Debug]"? That's likely a custom error handler from phpBB.

There is no bug here, just do as the message says and set your timezone. For other end user support, please visit our forums, IRC channels or post to our mailing list.
Comment 6 Tiago Marques 2011-01-13 18:16:47 UTC
This is phpBB related, setting 

date_default_timezone_set('US/Eastern');

on config.php fixed every problem I could find.