summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/mb_stripos_basic.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mbstring/tests/mb_stripos_basic.phpt')
-rw-r--r--ext/mbstring/tests/mb_stripos_basic.phpt22
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/mbstring/tests/mb_stripos_basic.phpt b/ext/mbstring/tests/mb_stripos_basic.phpt
index bb33bb1076..e03945842e 100644
--- a/ext/mbstring/tests/mb_stripos_basic.phpt
+++ b/ext/mbstring/tests/mb_stripos_basic.phpt
@@ -8,9 +8,9 @@ function_exists('mb_stripos') or die("skip mb_stripos() is not available in this
--FILE--
<?php
/* Prototype : int mb_stripos(string haystack, string needle [, int offset [, string encoding]])
- * Description: Finds position of first occurrence of a string within another, case insensitive
+ * Description: Finds position of first occurrence of a string within another, case insensitive
* Source code: ext/mbstring/mbstring.c
- * Alias to functions:
+ * Alias to functions:
*/
/*
@@ -34,14 +34,14 @@ $ascii_needles = array(
b'de',
b'De',
b'dE',
-
+
//flag a swap between good and bad
- '!',
-
+ '!',
+
// 4 bad ones
b'df',
b'Df',
- b'dF',
+ b'dF',
b'DF'
);
@@ -63,11 +63,11 @@ $greek_bmixed2 = base64_decode('zrzOvs6f');
$greek_needles = array(
// 4 good ones
$greek_nlower, $greek_nupper, $greek_nmixed1, $greek_nmixed2,
-
+
'!', // used to flag a swap between good and bad
-
+
// 4 bad ones
- $greek_blower, $greek_bupper, $greek_bmixed1, $greek_bmixed2,
+ $greek_blower, $greek_bupper, $greek_bmixed1, $greek_bmixed2,
);
// try the basic options
@@ -80,7 +80,7 @@ foreach ($ascii_needles as $needle) {
foreach ($ascii_haystacks as $haystack) {
var_dump(mb_stripos($haystack, $needle));
}
- }
+ }
}
echo "\n -- Greek Strings, needle should be found --\n";
@@ -92,7 +92,7 @@ foreach ($greek_needles as $needle) {
foreach ($greek_haystacks as $haystack) {
var_dump(mb_stripos($haystack, $needle));
}
- }
+ }
}
echo "Done";