Date: 02/16/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3498 Updated: urldecode() weird behaviour"
- Previous message: Michael.Bielicki <email protected>: "[PHP-DEV] Bug #3497: Apache 1.3.11 gets SIGSEGV immediately qafter start"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: adam <email protected>
Operating system: Redhat Linux
PHP version: 4.0 Beta 3
PHP Bug Type: Misbehaving function
Bug description: urldecode() weird behaviour
<?
$url="http://165.91.107.37/mp3/s/Smashing%20Pumpkins%20-Today.mp3";
echo "1:$url\n";
echo "2:".urldecode($url)."\n";
echo "3:$url\n";
?>
Running this script will make the problem self-explanatory.
urldecode($url) should not touch the variable $url, but
it does actually work on the variable itself rather than returning the decoded URL.
as well as that, the decoded URL has part of the original URL concatenated to the end of it, like it has overwritten the old variable space.
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #3498 Updated: urldecode() weird behaviour"
- Previous message: Michael.Bielicki <email protected>: "[PHP-DEV] Bug #3497: Apache 1.3.11 gets SIGSEGV immediately qafter start"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

