Home
last modified time | relevance | path

Searched refs:s1 (Results 1 – 25 of 139) sorted by path

123456

/PHP-7.4/Zend/tests/
H A Dadd_006.phpt9 $s1 = "this is a string";
14 $c = $i + $s1;
26 $c = $s1 + $i;
H A Dadd_007.phpt8 $s1 = "some string";
11 var_dump($a + $s1);
16 $c = $a + $s1;
H A Dand_001.phpt7 $s1 = "234";
9 var_dump($s & $s1);
12 $s1 = "some";
14 var_dump($s & $s1);
17 $s1 = "some";
19 var_dump($s & $s1);
22 $s1 = "some long";
24 var_dump($s & $s1);
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"));
H A Dnot_001.phpt8 $s1 = "test";
14 $s1 = ~$s2;
15 var_dump(bin2hex($s1));
H A Dor_001.phpt7 $s1 = "2323.555";
9 var_dump($s | $s1);
10 var_dump($s1 | $s);
13 $s1 = "test";
15 var_dump($s | $s1);
H A Dself_and.phpt7 $s1 = "test";
15 $s1 &= 11;
16 var_dump($s1);
H A Dself_mod.phpt7 $s1 = "test";
13 $s1 %= 11;
14 var_dump($s1);
H A Dself_or.phpt7 $s1 = "test";
15 $s1 |= 11;
16 var_dump($s1);
H A Dself_xor.phpt7 $s1 = "test";
15 $s1 ^= 11;
16 var_dump($s1);
H A Dshift_001.phpt7 $s1 = "test";
13 $s1 <<= 1;
14 var_dump($s1);
H A Dshift_002.phpt7 $s1 = "test";
13 $s1 >>= 1;
14 var_dump($s1);
H A Dxor_002.phpt7 $s1 = "234";
8 var_dump(bin2hex($s ^ $s1));
11 $s1 = "234";
12 var_dump(bin2hex($s ^ $s1));
15 $s1 = "test";
16 var_dump(bin2hex($s ^ $s1));
19 $s1 = "test";
20 var_dump(bin2hex($s ^ $s1));
23 $s1 = "test long";
24 var_dump(bin2hex($s ^ $s1));
/PHP-7.4/Zend/
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_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_long.h65 # define ZEND_STRTOL(s0, s1, base) _strtoi64((s0), (s1), (base)) argument
66 # define ZEND_STRTOUL(s0, s1, base) _strtoui64((s0), (s1), (base)) argument
77 # define ZEND_STRTOL(s0, s1, base) strtoll((s0), (s1), (base)) argument
78 # define ZEND_STRTOUL(s0, s1, base) strtoull((s0), (s1), (base)) argument
84 # define ZEND_STRTOL(s0, s1, base) strtol((s0), (s1), (base)) argument
85 # define ZEND_STRTOUL(s0, s1, base) strtoul((s0), (s1), (base)) 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()
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_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_string.c328 ZEND_API zend_bool ZEND_FASTCALL zend_string_equal_val(zend_string *s1, zend_string *s2) in zend_string_equal_val() argument
330 char *ptr = ZSTR_VAL(s1); in zend_string_equal_val()
331 size_t delta = (char*)s2 - (char*)s1; in zend_string_equal_val()
332 size_t len = ZSTR_LEN(s1); in zend_string_equal_val()
368 size_t len = ZSTR_LEN(s1); in I_WRAP_SONAME_FNNAME_ZU()
369 char *ptr1 = ZSTR_VAL(s1); in I_WRAP_SONAME_FNNAME_ZU()
398 char *ptr = ZSTR_VAL(s1); in zend_string_equal_val()
399 size_t delta = (char*)s2 - (char*)s1; in zend_string_equal_val()
400 size_t len = ZSTR_LEN(s1); in zend_string_equal_val()
436 size_t len = ZSTR_LEN(s1); in I_WRAP_SONAME_FNNAME_ZU()
[all …]
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.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/date/lib/
H A Dtimelib.c232 int timelib_strcasecmp(const char *s1, const char *s2) in timelib_strcasecmp() argument
235 size_t len1 = strlen(s1); in timelib_strcasecmp()
239 if (s1 == s2) { in timelib_strcasecmp()
245 c1 = timelib_tolower(*(unsigned char *)s1++); in timelib_strcasecmp()
255 int timelib_strncasecmp(const char *s1, const char *s2, size_t length) in timelib_strncasecmp() argument
258 size_t len1 = strlen(s1); in timelib_strncasecmp()
262 if (s1 == s2) { in timelib_strncasecmp()
267 c1 = timelib_tolower(*(unsigned char *)s1++); 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.phpt7 $s1 = 'O:8:"DateTime":3:{s:4:"date";s:20:"10007-06-07 03:51:49";s:13:"timezone_type";i:3;s:8:"timez…
10 unserialize( $s1 );
/PHP-7.4/ext/dom/tests/
H A DDOMDocument_documentURI_basic.phpt13 <!DOCTYPE s1 PUBLIC "http://www.ibm.com/example.dtd" "example.dtd">
14 <s1>foo</s1>';

Completed in 53 milliseconds

123456