diff options
Diffstat (limited to 'tests/strings')
-rw-r--r-- | tests/strings/001.phpt | 6 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_1.phpt | 2 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_2.phpt | 2 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_3.phpt | 2 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_4.phpt | 2 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_5.phpt | 2 |
6 files changed, 2 insertions, 14 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") { diff --git a/tests/strings/offsets_chaining_1.phpt b/tests/strings/offsets_chaining_1.phpt index 0c3c0074b1..18b6fa2f9d 100644 --- a/tests/strings/offsets_chaining_1.phpt +++ b/tests/strings/offsets_chaining_1.phpt @@ -1,7 +1,5 @@ --TEST-- testing the behavior of string offset chaining ---INI-- -error_reporting=E_ALL | E_DEPRECATED --FILE-- <?php $string = "foobar"; diff --git a/tests/strings/offsets_chaining_2.phpt b/tests/strings/offsets_chaining_2.phpt index 0c3c0074b1..18b6fa2f9d 100644 --- a/tests/strings/offsets_chaining_2.phpt +++ b/tests/strings/offsets_chaining_2.phpt @@ -1,7 +1,5 @@ --TEST-- testing the behavior of string offset chaining ---INI-- -error_reporting=E_ALL | E_DEPRECATED --FILE-- <?php $string = "foobar"; diff --git a/tests/strings/offsets_chaining_3.phpt b/tests/strings/offsets_chaining_3.phpt index fc11b8d797..12cac5917f 100644 --- a/tests/strings/offsets_chaining_3.phpt +++ b/tests/strings/offsets_chaining_3.phpt @@ -1,7 +1,5 @@ --TEST-- testing the behavior of string offset chaining ---INI-- -error_reporting=E_ALL | E_DEPRECATED --FILE-- <?php $string = "foobar"; diff --git a/tests/strings/offsets_chaining_4.phpt b/tests/strings/offsets_chaining_4.phpt index fc11b8d797..12cac5917f 100644 --- a/tests/strings/offsets_chaining_4.phpt +++ b/tests/strings/offsets_chaining_4.phpt @@ -1,7 +1,5 @@ --TEST-- testing the behavior of string offset chaining ---INI-- -error_reporting=E_ALL | E_DEPRECATED --FILE-- <?php $string = "foobar"; diff --git a/tests/strings/offsets_chaining_5.phpt b/tests/strings/offsets_chaining_5.phpt index efcf2f3074..1c9da47af3 100644 --- a/tests/strings/offsets_chaining_5.phpt +++ b/tests/strings/offsets_chaining_5.phpt @@ -1,7 +1,5 @@ --TEST-- testing the behavior of string offset chaining ---INI-- -error_reporting=E_ALL | E_DEPRECATED --FILE-- <?php $array = array('expected_array' => "foobar"); |