From: Johannes Schlüter Date: Fri, 12 Dec 2008 21:20:44 +0000 (+0000) Subject: Fix tests X-Git-Tag: php-5.4.0alpha1~191^2~4820 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1095c628694aea0867fb7d98c80b68f4cb58d9d9;p=php Fix tests --- diff --git a/tests/strings/001.phpt b/tests/strings/001.phpt index 3bfd3dbc30..fa4bb86fd7 100644 --- a/tests/strings/001.phpt +++ b/tests/strings/001.phpt @@ -92,7 +92,7 @@ $raw = ' !"#$%&\'()*+,-./0123456789:;<=>?' . "\0"; echo "Testing rawurlencode: "; -$encoded = rawurlencode($raw); +$encoded = rawurlencode((binary)$raw); $correct = '%20%21%22%23%24%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F' . '%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_' . '%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~' @@ -104,7 +104,7 @@ if ($encoded == $correct) { } echo "Testing rawurldecode: "; -$decoded = rawurldecode($correct); +$decoded = rawurldecode((binary)$correct); if ($decoded == $raw) { echo("passed\n"); } else { @@ -112,7 +112,7 @@ if ($decoded == $raw) { } echo "Testing urlencode: "; -$encoded = urlencode($raw); +$encoded = urlencode((binary)$raw); $correct = '+%21%22%23%24%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F' . '%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_' . '%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D%7E' @@ -124,7 +124,7 @@ if ($encoded == $correct) { } echo "Testing urldecode: "; -$decoded = urldecode($correct); +$decoded = urldecode((binary)$correct); if ($decoded == $raw) { echo("passed\n"); } else {