Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 25 of 75) sorted by last modified time

123

/PHP-7.4/ext/mbstring/
H A Dmbstring.c713 char *p, *p1, *p2, *endp, *tmpstr; in php_mb_parse_encoding_list() local
737 while ((p2 = (char*)php_memnstr(p1, ",", 1, endp)) != NULL) { in php_mb_parse_encoding_list()
738 p1 = p2 + 1; in php_mb_parse_encoding_list()
749 p2 = p = (char*)php_memnstr(p1, ",", 1, endp); in php_mb_parse_encoding_list()
784 p1 = p2 + 1; in php_mb_parse_encoding_list()
785 } while (n < size && p2 != NULL); in php_mb_parse_encoding_list()
/PHP-7.4/ext/gd/libgd/
H A Dgd.c2867 int p1, p2; in gdImageCompare() local
2906 p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y); in gdImageCompare()
2908 if (gdImageRed(im1, p1) != gdImageRed(im2, p2)) { in gdImageCompare()
2912 if (gdImageGreen(im1, p1) != gdImageGreen(im2, p2)) { in gdImageCompare()
2916 if (gdImageBlue(im1, p1) != gdImageBlue(im2, p2)) { in gdImageCompare()
2922 if (gdImageAlpha(im1, p1) != gdImageAlpha(im2, p2)) { in gdImageCompare()
/PHP-7.4/ext/standard/
H A Dstring.c1064 const char *p2 = php_memnstr(ZSTR_VAL(str), ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode() local
1067 if (p2 == NULL) { in php_explode()
1072 size_t l = p2 - p1; in php_explode()
1079 ZVAL_STRINGL(&tmp, p1, p2 - p1); in php_explode()
1082 p1 = p2 + ZSTR_LEN(delim); in php_explode()
1083 p2 = php_memnstr(p1, ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode()
1084 } while (p2 != NULL && --limit > 1); in php_explode()
1104 if (p2 == NULL) { in php_explode_negative_limit()
1120 positions[found++] = p1 = p2 + ZSTR_LEN(delim); in php_explode_negative_limit()
1121 p2 = php_memnstr(p1, ZSTR_VAL(delim), ZSTR_LEN(delim), endp); in php_explode_negative_limit()
[all …]
H A Dversioning.c127 char *p1, *p2, *n1, *n2; in php_version_compare() local
149 p2 = n2 = ver2; in php_version_compare()
150 while (*p1 && *p2 && n1 && n2) { in php_version_compare()
154 if ((n2 = strchr(p2, '.')) != NULL) { in php_version_compare()
157 if (isdigit(*p1) && isdigit(*p2)) { in php_version_compare()
160 l2 = strtol(p2, NULL, 10); in php_version_compare()
162 } else if (!isdigit(*p1) && !isdigit(*p2)) { in php_version_compare()
164 compare = compare_special_version_forms(p1, p2); in php_version_compare()
180 p2 = n2 + 1; in php_version_compare()
191 if (isdigit(*p2)) { in php_version_compare()
[all …]
H A Dquot_print.c56 register unsigned char *p2; in php_quot_print_decode() local
98 i = length; p1 = str; p2 = (unsigned char*)ZSTR_VAL(retval); in php_quot_print_decode()
114 *(p2++) = (h_nbl << 4) | l_nbl, decoded_len++; in php_quot_print_decode()
133 *(p2++) = (replace_us_by_ws == *p1 ? '\x20': *p1); in php_quot_print_decode()
138 *p2 = '\0'; in php_quot_print_decode()
H A Dlevenshtein.c31 zend_long *p1, *p2, *tmp; in reference_levdist() local
46 p2 = safe_emalloc((l2 + 1), sizeof(zend_long), 0); in reference_levdist()
52 p2[0] = p1[0] + cost_del; in reference_levdist()
60 c2 = p2[i2] + cost_ins; in reference_levdist()
64 p2[i2 + 1] = c0; in reference_levdist()
67 p1 = p2; in reference_levdist()
68 p2 = tmp; in reference_levdist()
73 efree(p2); in reference_levdist()
/PHP-7.4/Zend/
H A Dzend_object_handlers.c1646 zval *p2 = OBJ_PROP(zobj2, info->offset); in zend_std_compare_objects() local
1653 if (Z_TYPE_P(p2) != IS_UNDEF) { in zend_std_compare_objects()
1656 if (compare_function(&result, p1, p2)==FAILURE) { in zend_std_compare_objects()
1669 if (Z_TYPE_P(p2) != IS_UNDEF) { in zend_std_compare_objects()
H A Dzend_hash.c2548 Bucket *p1 = ht1->arData + idx1, *p2; in zend_hash_compare_impl() local
2556 p2 = ht2->arData + idx2; in zend_hash_compare_impl()
2557 if (Z_TYPE(p2->val) != IS_UNDEF) break; in zend_hash_compare_impl()
2560 if (p1->key == NULL && p2->key == NULL) { /* numeric indices */ in zend_hash_compare_impl()
2561 if (p1->h != p2->h) { in zend_hash_compare_impl()
2562 return p1->h > p2->h ? 1 : -1; in zend_hash_compare_impl()
2564 } else if (p1->key != NULL && p2->key != NULL) { /* string indices */ in zend_hash_compare_impl()
2565 if (ZSTR_LEN(p1->key) != ZSTR_LEN(p2->key)) { in zend_hash_compare_impl()
2566 return ZSTR_LEN(p1->key) > ZSTR_LEN(p2->key) ? 1 : -1; in zend_hash_compare_impl()
2569 result = memcmp(ZSTR_VAL(p1->key), ZSTR_VAL(p2->key), ZSTR_LEN(p1->key)); in zend_hash_compare_impl()
[all …]
H A Dzend_strtod.c2167 dshift(b, p2) Bigint *b; int p2; in dshift() argument
2173 if (p2 > 0)
2174 rv -= p2;
2346 p2 = Emin - P + 1;
2359 --p2;
2368 p2 -= bc->scale;
2377 p2 = Emin;
2405 p2 -= p5 + i;
2414 if (p2 > 0) {
2415 b2 = p2;
[all …]
/PHP-7.4/ext/ftp/tests/
H A Dserver.inc461 $p2 = $pasv_port % ((int) 1 << 8);
462 $p1 = ($pasv_port-$p2)/((int) 1 << 8);
463 fputs($s, "227 Entering Passive Mode. (127,0,0,1,{$p1},{$p2})\r\n");
/PHP-7.4/ext/spl/
H A Dspl_directory.c403 char *p1, *p2; in spl_filesystem_info_set_filename() local
419 p2 = strrchr(intern->file_name, '\\'); in spl_filesystem_info_set_filename()
421 p2 = 0; in spl_filesystem_info_set_filename()
423 if (p1 || p2) { in spl_filesystem_info_set_filename()
424 intern->_path_len = ((p1 > p2 ? p1 : p2) - intern->file_name); in spl_filesystem_info_set_filename()
2265 char *p1, *p2; in SPL_METHOD() local
2300 p2 = strrchr(tmp_path, '\\'); in SPL_METHOD()
2302 p2 = 0; in SPL_METHOD()
2304 if (p1 || p2) { in SPL_METHOD()
2305 intern->_path_len = ((p1 > p2 ? p1 : p2) - tmp_path); in SPL_METHOD()
/PHP-7.4/ext/session/
H A Dsession.c632 char *p2; in PHP_INI_MH() local
634 if ((p2 = strchr(p, ';'))) { in PHP_INI_MH()
635 p = p2 + 1; in PHP_INI_MH()
/PHP-7.4/win32/
H A Dsendmail.c1016 char *p1 = address, *p2; in get_angle_addr() local
1033 p2 = ++p1; in get_angle_addr()
1034 while ((p2 = strpbrk(p2, ">\"\\")) != NULL) { in get_angle_addr()
1035 if (*p2 == '\\' && in_quotes) { in get_angle_addr()
1036 if (p2[1] == '\0') { in get_angle_addr()
1040 p2++; in get_angle_addr()
1041 } else if (*p2 == '"') { in get_angle_addr()
1043 } else if (*p2 == '>' && !in_quotes) { in get_angle_addr()
1046 p2++; in get_angle_addr()
1048 if (p2 == NULL) return NULL; in get_angle_addr()
[all …]
/PHP-7.4/ext/ffi/
H A Dffi.c1778 char *p1, *p2; in zend_ffi_cdata_do_operation() local
1789 p2 = (char*)(*(void**)cdata2->ptr); in zend_ffi_cdata_do_operation()
1792 p2 = cdata2->ptr; in zend_ffi_cdata_do_operation()
1796 (zend_long)(p1 - p2) / (zend_long)t1->size); in zend_ffi_cdata_do_operation()
/PHP-7.4/ext/soap/
H A Dsoap.c495 char *p2; in PHP_INI_MH() local
497 if ((p2 = strchr(p, ';'))) { in PHP_INI_MH()
498 p = p2 + 1; in PHP_INI_MH()
/PHP-7.4/ext/pcre/pcre2lib/sljit/
H A DsljitNativeTILEGX_64.c362 #define BUNDLE_FORMAT_MASK(p0, p1, p2) \ argument
363 ((p0) | ((p1) << 8) | ((p2) << 16))
365 #define BUNDLE_FORMAT(p0, p1, p2) \ argument
370 (tilegx_pipeline)(p2) \
372 BUNDLE_FORMAT_MASK(1 << (p0), 1 << (p1), (1 << (p2))) \
/PHP-7.4/build/
H A Dphp_cxx_compile_stdcxx.m4802 pair (T1 p1, T2 p2)
804 m2 {p2}
/PHP-7.4/ext/standard/tests/file/windows_mb_path/
H A Dtest_long_path_2.phpt33 $p2 = realpath($p);
34 var_dump($p2);
36 var_dump(substr($p, 0, strlen($p) - 1) == $p2);
/PHP-7.4/ext/reflection/tests/
H A Dproperty_exists.phpt23 foreach($props as $p2) {
24 echo $oc, '::$' , $p2, "\n";
25 var_dump(property_exists($oc, $p2));
37 foreach($props as $p2) {
38 echo $oc, '::$' , $p2, "\n";
39 var_dump(property_exists($oc, $p2));
51 foreach($props as $p2) {
52 echo $oc, '::$' , $p2, "\n";
53 var_dump(property_exists($oc, $p2));
74 foreach($pr as $p2) {
[all …]
/PHP-7.4/ext/phar/tests/zip/
H A Dlargezip.phpt20 $p2 = new Phar($fname2);
21 var_dump(strlen($p2['big']->getContent()));
H A Dphar_setalias.phpt41 $p2 = new Phar($fname2);
42 echo $p2->getAlias(), "\n";
43 $p2->compressFiles(Phar::BZ2);
45 $p2->setAlias('unused2');
/PHP-7.4/ext/phar/tests/tar/
H A Dbignames.phpt19 $p2 = new PharData($fname2);
20 echo $p2[str_repeat('a', 100) . '/b']->getContent() . "\n";
21 echo $p2[str_repeat('a', 155) . '/' . str_repeat('b', 100)]->getContent() . "\n";
24 $p2[str_repeat('a', 400)] = 'yuck';
30 $p2 = new PharData($fname3);
31 $p2[str_repeat('a', 101)] = 'yuck';
37 $p2 = new PharData($fname4);
38 $p2[str_repeat('b', 160) . '/' . str_repeat('a', 90)] = 'yuck';
/PHP-7.4/ext/phar/tests/
H A Dphar_copy.phpt40 $p2 = new Phar($fname2);
42 echo 'a: ' , file_get_contents($p2['a']->getPathName());
43 echo 'b: ' ,file_get_contents($p2['b']->getPathName());
44 echo 'c: ' ,file_get_contents($p2['c']->getPathName()), $p2['c']->getMetaData(), "\n";
47 $p2->copy('notexisting', 'another');
52 $p2->copy('a', 'b');
56 $p2['a']->compress(Phar::GZ);
57 $p2->copy('a', 'd');
58 echo $p2['d']->getContent() . "\n";
60 $p2->copy('d', '.phar/stub.php');
[all …]
/PHP-7.4/ext/oci8/tests/
H A Dbind_sqltint.phpt130 unset($p2);
132 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
139 $p2 = null;
141 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
150 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
159 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
168 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
177 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
186 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
195 oci_bind_by_name($s, ":p2", $p2, -1, SQLT_INT);
[all …]
/PHP-7.4/ext/intl/collator/
H A Dcollator_sort.c254 static int collator_cmp_sort_keys( const void *p1, const void *p2 ) in collator_cmp_sort_keys() argument
257 char* key2 = ((collator_sort_key_index_t*)p2)->key; in collator_cmp_sort_keys()

Completed in 279 milliseconds

123