[PHP-BUG] Bug #55708 [NEW]: DateTime->format return wrong Month name "F"
From: Operating system: Ubuntu PHP version: 5.3.8 Package: Date/time related Bug Type: Bug Bug description:DateTime->format return wrong Month name "F" Description: class DateTime return wrong (1 to less) formated date strftime and date the right one Output of demo code ~/build/php-5.3.8/sapi/cli# php -f /home/greenrover/www/test.php DateTime: September 2006 strftime: Oktober 2006 date: October 2006 Test script: --- format('F Y'); echo "\n"; echo "strftime: ".strftime("%B %Y", $unixTimestamp); echo "\n"; echo "date: ".date('F Y', $unixTimestamp); echo "\n"; Expected result: DateTime: Oktober 2006 strftime: Oktober 2006 date: October 2006 Actual result: -- DateTime: September 2006 strftime: Oktober 2006 date: October 2006 -- Edit bug report at https://bugs.php.net/bug.php?id=55708&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55708&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55708&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55708&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55708&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55708&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55708&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55708&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55708&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55708&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55708&r=support Expected behavior: https://bugs.php.net/fix.php?id=55708&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55708&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55708&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55708&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55708&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=55708&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55708&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55708&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55708&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55708&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55708&r=mysqlcfg
[PHP-BUG] Bug #60054 [NEW]: get_headers() Redirect ../../ error
From: Operating system: Ubuntu PHP version: 5.3.8 Package: HTTP related Bug Type: Bug Bug description:get_headers() Redirect ../../ error Description: When i open with: get_headers() http://www.zebis.ch/Unterricht/Fach/Unterrichtsmaterialien/dateizeigen.php?id=4070&vz=ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv&file=symmetrien.doc I got 302 Found Location => ../../schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc PHP try open: GET /Unterricht/Fach/Unterrichtsmaterialien//../../schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc But it should be: GET /Unterricht/schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc Browsers can handle that (ie, ff, chrome) this means: get_headers() dont execute ../ like browser will do. Test script: --- http://www.zebis.ch/Unterricht/Fach/Unterrichtsmaterialien/dateizeigen.php?id=4070&vz=ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv&file=symmetrien.doc'; $headers = get_headers($url, 1); print_r($headers); Expected result: GET /Unterricht/schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc Actual result: -- GET /Unterricht/Fach/Unterrichtsmaterialien//../../schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc -- Edit bug report at https://bugs.php.net/bug.php?id=60054&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60054&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60054&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60054&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60054&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60054&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60054&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60054&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60054&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60054&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60054&r=support Expected behavior: https://bugs.php.net/fix.php?id=60054&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60054&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60054&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60054&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60054&r=php4 Daylight Savings:https://bugs.php.net/fix.php?id=60054&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60054&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60054&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60054&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60054&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60054&r=mysqlcfg
Bug #60054 [Com]: get_headers() Redirect ../../ error
Edit report at https://bugs.php.net/bug.php?id=60054&edit=1 ID: 60054 Comment by: greenrover33 at gmail dot com Reported by:greenrover33 at gmail dot com Summary:get_headers() Redirect ../../ error Status: No Feedback Type: Bug Package:HTTP related Operating System: Ubuntu PHP Version:5.3.8 Block user comment: N Private report: N New Comment: The problem does still exist. Here i provide the test againe: http://www.file-upload.net/download-7225004/tests_60054.zip.html Download, unzip and run test.php (with a browser) To validate open: a/b/redirect.php (with a browser) Hope that will helps to reproduce. Previous Comments: [2013-02-18 00:35:30] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. [2011-11-29 13:33:44] il...@php.net Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ With newer version of PHP I get the following, expected output: Array ( [0] => HTTP/1.1 302 Found [Date] => Array ( [0] => Tue, 29 Nov 2011 13:32:43 GMT [1] => Tue, 29 Nov 2011 13:32:43 GMT ) [Server] => Array ( [0] => Apache [1] => Apache ) [X-Powered-By] => PHP/5.2.9 [Set-Cookie] => Array ( [0] => PHPSESSID=40ca678b4b35ce5370d0d3ae68739e9e; path=/ [1] => aktiviert=1322573563; expires=Sat, 16-Jun-2012 13:32:43 GMT; path=/ ) [Expires] => Thu, 19 Nov 1981 08:52:00 GMT [Cache-Control] => no-store, no-cache, must-revalidate, post-check=0, pre- check=0 [Pragma] => no-cache [location] => http://www.zebis.ch/Unterricht/schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/sym metrien.doc [Connection] => Array ( [0] => close [1] => close ) [Content-Type] => Array ( [0] => text/html; charset=ISO-8859-1 [1] => application/msword ) [Content-Language] => Array ( [0] => de [1] => de ) [1] => HTTP/1.1 200 OK [Last-Modified] => Thu, 12 Nov 2009 09:48:20 GMT [ETag] => "6101f5-53600-47829717f4100" [Accept-Ranges] => bytes [Content-Length] => 341504 ) ------------ [2011-10-13 15:18:35] greenrover33 at gmail dot com Description: When i open with: get_headers() http://www.zebis.ch/Unterricht/Fach/Unterrichtsmaterialien/dateizeigen.php?id=4070&vz=ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv&file=symmetrien.doc I got 302 Found Location => ../../schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc PHP try open: GET /Unterricht/Fach/Unterrichtsmaterialien//../../schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc But it should be: GET /Unterricht/schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc Browsers can handle that (ie, ff, chrome) this means: get_headers() dont execute ../ like browser will do. Test script: --- http://www.zebis.ch/Unterricht/Fach/Unterrichtsmaterialien/dateizeigen.php?id=4070&vz=ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv&file=symmetrien.doc'; $headers = get_headers($url, 1); print_r($headers); Expected result: GET /Unterricht/schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc Actual result: -- GET /Unterricht/Fach/Unterrichtsmaterialien//../../schublade/ME4gDDrhrBwBKVWwrrubqqAFR9r4Hv/docs/symmetrien.doc -- Edit this bug report at https://bugs.php.net/bug.php?id=60054&edit=1