diff options
Diffstat (limited to 'tests/strings/001.phpt')
-rw-r--r-- | tests/strings/001.phpt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/strings/001.phpt b/tests/strings/001.phpt index bf1fb67711..6d0a9d12b9 100644 --- a/tests/strings/001.phpt +++ b/tests/strings/001.phpt @@ -3,8 +3,6 @@ String functions --FILE-- <?php -error_reporting(0); - echo "Testing strtok: "; $str = "testing 1/2\\3"; @@ -26,7 +24,7 @@ if ($tok1 != "testing") { echo "Testing strstr: "; $test = "This is a test"; -$found1 = strstr($test, 32); +$found1 = strstr($test, chr(32)); $found2 = strstr($test, "a "); if ($found1 != " is a test") { echo("failed 1\n"); @@ -39,7 +37,7 @@ if ($found1 != " is a test") { echo "Testing strrchr: "; $test = "fola fola blakken"; $found1 = strrchr($test, "b"); -$found2 = strrchr($test, 102); +$found2 = strrchr($test, chr(102)); if ($found1 != "blakken") { echo("failed 1\n"); } elseif ($found2 != "fola blakken") { |