ID: 36183 Comment by: judas dot iscariote at gmail dot com Reported By: karel at linux dot be Status: No Feedback Bug Type: URL related Operating System: Linux PHP Version: 4.4.0 New Comment:
odd.. Im getting other different result with a 10 minutes ago source code from the CVS (in amd64) string(42) "x%DAs%CE%CF-%28J-.V%C8M%05%5C0%19%BD%04%3F" string(41) "x%DAs%CE%CF-%28J-.V%C8M%05%00%19%BD%04%3F" the previuos result mentioned was from my system PHP compiled yesterday... :S Previous Comments: ------------------------------------------------------------------------ [2006-03-23 01:52:33] judas dot iscariote at gmail dot com Folks, this seems to be a real bug 64 bit related I think since the OP test in x86 says me: 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" the expected result, Hoever in my linux amd64 I get string(38) "x%DAs%CE%CF-%28J-.V%C8M%05%19%BD%04%3F" string(41) "x%DAs%CE%CF-%28J-.V%C8M%05%00%19%BD%04%3F" if this is not a bug,It have an unconsistent behaviuor... ------------------------------------------------------------------------ [2006-02-06 01:00:03] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2006-01-29 16:04:41] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2006-01-28 06:02:15] judas dot iscariote at gmail dot com not reproducible in latest PHP 5 CVS. ------------------------------------------------------------------------ [2006-01-28 00:16:07] karel at linux dot be Description: ------------ PHP-version: 4.3.11 (linux), and 4.4.0 (windows) I don't know if this bug is reproducible on any higher version of PHP as I don't have them to work on. If you submit a POST/GET/parse_str() to a webpage, where a variable has an URLencoded string in it, which contains %00. It will end up being mangled totally. Just check the reproduce-code, it'll be more clear then my explanation here. Reproduce code: --------------- $comp_me = gzcompress('Compress me', 9); parse_str( 'var='. urlencode( $comp_me ) ); var_dump( urlencode($var) ); var_dump( urlencode( $comp_me ) ); Expected result: ---------------- I would expect to see 2 urlencoded strings, EXACTLY the same. Actual result: -------------- string(42) "x%DAs%CE%CF-%28J-.V%C8M%05%5C0%19%BD%04%3F" string(41) "x%DAs%CE%CF-%28J-.V%C8M%05%00%19%BD%04%3F" ---------------------------------------^^^ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36183&edit=1