Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 106) sorted by last modified time

12345

/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()
2871 (ret2 = is_numeric_string_ex(s2->val, s2->len, &lval2, &dval2, 0, &oflow2))) {
2919 (ret2 = is_numeric_string_ex(s2->val, s2->len, &lval2, &dval2, 0, &oflow2))) {
[all …]
H A Dzend_builtin_functions.c601 zend_string *s1, *s2; in ZEND_FUNCTION() local
605 Z_PARAM_STR(s2) 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
621 Z_PARAM_STR(s2) 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
642 Z_PARAM_STR(s2) 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()
837 return zend_string_equal_content(s1, s2); in zend_fast_equal_strings()
[all …]
H A Dzend_strtod.c2633 s2 = s;
2640 s = s2;
3913 s2 = j;
3917 s2 = 0;
3922 s2 += k;
4164 s2 += i;
4168 i = m2 < s2 ? m2 : s2;
4171 s2 -= i;
4206 s2 += Log2P;
4221 s2 += i;
[all …]
/PHP-7.4/ext/standard/
H A Darray.c217 const char *s1, *s2; in php_array_key_compare_string_case() local
230 s2 = s->key->val; in php_array_key_compare_string_case()
250 const char *s1, *s2; in php_array_key_compare_string() local
263 s2 = s->key->val; in php_array_key_compare_string()
267 l2 = buf2 + sizeof(buf2) - 1 - s2; in php_array_key_compare_string()
269 return zend_binary_strcmp(s1, l1, s2, l2); in php_array_key_compare_string()
283 const char *s1, *s2; in php_array_key_compare_string_natural_general() local
296 s2 = s->key->val; in php_array_key_compare_string_natural_general()
334 const char *s1, *s2; in php_array_key_compare_string_locale() local
344 s2 = s->key->val; in php_array_key_compare_string_locale()
[all …]
H A Dstring.c708 zend_string *s1, *s2; in PHP_FUNCTION() local
712 Z_PARAM_STR(s2) in PHP_FUNCTION()
1789 spanp = s2;
4086 uint8x16_t s2 = vceqq_u8(x, vdupq_n_u8('\"')); local
4089 uint8x16_t s23 = vorrq_u8(s2, s3);
5662 zend_string *s1, *s2; local
5666 Z_PARAM_STR(s2)
5670 ZSTR_VAL(s2), ZSTR_LEN(s2),
6320 zend_string *s1, *s2; local
6328 Z_PARAM_STR(s2)
[all …]
H A Dstreamsfuncs.c57 php_stream *s1, *s2; in PHP_FUNCTION() local
76 s2 = php_stream_sock_open_from_socket(pair[1], 0); in PHP_FUNCTION()
81 php_stream_auto_cleanup(s2); in PHP_FUNCTION()
84 add_next_index_resource(return_value, s2->res); in PHP_FUNCTION()
H A Dbasic_functions.c2412 ZEND_ARG_INFO(0, s2)
2420 ZEND_ARG_INFO(0, s2)
/PHP-7.4/ext/mbstring/
H A Dmbstring.c1205 char *s, *s2; in php_mb_rfc1867_basename() local
1214 s2 = php_mb_safe_strrchr_ex(filename, '/', filename_len, (const mbfl_encoding *)encoding); in php_mb_rfc1867_basename()
1216 if (s && s2) { in php_mb_rfc1867_basename()
1217 if (s > s2) { in php_mb_rfc1867_basename()
1220 return ++s2; in php_mb_rfc1867_basename()
1224 } else if (s2) { in php_mb_rfc1867_basename()
1225 return ++s2; in php_mb_rfc1867_basename()
/PHP-7.4/sapi/cgi/
H A Dcgi_main.c802 char *s1, *s2; local
821 s2 = path;
825 s2 = (char *) doc_root;
834 if (strnicmp(s1, s2, s_len) == 0) {
836 if (strncmp(s1, s2, s_len) == 0) {
838 char *ptr = s2 + doc_root_len;
/PHP-7.4/sapi/fpm/fpm/
H A Dfpm_main.c643 char *s1, *s2; in php_cgi_ini_activate_user_config() local
661 s2 = path; in php_cgi_ini_activate_user_config()
665 s2 = (char *) doc_root; in php_cgi_ini_activate_user_config()
673 if (strncmp(s1, s2, s_len) == 0) { in php_cgi_ini_activate_user_config()
674 ptr = s2 + doc_root_len; 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
542 *buffer++= *s1++ ^ *s2++; in php_mysqlnd_crypt()
/PHP-7.4/main/
H A Drfc1867.c563 char *s2 = strrchr(path, '/'); in php_ap_basename() local
565 if (s && s2) { in php_ap_basename()
566 if (s > s2) { in php_ap_basename()
569 s = ++s2; in php_ap_basename()
574 } else if (s2) { in php_ap_basename()
575 return ++s2; in php_ap_basename()
/PHP-7.4/ext/pcre/pcre2lib/sljit/
H A DsljitNativeSPARC_common.c119 #define S2(s2) (reg_map[s2]) argument
120 #define FS2(s2) (freg_map[s2]) argument
121 #define FS2N(s2) (freg_map[s2] | 0x1) argument
122 #define S2A(s2) (s2) 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.phpt13 eval("\$s2 = <<<HEREDOC\n a\n\n b\n HEREDOC;");
14 var_dump(addcslashes($s2, "\n"));
/PHP-7.4/ext/spl/tests/
H A Dbug45826.phpt15 $s2 = $o->serialize();
17 var_dump($s2);
25 $o2->unserialize($s2);
32 unset($o,$x,$s1,$s2,$o1,$o2);
53 $s2 = $o->__serialize();
55 var_dump($s2);
63 $o2->__unserialize($s2);
/PHP-7.4/ext/spl/
H A Dspl_observer.c346 spl_SplObjectStorageElement *s2 = (spl_SplObjectStorageElement*)Z_PTR_P(e2); 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
1837 const unsigned char *b = RCAST(const unsigned char *, s2); in file_strncmp()
/PHP-7.4/ext/reflection/tests/
H A Dbug79062.phpt13 private $s2 = <<<'STRING'
24 $s2 = $ref->getProperty('s2');
25 var_dump($s2->getDocComment());
28 var_dump($s2->getDocComment());
/PHP-7.4/ext/phar/
H A Dmakestub.php29 $s2 = substr($s, strlen($s1) + strlen('index.php')); variable
30 $s2 = substr($s2, 0, strpos($s2, 'XXXX')); variable
31 $s3 = substr($s, strlen($s2) + 4 + strlen($s1) + strlen('index.php'));
84 $stub .= "\tstatic const char newstub2[] = \"" . $s2 . "\";
/PHP-7.4/ext/opcache/
H A Dzend_accelerator_util_funcs.c839 #define ADLER32_DO1(buf) {s1 += *(buf); s2 += s1;}
848 unsigned int s2 = (checksum >> 16) & 0xffff; in zend_adler32() local
859 s2 %= ADLER32_BASE; in zend_adler32()
879 s2 %= ADLER32_BASE; in zend_adler32()
882 return (s2 << 16) | s1; in zend_adler32()
/PHP-7.4/ext/standard/tests/strings/
H A Dstrval_variation2.phpt14 $s2 = "\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f";
33 echo bin2hex(strval($s2));
H A Dstrnatcasecmp_basic.phpt7 /* Prototype : int strnatcasecmp(string s1, string s2)

Completed in 160 milliseconds

12345