|
||||||||||||||||||
|
New in This Group #50223 [NEW]: foreach() affects array pointer unexpectedly (different between PHP versions)11/18/2009 11:44:27 PM #50222 [NEW]: can't disable magic_quotes_gpc support11/18/2009 11:21:53 PM #50220 [NEW]: file_exists fails for files on network share11/18/2009 2:55:48 PM #50219 [NEW]: soap call Segmentation fault on a redirected url11/18/2009 2:41:59 PM #50215 [NEW]: Parent: child process exited with status 3221225477 -- Restarting.11/18/2009 10:22:50 AM #50214 [NEW]: IPv6 with fsockopen broken11/18/2009 10:08:29 AM #50213 [NEW]: impossible to delete header11/18/2009 5:56:05 AM #50212 [NEW]: SEGV by ldap_get_option() with LDAP_OPT_NETWORK_TIMEOUT11/18/2009 1:29:30 AM #50210 [NEW]: PHP won't parse multipart/form-data if it was originally chunk encoded.11/17/2009 10:46:23 PM #50209 [NEW]: Compiling with libedit cannot find readline.h11/17/2009 9:49:34 PM |
#50626 [NEW]: Oddly date related error message
|
|||||||||||||||||
| Group: php.bugs |
Subscribe
|
Posted:1/1/2010 6:58:13 PM | Replies:4 | Views:32 | Items(4) |
|
From: sworddragon2 at aol dot com
Operating system: Windows XP Professional SP3 PHP version: 5.3.1 PHP Bug Type: Output Control Bug description: Oddly date related error message Description: ------------ I have a script, that got sometimes a date - related error message but nowhere is such a function called. I don't got the errors myself, I see them just in my error log from other users. Maybe this is not a bug, but i'm searching for a few days for a solution and have no explanation why this bug at line 26 after a flush(); appears (line 26 is marked as a comment in "Actual result:"). The error don't appear at the most time. This is very randomly. Reproduce code: --------------- <?php header('Expires: Tue, 19 Jan 2038 03:14:07'); header('Last-Modified: Thu, 01 Jan 1970 00:00:00'); header('Cache-Control: public'); require_once($global['path'].'core/global/functions/mime_type.php'); if(!$mime_type=mime_type($_GET['file'])) if(isset($_GET['mime_type']) && ($_GET['mime_type']==='image/bmp' || $_GET['mime_type']==='image/gif' || $_GET['mime_type']==='image/jpeg' || $_GET['mime_type']==='image/png' || $_GET['mime_type']==='text/css' || $_GET['mime_type']==='text/html')) $mime_type=$_GET['mime_type']; else $mime_type='text/plain'; header('Content-type: '.$mime_type.'; charset=utf-8'); $size=filesize($_GET['file']); $file=fopen($_GET['file'],'rb'); if($global['server_configuration']['compress_'.$mime_type]==='TRUE') ob_start('ob_gzhandler'); else ob_start(); while($size>$global['server_configuration']['output_buffer']) { $size-=$global['server_configuration']['output_buffer']; echo fread($file,$global['server_configuration']['output_buffer']); if($size>0) { ob_flush(); flush(); }//This is line 26 } if($size>0) echo fread($file,$size); ob_end_flush(); fclose($file); exit(); ?> Actual result: -------------- Warning: main(): 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 'Europe/Paris' for '1.0/no DST' instead in E:\Programme\Lokaler Server\Apache Software Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php on line 26 If needed I can post the declared variables at the moment the error appears or other related scripts. -- Edit bug report at http://bugs.php.net/?id=50626&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50626&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50626&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50626&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50626&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50626&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50626&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50626&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50626&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50626&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50626&r=support Expected behavior: http://bugs.php.net/fix.php?id=50626&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50626&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50626&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50626&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50626&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50626&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50626&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50626&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50626&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50626&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50626&r=mysqlcfg |
php-b...@lists.php.net ("sworddragon2 at aol dot com") 1/1/2010 6:58:13 PM |
|
ID: 50626
Updated by: derick@php.net Reported By: sworddragon2 at aol dot com -Status: Open +Status: Feedback Bug Type: Output Control Operating System: Windows XP Professional SP3 PHP Version: 5.3.1 New Comment: Do you have the "date.timezone" setting actually set in php.ini (phpinfo() output will tell you). Previous Comments: ------------------------------------------------------------------------ [2010-01-01 18:58:12] sworddragon2 at aol dot com Description: ------------ I have a script, that got sometimes a date - related error message but nowhere is such a function called. I don't got the errors myself, I see them just in my error log from other users. Maybe this is not a bug, but i'm searching for a few days for a solution and have no explanation why this bug at line 26 after a flush(); appears (line 26 is marked as a comment in "Actual result:"). The error don't appear at the most time. This is very randomly. Reproduce code: --------------- <?php header('Expires: Tue, 19 Jan 2038 03:14:07'); header('Last-Modified: Thu, 01 Jan 1970 00:00:00'); header('Cache-Control: public'); require_once($global['path'].'core/global/functions/mime_type.php'); if(!$mime_type=mime_type($_GET['file'])) if(isset($_GET['mime_type']) && ($_GET['mime_type']==='image/bmp' || $_GET['mime_type']==='image/gif' || $_GET['mime_type']==='image/jpeg' || $_GET['mime_type']==='image/png' || $_GET['mime_type']==='text/css' || $_GET['mime_type']==='text/html')) $mime_type=$_GET['mime_type']; else $mime_type='text/plain'; header('Content-type: '.$mime_type.'; charset=utf-8'); $size=filesize($_GET['file']); $file=fopen($_GET['file'],'rb'); if($global['server_configuration']['compress_'.$mime_type]==='TRUE') ob_start('ob_gzhandler'); else ob_start(); while($size>$global['server_configuration']['output_buffer']) { $size-=$global['server_configuration']['output_buffer']; echo fread($file,$global['server_configuration']['output_buffer']); if($size>0) { ob_flush(); flush(); }//This is line 26 } if($size>0) echo fread($file,$size); ob_end_flush(); fclose($file); exit(); ?> Actual result: -------------- Warning: main(): 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 'Europe/Paris' for '1.0/no DST' instead in E:\Programme\Lokaler Server\Apache Software Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php on line 26 If needed I can post the declared variables at the moment the error appears or other related scripts. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50626&edit=1 |
der...@php.net 1/1/2010 9:36:27 PM |
|
ID: 50626
Comment by: sworddragon2 at aol dot com Reported By: sworddragon2 at aol dot com Status: Feedback Bug Type: Output Control Operating System: Windows XP Professional SP3 PHP Version: 5.3.1 New Comment: The date.timezone setting is not set but this is no necessary because no related date functions are called. I can use date_default_timezone_set('UTC') as exmaple in my load_content.php but this would just be a workaround. There must be a reason why a date related error message appears after a flush(); while no date related funtions are used. Previous Comments: ------------------------------------------------------------------------ [2010-01-01 21:36:27] derick@php.net Do you have the "date.timezone" setting actually set in php.ini (phpinfo() output will tell you). ------------------------------------------------------------------------ [2010-01-01 18:58:12] sworddragon2 at aol dot com Description: ------------ I have a script, that got sometimes a date - related error message but nowhere is such a function called. I don't got the errors myself, I see them just in my error log from other users. Maybe this is not a bug, but i'm searching for a few days for a solution and have no explanation why this bug at line 26 after a flush(); appears (line 26 is marked as a comment in "Actual result:"). The error don't appear at the most time. This is very randomly. Reproduce code: --------------- <?php header('Expires: Tue, 19 Jan 2038 03:14:07'); header('Last-Modified: Thu, 01 Jan 1970 00:00:00'); header('Cache-Control: public'); require_once($global['path'].'core/global/functions/mime_type.php'); if(!$mime_type=mime_type($_GET['file'])) if(isset($_GET['mime_type']) && ($_GET['mime_type']==='image/bmp' || $_GET['mime_type']==='image/gif' || $_GET['mime_type']==='image/jpeg' || $_GET['mime_type']==='image/png' || $_GET['mime_type']==='text/css' || $_GET['mime_type']==='text/html')) $mime_type=$_GET['mime_type']; else $mime_type='text/plain'; header('Content-type: '.$mime_type.'; charset=utf-8'); $size=filesize($_GET['file']); $file=fopen($_GET['file'],'rb'); if($global['server_configuration']['compress_'.$mime_type]==='TRUE') ob_start('ob_gzhandler'); else ob_start(); while($size>$global['server_configuration']['output_buffer']) { $size-=$global['server_configuration']['output_buffer']; echo fread($file,$global['server_configuration']['output_buffer']); if($size>0) { ob_flush(); flush(); }//This is line 26 } if($size>0) echo fread($file,$size); ob_end_flush(); fclose($file); exit(); ?> Actual result: -------------- Warning: main(): 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 'Europe/Paris' for '1.0/no DST' instead in E:\Programme\Lokaler Server\Apache Software Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php on line 26 If needed I can post the declared variables at the moment the error appears or other related scripts. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50626&edit=1 |
php-b...@lists.php.net ("sworddragon2 at aol dot com") 1/1/2010 9:45:04 PM |
|
ID: 50626
Updated by: derick@php.net Reported By: sworddragon2 at aol dot com -Status: Feedback +Status: Bogus Bug Type: Output Control Operating System: Windows XP Professional SP3 PHP Version: 5.3.1 New Comment: You *need* to make that setting. Internally PHP can also use date related functions that require a proper date.timezone of being set. You can debug this with a C-level debugger and setting a breakpoint at guess_timezone and get a backtrace. Previous Comments: ------------------------------------------------------------------------ [2010-01-01 21:45:02] sworddragon2 at aol dot com The date.timezone setting is not set but this is no necessary because no related date functions are called. I can use date_default_timezone_set('UTC') as exmaple in my load_content.php but this would just be a workaround. There must be a reason why a date related error message appears after a flush(); while no date related funtions are used. ------------------------------------------------------------------------ [2010-01-01 21:36:27] derick@php.net Do you have the "date.timezone" setting actually set in php.ini (phpinfo() output will tell you). ------------------------------------------------------------------------ [2010-01-01 18:58:12] sworddragon2 at aol dot com Description: ------------ I have a script, that got sometimes a date - related error message but nowhere is such a function called. I don't got the errors myself, I see them just in my error log from other users. Maybe this is not a bug, but i'm searching for a few days for a solution and have no explanation why this bug at line 26 after a flush(); appears (line 26 is marked as a comment in "Actual result:"). The error don't appear at the most time. This is very randomly. Reproduce code: --------------- <?php header('Expires: Tue, 19 Jan 2038 03:14:07'); header('Last-Modified: Thu, 01 Jan 1970 00:00:00'); header('Cache-Control: public'); require_once($global['path'].'core/global/functions/mime_type.php'); if(!$mime_type=mime_type($_GET['file'])) if(isset($_GET['mime_type']) && ($_GET['mime_type']==='image/bmp' || $_GET['mime_type']==='image/gif' || $_GET['mime_type']==='image/jpeg' || $_GET['mime_type']==='image/png' || $_GET['mime_type']==='text/css' || $_GET['mime_type']==='text/html')) $mime_type=$_GET['mime_type']; else $mime_type='text/plain'; header('Content-type: '.$mime_type.'; charset=utf-8'); $size=filesize($_GET['file']); $file=fopen($_GET['file'],'rb'); if($global['server_configuration']['compress_'.$mime_type]==='TRUE') ob_start('ob_gzhandler'); else ob_start(); while($size>$global['server_configuration']['output_buffer']) { $size-=$global['server_configuration']['output_buffer']; echo fread($file,$global['server_configuration']['output_buffer']); if($size>0) { ob_flush(); flush(); }//This is line 26 } if($size>0) echo fread($file,$size); ob_end_flush(); fclose($file); exit(); ?> Actual result: -------------- Warning: main(): 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 'Europe/Paris' for '1.0/no DST' instead in E:\Programme\Lokaler Server\Apache Software Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php on line 26 If needed I can post the declared variables at the moment the error appears or other related scripts. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50626&edit=1 |
der...@php.net 1/1/2010 9:56:20 PM |
|
ID: 50626
User updated by: sworddragon2 at aol dot com Reported By: sworddragon2 at aol dot com Status: Bogus Bug Type: Output Control Operating System: Windows XP Professional SP3 PHP Version: 5.3.1 New Comment: Maybe this should be written as a Note in the documentation that PHP can internally call date related functions. Previous Comments: ------------------------------------------------------------------------ [2010-01-01 21:56:20] derick@php.net You *need* to make that setting. Internally PHP can also use date related functions that require a proper date.timezone of being set. You can debug this with a C-level debugger and setting a breakpoint at guess_timezone and get a backtrace. ------------------------------------------------------------------------ [2010-01-01 21:45:02] sworddragon2 at aol dot com The date.timezone setting is not set but this is no necessary because no related date functions are called. I can use date_default_timezone_set('UTC') as exmaple in my load_content.php but this would just be a workaround. There must be a reason why a date related error message appears after a flush(); while no date related funtions are used. ------------------------------------------------------------------------ [2010-01-01 21:36:27] derick@php.net Do you have the "date.timezone" setting actually set in php.ini (phpinfo() output will tell you). ------------------------------------------------------------------------ [2010-01-01 18:58:12] sworddragon2 at aol dot com Description: ------------ I have a script, that got sometimes a date - related error message but nowhere is such a function called. I don't got the errors myself, I see them just in my error log from other users. Maybe this is not a bug, but i'm searching for a few days for a solution and have no explanation why this bug at line 26 after a flush(); appears (line 26 is marked as a comment in "Actual result:"). The error don't appear at the most time. This is very randomly. Reproduce code: --------------- <?php header('Expires: Tue, 19 Jan 2038 03:14:07'); header('Last-Modified: Thu, 01 Jan 1970 00:00:00'); header('Cache-Control: public'); require_once($global['path'].'core/global/functions/mime_type.php'); if(!$mime_type=mime_type($_GET['file'])) if(isset($_GET['mime_type']) && ($_GET['mime_type']==='image/bmp' || $_GET['mime_type']==='image/gif' || $_GET['mime_type']==='image/jpeg' || $_GET['mime_type']==='image/png' || $_GET['mime_type']==='text/css' || $_GET['mime_type']==='text/html')) $mime_type=$_GET['mime_type']; else $mime_type='text/plain'; header('Content-type: '.$mime_type.'; charset=utf-8'); $size=filesize($_GET['file']); $file=fopen($_GET['file'],'rb'); if($global['server_configuration']['compress_'.$mime_type]==='TRUE') ob_start('ob_gzhandler'); else ob_start(); while($size>$global['server_configuration']['output_buffer']) { $size-=$global['server_configuration']['output_buffer']; echo fread($file,$global['server_configuration']['output_buffer']); if($size>0) { ob_flush(); flush(); }//This is line 26 } if($size>0) echo fread($file,$size); ob_end_flush(); fclose($file); exit(); ?> Actual result: -------------- Warning: main(): 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 'Europe/Paris' for '1.0/no DST' instead in E:\Programme\Lokaler Server\Apache Software Foundation\Apache2.2\htdocs\tower-defense\core\global\includes\load_content.php on line 26 If needed I can post the declared variables at the moment the error appears or other related scripts. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50626&edit=1 |
php-b...@lists.php.net ("sworddragon2 at aol dot com") 1/1/2010 10:44:51 PM |
note 97095 added to soapclient.soapclient
note 97094 added to function.sqlite-changes
note 97093 added to function.sqlite-changes
note 97092 added to ref.xmlrpc
note 97091 added to function.var-export