Home
last modified time | relevance | path

Searched refs:stristr (Results 1 – 25 of 51) sorted by relevance

123

/PHP-5.5/ext/standard/tests/strings/
H A Dstristr_error.phpt2 Test stristr() function : error conditions
9 echo "*** Testing stristr() : error conditions ***\n";
12 var_dump( stristr() );
13 var_dump( stristr("") );
23 var_dump( stristr(NULL, "") );
26 var_dump( stristr("Hello World", "") );
31 *** Testing stristr() : error conditions ***
33 -- Testing stristr() function with no arguments --
41 -- Testing stristr() function with no needle --
53 Warning: stristr(): Empty needle in %s on line %d
[all …]
H A Dstristr.phpt2 stristr() function
5 var_dump(stristr());
6 var_dump(stristr(array(), ""));
7 var_dump(stristr("", array()));
8 var_dump(stristr(array(), array()));
9 var_dump(stristr("tEsT sTrInG", "tEsT"));
13 var_dump(stristr("tEsT sTrInG", "g"));
15 var_dump(@stristr("", ""));
16 var_dump(@stristr("a", ""));
17 var_dump(@stristr("", "a"));
[all …]
H A Dstristr_basic.phpt2 Test stristr() function : basic functionality
11 var_dump( stristr("Test string", "teSt") );
12 var_dump( stristr("test stRIng", "striNG") );
13 var_dump( stristr("teST StrinG", "stRIn") );
14 var_dump( stristr("tesT string", "t S") );
15 var_dump( stristr("test strinG", "g") );
17 var_dump( stristr("tEst", "test") );
18 var_dump( stristr("teSt", "test") );
20 var_dump( stristr("Test String", "String", false) );
21 var_dump( stristr("Test String", "String", true) );
[all …]
H A Dstristr2.phpt2 stristr() - New parameter: before_needle
7 var_dump(stristr($email, 'c'));
8 var_dump(stristr($email, 'c', 1));
11 var_dump(stristr($email, 'E'));
12 var_dump(stristr($email, 'E', 1));
15 var_dump(stristr($email, 97));
16 var_dump(stristr($email, 97, 1));
H A Dstristr_variation1.phpt2 Test stristr() function : usage variations - test values for $haystack argument
6 /* Prototype: string stristr ( string $haystack, string $needle );
10 echo "*** Testing stristr() function: with unexpected inputs for 'string' argument ***\n";
71 // loop through with each element of the $inputs array to test stristr() function
75 var_dump( stristr($input, " ") );
84 *** Testing stristr() function: with unexpected inputs for 'string' argument ***
101 Warning: stristr() expects parameter 1 to be string, array given in %s on line %d2
105 Warning: stristr() expects parameter 1 to be string, array given in %s on line %d2
109 Warning: stristr() expects parameter 1 to be string, array given in %s on line %d2
127 Warning: stristr() expects parameter 1 to be string, resource given in %s on line %d2
H A Dstristr_variation2.phpt2 Test stristr() function : usage variations - test values for $needle argument
6 /* Prototype: string stristr ( string $haystack, string $needle );
10 echo "*** Testing stristr() function: with unexpected inputs for 'needle' argument ***\n";
71 // loop through with each element of the $inputs array to test stristr() function
75 var_dump( stristr("Hello World", $input) );
84 *** Testing stristr() function: with unexpected inputs for 'needle' argument ***
101 Warning: stristr(): needle is not a string or an integer in %s on line %d
105 Warning: stristr(): needle is not a string or an integer in %s on line %d
109 Warning: stristr(): needle is not a string or an integer in %s on line %d
129 Warning: stristr(): needle is not a string or an integer in %s on line %d
/PHP-5.5/ext/mysql/tests/
H A Dmysql_phpinfo.phpt19 if (!stristr($phpinfo, "mysql support"))
22 if (!stristr($phpinfo, "client api version"))
25 if (!stristr($phpinfo, "mysql.default_host"))
28 if (!stristr($phpinfo, "mysql.default_port"))
31 if (!stristr($phpinfo, "mysql.default_password"))
34 if (!stristr($phpinfo, "mysql.default_socket"))
37 if (!stristr($phpinfo, "mysql.default_user"))
40 if (!stristr($phpinfo, "mysql.max_links"))
43 if (!stristr($phpinfo, "mysql.max_persistent"))
46 if (!stristr($phpinfo, "mysql.connect_timeout"))
[all …]
H A Dmysql_deprecated_api.phpt31 if (!stristr($output, 'deprecated')) {
48 if (!stristr($output, 'deprecated')) {
64 if (!stristr($output, 'deprecated')) {
H A Dmysql_constants.phpt41 if (stristr($name, 'mysql') && !preg_match("/^mysql([^_]+)_/iu", $name)) {
/PHP-5.5/ext/mysqli/tests/
H A Dmysqli_phpinfo.phpt20 if (!stristr($phpinfo, "mysqli support"))
23 if (!stristr($phpinfo, "client api library version"))
26 if (!stristr($phpinfo, "mysqli.default_host"))
29 if (!stristr($phpinfo, "mysqli.default_port"))
32 if (!stristr($phpinfo, "mysqli.default_pw"))
35 if (!stristr($phpinfo, "mysqli.default_socket"))
38 if (!stristr($phpinfo, "mysqli.default_user"))
41 if (!stristr($phpinfo, "mysqli.max_links"))
44 if (!stristr($phpinfo, "mysqli.reconnect"))
65 if (!stristr($phpinfo, $entry))
H A Dmysqli_constants_categories.phpt14 if (stristr($name, 'mysqli')) {
H A Dmysqli_select_db.phpt78 if (!stristr($output, "1049") && !stristr($output, "1044") && !stristr($output, "1045")) {
H A Dmysqli_get_host_info.phpt25 if (!stristr($info, "TCP/IP"))
/PHP-5.5/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct.phpt79 if (!stristr($tmp, 'HY000') && !stristr($tmp, '2005') && !stristr($tmp, '2002'))
93 if (!stristr($tmp, 'HY000') && !stristr($tmp, '2005') && !stristr($tmp, '2002'))
110 if (!stristr($tmp, 'HY000') && !stristr($tmp, '2005') && !stristr($tmp, '2002'))
124 if (!stristr($tmp, 'HY000') && !stristr($tmp, '2005'))
150 if (!stristr($tmp, '42000') && !stristr($tmp, '1049'))
161 if (PDO_MYSQL_TEST_SOCKET && (stristr(PDO_MYSQL_TEST_DSN, PDO_MYSQL_TEST_SOCKET) !== false)) {
168 if (!stristr($tmp, 'HY000') && !stristr($tmp, '2002'))
216 if (!stristr($tmp, 'sqlstatecode') || !stristr($tmp, 'mysqlinternalerrcode'))
/PHP-5.5/ext/mbstring/tests/
H A Dmb_get_info.phpt54 ["stristr"]=>
118 ["stristr"]=>
144 ["stristr"]=>
/PHP-5.5/ext/zlib/tests/
H A Dob_001.phpt6 if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi");
H A Dob_005.phpt6 if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi");
H A Dob_004.phpt6 if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi");
H A Dob_gzhandler_legacy_002.phpt6 if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi");
H A Dob_003.phpt6 if (false === stristr(PHP_SAPI, "cgi")) die("skip need sapi/cgi");
/PHP-5.5/ext/standard/tests/network/
H A Dbug64330.phpt6 if (!stristr(PHP_OS, "Linux")) die('skip abstract namespace is a Linux-only feature');
H A Dinet_ipv6.phpt12 if (stristr(PHP_OS, "darwin") !== false) die("skip MacOS has broken inet_*() funcs");
/PHP-5.5/ext/standard/tests/file/
H A Dlstat_stat_variation6.phpt6 if (!(stristr(PHP_OS, 'linux'))) {
13 if( stristr($out, "noatime") )
H A Dcopy_variation5.phpt5 if( (stristr(PHP_OS, "Darwin")) || (stristr(PHP_OS, "Win")) )
/PHP-5.5/ext/snmp/tests/
H A Dsnmp_include.inc20 if (stristr(PHP_OS, "FreeBSD")) {

Completed in 34 milliseconds

123