rawurldecode bug? (again)

From: Date: Thu, 07 Sep 2000 10:45:19 +0000
Subject: rawurldecode bug? (again)
Groups: php.general 
Request: Send a blank email to php-general+get-15687@lists.php.net to get a copy of this message
Hi all, Any one know what is happening here. The manual says it returns the changed value, It dosen't say anything about actually changing the value. I'm using php 4.0.0 Given: <?php $bob="Hello%20World"; echo "bob=$bob<br>\n"; echo "stuff=" . addslashes(rawurldecode($bob)) ."<br>\n"; echo "bob=$bob<br>\n"; ?> Produces: bob=Hello%20World<br> stuff=Hello World<br> bob=Hello World^@d<br> Where ^@ an unprintable null character. ascii value zero. Any ideas? Cheers, David.

« previous php.general (#15687) next »