/PHP-8.1/ext/standard/tests/strings/ |
H A D | strncmp_basic.phpt | 2 Test strncmp() function : basic functionality 5 echo "*** Testing strncmp() function: basic functionality ***\n"; 7 echo "-- Testing strncmp() with single quoted string --\n"; 8 var_dump( strncmp('Hello', 'Hello', 5) ); //expected: int(0) 9 var_dump( strncmp('Hello', 'Hi', 5) ); //expected: value < 0 12 echo "-- Testing strncmp() with double quoted string --\n"; 17 echo "-- Testing strncmp() with here-doc string --\n"; 21 var_dump( strncmp($str, "Hello", 5) ); //expected: int(0) 29 -- Testing strncmp\(\) with single quoted string -- 33 -- Testing strncmp\(\) with double quoted string -- [all …]
|
H A D | strncmp_error.phpt | 2 Test strncmp() function : error conditions 5 /* Test strncmp() function with more/less number of args and invalid args */ 7 echo "*** Testing strncmp() function: error conditions ***\n"; 15 var_dump( strncmp($str1, $str2, $len) ); 22 *** Testing strncmp() function: error conditions *** 23 strncmp(): Argument #3 ($length) must be greater than or equal to 0
|
H A D | bug36944.phpt | 2 Bug #36944 (strncmp & strncasecmp do not return false on negative string length) 7 var_dump(strncmp("test ", "e", -1)); 11 var_dump(strncmp("test ", "e", 10)); 12 var_dump(strncmp("test ", "e", 0)); 24 strncmp(): Argument #3 ($length) must be greater than or equal to 0
|
H A D | strncmp_variation3.phpt | 2 Test strncmp() function: usage variations - different lengths 5 /* Test strncmp() with various lengths */ 7 echo "*** Test strncmp() function: with different lengths ***\n"; 14 var_dump( strncmp($str1, $str2, $len) ); 19 \*\*\* Test strncmp\(\) function: with different lengths \*\*\*
|
H A D | strncmp_variation7.phpt | 2 Test strncmp() function : usage variations - binary safe(null terminated strings) 5 /* Test strncmp() function with binary values passed to 'str1' & 'str2' and with the null terminate… 7 echo "*** Test strncmp() function: Checking with the null terminated strings ***\n"; 12 var_dump( strncmp($str1, $str2, 12) ); //expected: int(5); 17 *** Test strncmp() function: Checking with the null terminated strings ***
|
H A D | strncmp_variation8.phpt | 2 Test strncmp() function: usage variations - single quoted strings 5 /* Test strncmp() function with single quoted strings for 'str1', 'str2' */ 7 echo "*** Test strncmp() function: with single quoted strings ***\n"; 19 var_dump( strncmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) ); 26 \*\*\* Test strncmp\(\) function: with single quoted strings \*\*\*
|
H A D | strncmp_variation1.phpt | 2 Test strncmp() function: usage variations - case-sensitivity 5 /* Test strncmp() function with upper-case and lower-case alphabets as inputs for 'str1' and 'str2'… 7 echo "*** Test strncmp() function: with alphabets ***\n"; 10 …var_dump( strncmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing uppercase letters with uppercase … 11 …var_dump( strncmp( chr($ASCII), chr($ASCII + 32), 1 ) ); //comparing uppercase letters with lower… 16 …var_dump( strncmp( chr($ASCII), chr($ASCII), 1 ) ); //comparing lowercase letters with lowercase … 17 …var_dump( strncmp( chr($ASCII), chr($ASCII - 32), 1 ) ); //comparing lowercase letters with upper… 22 \*\*\* Test strncmp\(\) function: with alphabets \*\*\*
|
H A D | strncmp_variation2.phpt | 2 Test strncmp() function: usage variations - double quoted strings 5 /* Test strncmp() function with double quoted strings for 'str1', 'str2' */ 7 echo "*** Test strncmp() function: with double quoted strings ***\n"; 20 var_dump( strncmp( $strings[$index1], $strings[$index2], (strlen($strings[$index1]) + 1) ) ); 27 \*\*\* Test strncmp\(\) function: with double quoted strings \*\*\*
|
H A D | strncmp_variation9.phpt | 2 Test strncmp() function: usage variations - different inputs(heredoc strings) 5 /* Test strncmp() function with different strings for 'str1', 'str2' and considering case sensitive… 7 echo "*** Test strncmp() function: with different input strings ***\n"; 45 var_dump( strncmp( $strings[$index1], $strings[$index1], strlen($strings[$index1]) ) ); 51 *** Test strncmp() function: with different input strings ***
|
/PHP-8.1/Zend/tests/ |
H A D | 004.phpt | 2 strncmp() tests 6 var_dump(strncmp("", "", 100)); 8 var_dump(strncmp("aef", "dfsgbdf", -1)); 12 var_dump(strncmp("fghjkl", "qwer", 0)); 13 var_dump(strncmp("qwerty", "qwerty123", 6)); 14 var_dump(strncmp("qwerty", "qwerty123", 7)); 19 strncmp(): Argument #3 ($length) must be greater than or equal to 0
|
/PHP-8.1/ext/phar/tests/ |
H A D | bug69279a.phpt | 11 var_dump(strncmp(file_get_contents(__DIR__ . '/bug69279a/1.txt'), 'Lorem ipsum', 11)); 12 var_dump(strncmp(file_get_contents(__DIR__ . '/bug69279a/2.txt'), 'foo', 3)); 13 var_dump(strncmp(file_get_contents(__DIR__ . '/bug69279a/3.txt'), 'Lorem ipsum', 11));
|
/PHP-8.1/ext/tokenizer/tests/ |
H A D | token_get_all_variation19.phpt | 39 if (strncmp($token[1], '<?php', 5) == 0) { 42 if (strncmp($token[1], '?>', 2) == 0) {
|
/PHP-8.1/ext/fileinfo/libmagic/ |
H A D | is_tar.c | 126 if (strncmp(header->header.magic, GNUTMAGIC, in is_tar() 130 if (strncmp(header->header.magic, TMAGIC, in is_tar()
|
H A D | apptype.c | 132 if (strncmp((const char *)buf, "MZ", 2)) in file_os2_apptype()
|
/PHP-8.1/Zend/ |
H A D | zend_vm_opcodes.c | 453 if (opcode_name && strncmp(opcode_name, name, length) == 0) { in zend_get_opcode_id()
|
/PHP-8.1/sapi/cli/tests/ |
H A D | bug73630.phpt | 11 var_dump(strncmp($_SERVER['REQUEST_URI'], "/overflow.php", strlen("/overflow.php")));
|
H A D | php_cli_server_004.phpt | 12 php_cli_server_start('foreach($_SERVER as $k=>$v) { if (!strncmp($k, "HTTP", 4)) var_dump( $k . ":"…
|
/PHP-8.1/ext/standard/ |
H A D | versioning.c | 103 if (strncmp(form1, pp->name, strlen(pp->name)) == 0) { in compare_special_version_forms() 109 if (strncmp(form2, pp->name, strlen(pp->name)) == 0) { in compare_special_version_forms()
|
H A D | php_crypt_r.c | 117 if (strncmp(sp, MD5_MAGIC, MD5_MAGIC_LEN) == 0) in php_md5_crypt_r()
|
/PHP-8.1/ext/readline/ |
H A D | readline_cli.c | 366 if (!strncmp(code + i - heredoc_len + 1, heredoc_tag, heredoc_len)) { in cli_is_valid_code() 377 if ((CG(short_tags) && !strncmp(code+i-1, "<?", 2)) in cli_is_valid_code() 378 || (i > 3 && !strncmp(code+i-4, "<?php", 5)) in cli_is_valid_code() 434 if (!textlen || !strncmp(ZSTR_VAL(name), text, textlen)) { in cli_completion_generator_ht() 738 if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
|
/PHP-8.1/ext/standard/tests/file/ |
H A D | clearstatcache_001.phpt | 5 if (strncmp(PHP_OS, "WIN", 3) === 0) {
|
/PHP-8.1/win32/ |
H A D | console.c | 114 …return strlen(sapi_module.name) >= sizeof("cli") - 1 && !strncmp(sapi_module.name, "cli", sizeof("… in php_win32_console_is_cli_sapi()
|
/PHP-8.1/ext/pcre/pcre2lib/ |
H A D | pcre2_string_utils.c | 157 PRIV(strncmp)(PCRE2_SPTR str1, PCRE2_SPTR str2, size_t len) in PRIV() argument
|
/PHP-8.1/ext/dba/ |
H A D | dba_db4.c | 48 && (!strncmp(msg, "fop_read_meta", sizeof("fop_read_meta")-1) in php_dba_db4_errcall_fcn() 49 || !strncmp(msg, "BDB0004 fop_read_meta", sizeof("BDB0004 fop_read_meta")-1))) { in php_dba_db4_errcall_fcn()
|
/PHP-8.1/main/ |
H A D | getopt.c | 112 …} else if (opts[php_optidx].opt_name && !strncmp(&argv[*optind][2], opts[php_optidx].opt_name, arg… in php_getopt()
|