ID: 36183 Comment by: phpbugcomment at pgregg dot com Reported By: karel at linux dot be Status: Feedback Bug Type: URL related Operating System: Linux PHP Version: 4.4.0 New Comment:
Running the above code on my Ubuntu Jaunty 32bit does *not* exhibit the reported behaviour: Linux puffy.pgregg.com 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:48:10 UTC 2009 i686 GNU/Linux PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Jun 7 2009 22:28:42) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies with Suhosin v0.9.24, Copyright (c) 2007, by SektionEins GmbH string(41) "x%DAs%CE%CF-%28J-.V%C8M%05%00%19%BD%04%3F" string(41) "x%DAs%CE%CF-%28J-.V%C8M%05%00%19%BD%04%3F" Previous Comments: ------------------------------------------------------------------------ [2009-06-23 20:17:50] me at evancarroll dot com (Ubuntu 9.04 Jaunty) ------------------------------------------------------------------------ [2009-06-23 20:17:14] me at evancarroll dot com ecarr...@x60s:~$ php --version PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 23 2009 14:35 :05) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies ecarr...@x60s:~$ md5sum /usr/bin/php5 5c83d3bd430c8673a9124c3adbb662f5 /usr/bin/php5 This is packaged php5 that Ubuntu ships with. It might be the Suhosin patch that is causing this problem. ------------------------------------------------------------------------ [2009-06-23 18:07:14] ras...@php.net Works fine on 64-bit Linux with PHP 5.2.10 Also fine on 32-bit OSX with PHP 5.3.0 So, if you still see this problem, please be more specific about your PHP and OS versions. ------------------------------------------------------------------------ [2009-06-23 17:15:26] me at evancarroll dot com I've still got this problem. (this was not the subject of the below conversation) 11:51 < rasmus> main/php_variables.c has the php_default_treat_data() function which implements the actual default string parsing logic in PHP. And no, you can't change it. It would break every PHP app ever written ... 11:52 < rasmus> the point is that it isn't broken 11:53 < rasmus> and if you think it is, then you are simply wrong. 11:53 < EvanCarroll> http://www.google.com/search?q=site%3Abugs.php.net+parse_str&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a 11:54 < rasmus> your point? 11:54 < rasmus> those are all people who don't understand how to use it 11:54 < rasmus> like I said, it is exactly the same code as PHP uses to parse incoming user data 11:55 < rasmus> and it adheres to all the same rules Apparently, not reviewing the bug tracker is an indicator that everyone else doesn't know what they're doing. 32bit build ------------------------------------------------------------------------ [2006-03-23 02:09:35] judas dot iscariote at gmail dot com Somebody needs to change the summary, and the PHP version, It can be reproduced with 5.1.3-dev CVS. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/36183 -- Edit this bug report at http://bugs.php.net/?id=36183&edit=1