Home
last modified time | relevance | path

Searched refs:strpos (Results 1 – 25 of 104) sorted by relevance

12345

/PHP-8.1/ext/standard/tests/strings/
H A Dstrpos.phpt2 Test strpos() function
14 var_dump( strpos("tEst", "test") );
15 var_dump( strpos("teSt", "test") );
16 var_dump( strpos("", "") );
17 var_dump( strpos("a", "") );
18 var_dump( strpos("", "a") );
19 var_dump( strpos("\\\\a", "\\a") );
118 var_dump( strpos("", NULL) );
119 var_dump( strpos(NULL, NULL) );
120 var_dump( strpos("a", NULL) );
[all …]
H A Dstrpos_number.phpt2 strpos() matching numbers
6 var_dump(strpos("foo 11", 11));
8 var_dump(strpos("foo bar", 111));
10 var_dump(strpos("foo 11", "11"));
H A Dstrpos_variation1.phpt2 Test strpos() function : usage variations - complex strings containing other than 7-bit chars
9 var_dump( strpos($string, chr(128)) );
11 var_dump( strpos($string, chr(255), 3) );
13 var_dump( strpos($string, chr(256)) );
/PHP-8.1/Zend/tests/type_declarations/
H A Dcallable_003.phpt13 foo("strpos", 123, "strpos");
17 string(6) "strpos"
19 string(6) "strpos"
H A Dcallable_001.phpt15 foo("strpos");
22 string(6) "strpos"
/PHP-8.1/ext/opcache/tests/
H A Dbug76796.phpt7 disable_functions=strpos
14 var_dump(strpos('foo', 'bar'));
21 Call to undefined function strpos()
/PHP-8.1/ext/libxml/tests/
H A Dlibxml_entity_loading_disabled_by_default.phpt42 var_dump(strpos(parseXML1($xml), 'SECRET_DATA') === false);
43 var_dump(strpos(parseXML2($xml), 'SECRET_DATA') === false);
44 var_dump(strpos(parseXML3($xml), 'SECRET_DATA') === false);
45 var_dump(strpos(parseXML4($xml), 'SECRET_DATA') === false);
H A Dlibxml_disable_entity_loader_2.phpt30 var_dump(strpos(parseXML($xml), 'SECRET_DATA') !== false);
32 var_dump(strpos(parseXML($xml), 'SECRET_DATA') === false);
H A Dlibxml_disable_entity_loader.phpt31 var_dump(strpos(parseXML($xml), 'SECRET_DATA') !== false);
33 var_dump(strpos(parseXML($xml), 'SECRET_DATA') === false);
/PHP-8.1/scripts/dev/
H A Dsearch_underscores.php36 if (strpos($ext, "_") !== false) {
45 if (strpos($c, "_") !== false) {
57 if (strpos(substr($method, substr($method, 0, 2) != "__" ? 0 : 2), "_") !== false) {
/PHP-8.1/ext/soap/tests/bugs/
H A Dbug41097.phpt9 echo (strpos($soap->__getLastRequest(), ':Map"') != false)?"Map\n":"Array\n";
18 echo (strpos($soap->__getLastRequest(), ':Map"') != false)?"Map\n":"Array\n";
20 echo (strpos($soap->__getLastRequest(), ':Map"') != false)?"Map\n":"Array\n";
/PHP-8.1/ext/oci8/tests/
H A Dskipif.inc6 if (strpos($v, 'Oracle Database') !== false)
8 else if (strpos($v, 'Oracle TimesTen') !== false)
/PHP-8.1/ext/standard/tests/general_functions/
H A Dproc_nice_basic-win.phpt44 strpos($t[0], ' ProcessId' ),
45 strpos($t[0], ' Priority ')
56 $d[] = (int) substr($l, $c + 1, strpos($l, ' ', $c + 2) - ($c + 1));
/PHP-8.1/ext/dom/tests/
H A Dbug80268.phpt14 var_dump(strpos($html, '<p>foo</p>') !== false);
20 var_dump(strpos($html, '<p>foo</p>') !== false);
H A Dbug80268_2.phpt14 var_dump(strpos($html, '<p>foo</p>') !== false);
20 var_dump(strpos($html, '<p>foo</p>') !== false);
/PHP-8.1/ext/openssl/tests/
H A Dbug36732.phpt28 if (strpos($str, 'Requested Extensions:')) {
32 if (strpos($str, 'X509v3 extensions:')) {
/PHP-8.1/ext/pdo/tests/
H A Dbug_71885.phpt29 var_dump(strpos($e->getMessage(), "?") !== false);
36 var_dump(strpos($e->getMessage(), "?") !== false);
47 var_dump(strpos($e->getMessage(), "?") !== false);
/PHP-8.1/ext/phar/
H A Dmakestub.php26 $webs = substr($s, 0, strpos($s, "000"));
28 $s1 = substr($s, 0, strpos($s, 'index.php'));
30 $s2 = substr($s2, 0, strpos($s2, 'XXXX'));
H A Dshortarc.php62 if (!strpos($_SERVER['REQUEST_URI'], $basename)) {
67 …$pt = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], $basename) + strlen($basenam…
156 if (strpos ($sessionpath, ";") !== false)
157 $sessionpath = substr ($sessionpath, strpos ($sessionpath, ";")+1);
198 if (strpos(PHP_OS, 'WIN') !== false) {
/PHP-8.1/ext/pgsql/tests/
H A D80_bug36625.phpt32 if (strpos($line, '"select 1"') !== false || strpos($line, "'select 1'") !== false) {
H A Dskipif.inc37 if (strpos($out, '377') !== false) {
46 if (strpos($out, '377') === false) {
/PHP-8.1/ext/mysqli/tests/
H A Dmysqli_get_connection_stats.phpt26 if (strpos($k, "mem_") === 0) {
31 if (strpos($k, "mem_") === 0) {
46 if (strpos($k, "mem_") === 0) {
/PHP-8.1/ext/standard/tests/mail/
H A Dbug80751.phpt36 var_dump(strpos($header, 'Return-Path: joe@example.com') !== false);
38 var_dump(strpos($header, 'To: "<bob@example.com>" <info@mail.local>') !== false);
40 var_dump(strpos($header, 'From: "<bob@example.com>" <joe@example.com>') !== false);
42 … var_dump(strpos($header, 'Cc: "Lastname, Firstname\\\\" <admin@mail.local>') !== false);
/PHP-8.1/ext/mbstring/tests/
H A Dbug45923.phpt21 section('strpos' , "abc abc abc" , "abc");
34 ------- strpos -----------
47 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
55 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.1/ext/iconv/tests/
H A Diconv_strpos.phpt15 var_dump(strpos($haystk, $needle, $offset));
51 strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)

Completed in 52 milliseconds

12345