urldecode diff php3<->php4
| From: | Thies C. Arntzen | Date: | Tue, 22 Jun 1999 13:33:38 +0000 |
| Subject: | urldecode diff php3<->php4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-1647@lists.php.net to get a copy of this message | ||
hmm,
not quite sure with this one:
script:
<?php
$data = urldecode("");
var_dump($data);
?>
result with php4:
Content-Type: text/html
i:0
result with php3:
Content-type: text/html
string(0) ""
i just got "badly" bitten by this one!
i think we should change the RETURN_FASLE in encode/decode to return an empty string
'cause urldecode("") in deed is "" - and not FALSE - any objections??
tc
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany