Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 139) sorted by last modified time

123456

/PHP-7.4/Zend/
H A Dzend_string.h306 ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2);
309 static zend_always_inline zend_bool zend_string_equal_val(zend_string *s1, zend_string *s2) in END_EXTERN_C()
311 return !memcmp(ZSTR_VAL(s1), ZSTR_VAL(s2), ZSTR_LEN(s1)); in END_EXTERN_C()
315 static zend_always_inline zend_bool zend_string_equal_content(zend_string *s1, zend_string *s2)
317 return ZSTR_LEN(s1) == ZSTR_LEN(s2) && zend_string_equal_val(s1, s2);
320 static zend_always_inline zend_bool zend_string_equals(zend_string *s1, zend_string *s2) in zend_string_equals() argument
322 return s1 == s2 || zend_string_equal_content(s1, s2); in zend_string_equals()
325 #define zend_string_equals_ci(s1, s2) \ argument
326 …(ZSTR_LEN(s1) == ZSTR_LEN(s2) && !zend_binary_strcasecmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2),…
H A Dzend_operators.c2725 if (s1 == s2) { in zend_binary_strcmp()
2741 if (s1 == s2) { in zend_binary_strncmp()
2758 if (s1 == s2) { in zend_binary_strcasecmp()
2780 if (s1 == s2) { in zend_binary_strncasecmp()
2801 if (s1 == s2) { in zend_binary_strcasecmp_l()
2823 if (s1 == s2) { in zend_binary_strncasecmp_l()
2841 return zend_binary_strcmp(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2)); in zend_binary_zval_strcmp()
2853 return zend_binary_strcasecmp_l(Z_STRVAL_P(s1), Z_STRLEN_P(s1), Z_STRVAL_P(s2), Z_STRLEN_P(s2)); in zend_binary_zval_strcasecmp()
2870 if ((ret1 = is_numeric_string_ex(s1->val, s1->len, &lval1, &dval1, 0, &oflow1)) &&
2918 if ((ret1 = is_numeric_string_ex(s1->val, s1->len, &lval1, &dval1, 0, &oflow1)) &&
[all …]
H A Dzend_builtin_functions.c601 zend_string *s1, *s2; in ZEND_FUNCTION() local
604 Z_PARAM_STR(s1) in ZEND_FUNCTION()
608 RETURN_LONG(zend_binary_strcmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2), ZSTR_LEN(s2))); in ZEND_FUNCTION()
616 zend_string *s1, *s2; in ZEND_FUNCTION() local
620 Z_PARAM_STR(s1) in ZEND_FUNCTION()
630 RETURN_LONG(zend_binary_strncmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2), ZSTR_LEN(s2), len)); in ZEND_FUNCTION()
638 zend_string *s1, *s2; in ZEND_FUNCTION() local
641 Z_PARAM_STR(s1) in ZEND_FUNCTION()
645 RETURN_LONG(zend_binary_strcasecmp(ZSTR_VAL(s1), ZSTR_LEN(s1), ZSTR_VAL(s2), ZSTR_LEN(s2))); in ZEND_FUNCTION()
653 zend_string *s1, *s2; in ZEND_FUNCTION() local
[all …]
H A Dzend_operators.h407 ZEND_API int ZEND_FASTCALL zend_binary_zval_strcmp(zval *s1, zval *s2);
408 ZEND_API int ZEND_FASTCALL zend_binary_zval_strncmp(zval *s1, zval *s2, zval *s3);
409 ZEND_API int ZEND_FASTCALL zend_binary_zval_strcasecmp(zval *s1, zval *s2);
410 ZEND_API int ZEND_FASTCALL zend_binary_zval_strncasecmp(zval *s1, zval *s2, zval *s3);
418 ZEND_API int ZEND_FASTCALL zendi_smart_streq(zend_string *s1, zend_string *s2);
419 ZEND_API int ZEND_FASTCALL zendi_smart_strcmp(zend_string *s1, zend_string *s2);
832 static zend_always_inline int zend_fast_equal_strings(zend_string *s1, zend_string *s2) in zend_fast_equal_strings() argument
834 if (s1 == s2) { in zend_fast_equal_strings()
836 } else if (ZSTR_VAL(s1)[0] > '9' || ZSTR_VAL(s2)[0] > '9') { in zend_fast_equal_strings() local
837 return zend_string_equal_content(s1, s2); in zend_fast_equal_strings()
[all …]
H A Dzend_strtod.c1906 s1 = s;
1919 s = s1;
1981 n = s1 - s0 - 1;
1991 while(s1 > s0) {
1994 s1 -= i;
1998 if (*--s1 == '.')
2626 for(s1 = s; s1 > s0 && *--s1 == '0'; )
2630 if (c == *s1) {
2632 if (*++s1) {
2639 if (!*++s1) {
[all …]
/PHP-7.4/ext/standard/
H A Darray.c217 const char *s1, *s2; in php_array_key_compare_string_case() local
223 s1 = f->key->val; in php_array_key_compare_string_case()
227 l1 = buf1 + sizeof(buf1) - 1 - s1; in php_array_key_compare_string_case()
234 l2 = buf2 + sizeof(buf2) - 1 - s1; in php_array_key_compare_string_case()
250 const char *s1, *s2; in php_array_key_compare_string() local
256 s1 = f->key->val; in php_array_key_compare_string()
283 const char *s1, *s2; in php_array_key_compare_string_natural_general() local
289 s1 = f->key->val; in php_array_key_compare_string_natural_general()
334 const char *s1, *s2; in php_array_key_compare_string_locale() local
339 s1 = f->key->val; in php_array_key_compare_string_locale()
[all …]
H A Dstring.c708 zend_string *s1, *s2; in PHP_FUNCTION() local
711 Z_PARAM_STR(s1) in PHP_FUNCTION()
1777 return (p - s1);
1786 register char c = *s1;
1788 for (p = s1;;) {
1792 return p - s1;
5662 zend_string *s1, *s2; local
5665 Z_PARAM_STR(s1)
5669 RETURN_LONG(strnatcmp_ex(ZSTR_VAL(s1), ZSTR_LEN(s1),
6320 zend_string *s1, *s2; local
[all …]
H A Dstreamsfuncs.c57 php_stream *s1, *s2; in PHP_FUNCTION() local
75 s1 = php_stream_sock_open_from_socket(pair[0], 0); in PHP_FUNCTION()
80 php_stream_auto_cleanup(s1); in PHP_FUNCTION()
83 add_next_index_resource(return_value, s1->res); in PHP_FUNCTION()
H A Dbasic_functions.c2411 ZEND_ARG_INFO(0, s1)
2419 ZEND_ARG_INFO(0, s1)
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c802 char *s1, *s2; local
820 s1 = (char *) doc_root;
824 s1 = path;
834 if (strnicmp(s1, s2, s_len) == 0) {
836 if (strncmp(s1, s2, s_len) == 0) {
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c643 char *s1, *s2; in php_cgi_ini_activate_user_config() local
660 s1 = (char *) doc_root; in php_cgi_ini_activate_user_config()
664 s1 = path; in php_cgi_ini_activate_user_config()
673 if (strncmp(s1, s2, s_len) == 0) { in php_cgi_ini_activate_user_config()
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_auth.c538 php_mysqlnd_crypt(zend_uchar *buffer, const zend_uchar *s1, const zend_uchar *s2, size_t len) in php_mysqlnd_crypt() argument
540 const zend_uchar *s1_end = s1 + len; in php_mysqlnd_crypt()
541 while (s1 < s1_end) { in php_mysqlnd_crypt()
542 *buffer++= *s1++ ^ *s2++; in php_mysqlnd_crypt()
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_stmt_datatype_change.phpt28 $s1 = $c1->prepare("select a from type_change order by a");
29 var_dump($s1->execute(), $s1->bind_result($col1));
31 var_dump($s1->fetch());
34 var_dump($s1->fetch());
37 var_dump($s1->fetch());
42 var_dump($s1->execute());
46 var_dump($s1->fetch());
49 var_dump($s1->fetch());
52 var_dump($s1->fetch());
/PHP-7.4/ext/pcre/pcre2lib/sljit/
H A DsljitNativeSPARC_common.c116 #define S1(s1) (reg_map[s1] << 14) argument
117 #define FS1(s1) (freg_map[s1] << 14) argument
118 #define S1A(s1) ((s1) << 14) argument
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_internal.h186 #define strncmp(s1,s2,m) _strncmp(s1,s2,m) argument
/PHP-7.4/Zend/tests/
H A Dbug79934.phpt9 eval("\$s1 = <<<HEREDOC\r\n a\r\n\r\n b\r\n HEREDOC;");
10 var_dump(addcslashes($s1, "\r\n"));
/PHP-7.4/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_variation9.phpt48 $s1 = lstat($soft_link);
51 if( $s1[0] == $linkinfo )
63 $s1 = lstat($hard_link);
66 if( $s1[0] == $linkinfo )
80 $s1 = lstat($soft_link);
83 if( $s1[0] == $linkinfo )
/PHP-7.4/ext/spl/tests/
H A Dbug45826.phpt14 $s1 = serialize($o);
16 var_dump($s1);
19 $o1 = unserialize($s1);
32 unset($o,$x,$s1,$s2,$o1,$o2);
52 $s1 = serialize($o);
54 var_dump($s1);
57 $o1 = unserialize($s1);
/PHP-7.4/ext/spl/
H A Dspl_observer.c345 spl_SplObjectStorageElement *s1 = (spl_SplObjectStorageElement*)Z_PTR_P(e1); in spl_object_storage_compare_info() local
349 if (compare_function(&result, &s1->inf, &s2->inf) == FAILURE) { in spl_object_storage_compare_info()
/PHP-7.4/ext/fileinfo/libmagic/
H A Dsoftmagic.c1828 file_strncmp(const char *s1, const char *s2, size_t len, uint32_t flags) in file_strncmp() argument
1836 const unsigned char *a = RCAST(const unsigned char *, s1); in file_strncmp()
/PHP-7.4/ext/reflection/tests/
H A Dbug79062.phpt9 private $s1 = <<<STRING
21 $s1 = $ref->getProperty('s1');
22 var_dump($s1->getDocComment());
/PHP-7.4/ext/phar/
H A Dmakestub.php28 $s1 = substr($s, 0, strpos($s, 'index.php')); variable
29 $s2 = substr($s, strlen($s1) + strlen('index.php'));
31 $s3 = substr($s, strlen($s2) + 4 + strlen($s1) + strlen('index.php'));
54 $s1split = str_split($s1, 2046);
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_util_funcs.c839 #define ADLER32_DO1(buf) {s1 += *(buf); s2 += s1;}
847 unsigned int s1 = checksum & 0xffff; in zend_adler32() local
858 s1 %= ADLER32_BASE; in zend_adler32()
878 s1 %= ADLER32_BASE; in zend_adler32()
882 return (s2 << 16) | s1; in zend_adler32()
/PHP-7.4/ext/standard/tests/strings/
H A Dstrval_variation2.phpt13 $s1 = "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f";
31 echo bin2hex(strval($s1));
H A Dsubstr_replace_error.phpt16 $s1 = "Good morning";
20 var_dump(substr_replace($s1, "evening"));
23 var_dump(substr_replace($s1, "evening", 5, 7, true));
26 var_dump(substr_replace($s1, "evening", array(5)));
27 var_dump(substr_replace($s1, "evening", 5, array(8)));
30 var_dump(substr_replace($s1, "evening", array(5, 1), array(8)));
33 var_dump(substr_replace($s1, "evening", array(5), array(8)));

Completed in 133 milliseconds

123456