summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/strripos_variation1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/strings/strripos_variation1.phpt')
-rw-r--r--ext/standard/tests/strings/strripos_variation1.phpt68
1 files changed, 34 insertions, 34 deletions
diff --git a/ext/standard/tests/strings/strripos_variation1.phpt b/ext/standard/tests/strings/strripos_variation1.phpt
index 5c143d2564..d8188bdd87 100644
--- a/ext/standard/tests/strings/strripos_variation1.phpt
+++ b/ext/standard/tests/strings/strripos_variation1.phpt
@@ -12,54 +12,54 @@ Test strripos() function : usage variations - double quoted strings for 'haystac
echo "*** Testing strripos() function: with double quoted strings ***\n";
$haystack = "Hello,\t\n\0\n $&!#%()*<=>?@hello123456he \x234 \101 ";
$needles = array(
- //regular strings
+ //regular strings
/*1*/ "l",
- "L",
- "HELLO",
- "hEllo",
+ "L",
+ "HELLO",
+ "hEllo",
- //escape characters
+ //escape characters
/*5*/ "\t",
- "\T", //invalid input
- " ",
- "\n",
- "\N", //invalid input
- "
+ "\T", //invalid input
+ " ",
+ "\n",
+ "\N", //invalid input
+ "
", //new line
- //nulls
+ //nulls
/*11*/ "\0",
- NULL,
- null,
+ NULL,
+ null,
- //boolean false
+ //boolean false
/*14*/ FALSE,
- false,
+ false,
- //empty string
+ //empty string
/*16*/ "",
- //special chars
+ //special chars
/*17*/ " ",
- "$",
- " $",
- "&",
- "!#",
- "()",
- "<=>",
- ">",
- "=>",
- "?",
- "@",
- "@hEllo",
+ "$",
+ " $",
+ "&",
+ "!#",
+ "()",
+ "<=>",
+ ">",
+ "=>",
+ "?",
+ "@",
+ "@hEllo",
/*29*/ "12345", //decimal numeric string
- "\x23", //hexadecimal numeric string
- "#", //respective ASCII char of \x23
- "\101", //octal numeric string
- "A", //respective ASCII char of \101
- "456HEE", //numerics + chars
- $haystack //haystack as needle
+ "\x23", //hexadecimal numeric string
+ "#", //respective ASCII char of \x23
+ "\101", //octal numeric string
+ "A", //respective ASCII char of \101
+ "456HEE", //numerics + chars
+ $haystack //haystack as needle
);
/* loop through to get the position of the needle in haystack string */