Home
last modified time | relevance | path

Searched refs:s2 (Results 1 – 25 of 106) sorted by path

12345

/PHP-7.4/Zend/tests/
H A Dadd_006.phpt10 $s2 = "876222numeric";
17 $c = $i + $s2;
29 $c = $s2 + $i;
H A Dbug79934.phpt13 eval("\$s2 = <<<HEREDOC\n a\n\n b\n HEREDOC;");
14 var_dump(addcslashes($s2, "\n"));
H A Dnot_001.phpt9 $s2 = "some";
14 $s1 = ~$s2;
H A Dself_and.phpt8 $s2 = "45345some";
18 $s2 &= 33;
19 var_dump($s2);
H A Dself_mod.phpt8 $s2 = "45345some";
16 $s2 %= 33;
17 var_dump($s2);
H A Dself_or.phpt8 $s2 = "45345some";
18 $s2 |= 33;
19 var_dump($s2);
H A Dself_xor.phpt8 $s2 = "45345some";
18 $s2 ^= 33;
19 var_dump($s2);
H A Dshift_001.phpt8 $s2 = "45345some";
16 $s2 <<= 3;
17 var_dump($s2);
H A Dshift_002.phpt8 $s2 = "45345some";
16 $s2 >>= 3;
17 var_dump($s2);
/PHP-7.4/Zend/
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_config.w32.h48 #define strcasecmp(s1, s2) _stricmp(s1, s2) argument
49 #define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n) argument
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_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_string.c328 ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2) in zend_string_equal_val() argument
331 size_t delta = (char*)s2 - (char*)s1; in zend_string_equal_val()
366 …ZEND_FASTCALL I_WRAP_SONAME_FNNAME_ZU(NONE,zend_string_equal_val)(zend_string *s1, zend_string *s2) in I_WRAP_SONAME_FNNAME_ZU()
370 char *ptr2 = ZSTR_VAL(s2); in I_WRAP_SONAME_FNNAME_ZU()
396 ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2) in zend_string_equal_val() argument
399 size_t delta = (char*)s2 - (char*)s1; in zend_string_equal_val()
434 …ZEND_FASTCALL I_WRAP_SONAME_FNNAME_ZU(NONE,zend_string_equal_val)(zend_string *s1, zend_string *s2) in I_WRAP_SONAME_FNNAME_ZU()
438 char *ptr2 = ZSTR_VAL(s2); in I_WRAP_SONAME_FNNAME_ZU()
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_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/date/lib/
H A Dtimelib.c232 int timelib_strcasecmp(const char *s1, const char *s2) in timelib_strcasecmp() argument
236 size_t len2 = strlen(s2); in timelib_strcasecmp()
239 if (s1 == s2) { in timelib_strcasecmp()
246 c2 = timelib_tolower(*(unsigned char *)s2++); in timelib_strcasecmp()
255 int timelib_strncasecmp(const char *s1, const char *s2, size_t length) in timelib_strncasecmp() argument
259 size_t len2 = strlen(s2); in timelib_strncasecmp()
262 if (s1 == s2) { in timelib_strncasecmp()
268 c2 = timelib_tolower(*(unsigned char *)s2++); in timelib_strncasecmp()
H A Dtimelib_private.h137 int timelib_strcasecmp(const char *s1, const char *s2);
138 int timelib_strncasecmp(const char *s1, const char *s2, size_t n);
/PHP-7.4/ext/date/tests/
H A Dbug62852_var2.phpt7 $s2 = 'O:3:"Foo":3:{s:4:"date";s:20:"10007-06-07 03:51:49";s:13:"timezone_type";i:3;s:8:"timezone";…
20 unserialize( $s2 );
H A Dbug62852_var3.phpt7 $s2 = 'O:3:"Foo":3:{s:4:"date";s:19:"0000-00-00 00:00:00";s:13:"timezone_type";i:0;s:8:"timezone";s…
20 unserialize( $s2 );
/PHP-7.4/ext/fileinfo/libmagic/
H A Dapprentice.c3400 unsigned int s3, s2, s1, s0; local
3419 s2 = s[2];
3421 len = (s3 << 24) | (s2 << 16) | (s1 << 8) | s0;
3426 s2 = s[2];
3428 len = (s0 << 24) | (s1 << 16) | (s2 << 8) | s3;
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()
H A Dstrcasestr.c49 _strncasecmp(const char *s1, const char *s2, size_t n) in _strncasecmp() argument
53 *us2 = (const unsigned char *)s2; in _strncasecmp()
/PHP-7.4/ext/fileinfo/tests/
H A Dmagic3187 >>>>3 regex \^(lh[0-9a-ex]|lz[s2-8]|pm[012]|pc1) \b
H A Dmagic私はガラスを食べられます3187 >>>>3 regex \^(lh[0-9a-ex]|lz[s2-8]|pm[012]|pc1) \b

Completed in 146 milliseconds

12345