/PHP-8.0/ext/gd/libgd/ |
H A D | gd_rotate.c | 60 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewX() 61 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewX() 62 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewX() 63 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewX() 151 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewY() 152 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewY() 153 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewY() 154 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewY() 214 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90() 261 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180() [all …]
|
H A D | gd_matrix.c | 30 double x = src->x; in gdAffineApplyToPointF() 60 double r_det = (src[0] * src[3] - src[1] * src[2]); in gdAffineInvert() 71 dst[4] = -src[4] * dst[0] - src[5] * dst[2]; in gdAffineInvert() 72 dst[5] = -src[4] * dst[1] - src[5] * dst[3]; in gdAffineInvert() 95 dst[0] = flip_h ? - src[0] : src[0]; in gdAffineFlip() 96 dst[1] = flip_h ? - src[1] : src[1]; in gdAffineFlip() 97 dst[2] = flip_v ? - src[2] : src[2]; in gdAffineFlip() 98 dst[3] = flip_v ? - src[3] : src[3]; in gdAffineFlip() 99 dst[4] = flip_h ? - src[4] : src[4]; in gdAffineFlip() 100 dst[5] = flip_v ? - src[5] : src[5]; in gdAffineFlip() [all …]
|
H A D | gd_filter.c | 122 if (src==NULL) { in gdImageNegate() 130 pxl = f (src, x, y); in gdImageNegate() 158 if (src==NULL) { in gdImageGrayScale() 243 if (src==NULL) { in gdImageContrast() 299 if (src == NULL) { in gdImageColor() 344 if (src==NULL) { in gdImageConvolution() 349 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageConvolution() 358 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy); in gdImageConvolution() 411 if (src==NULL) { in gdImageSelectiveBlur() 416 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageSelectiveBlur() [all …]
|
H A D | gd_jpeg.c | 564 my_src_ptr src = (my_src_ptr) cinfo->src; in init_source() local 570 src->start_of_file = TRUE; in init_source() 611 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local 620 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer() 643 src->pub.next_input_byte = src->buffer; in fill_input_buffer() 665 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local 706 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source() 719 my_src_ptr src; in jpeg_gdIOCtx_src() local 731 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src() 736 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src() [all …]
|
/PHP-8.0/ext/bcmath/ |
H A D | config.m4 | 8 libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/rais… 9 libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c lib… 10 …cmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src… 11 libbcmath/src/rmzero.c libbcmath/src/str2num.c, 12 $ext_shared,,-I@ext_srcdir@/libbcmath/src -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) 13 PHP_ADD_BUILD_DIR($ext_builddir/libbcmath/src)
|
/PHP-8.0/main/ |
H A D | strlcat.c | 64 PHPAPI size_t php_strlcat(dst, src, siz) in php_strlcat() argument 66 const char *src; 70 const char *s = src; 81 return(dlen + strlen(src)); 82 while (*src != '\0') { 84 *dst++ = *src; 87 src++; 91 return(dlen + (src - s));
|
H A D | strlcpy.c | 62 PHPAPI size_t php_strlcpy(dst, src, siz) in php_strlcpy() argument 64 const char *src; 67 const char *s = src; 73 if ((*dst++ = *src++) == 0) 82 while (*src++) 91 return((uintptr_t)src - (uintptr_t)s - 1);
|
/PHP-8.0/ext/gd/tests/ |
H A D | bug38179.phpt | 9 $src = imagecreate(5,5); 10 $c0 = imagecolorallocate($src, 255,255,255); 11 $c1 = imagecolorallocatealpha($src, 255,0,0,70); 13 imagealphablending($src, 0); 14 imagefill($src, 0,0, $c1); 19 imagecopy($dst_tc, $src, 0,0, 0,0, imagesx($src), imagesy($src)); 24 imagedestroy($src); imagedestroy($dst_tc);
|
H A D | bug79068.phpt | 9 $src = imagecreatetruecolor(100, 100); 10 imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff); 11 imageline($src, 10, 10, 90, 90, 0x000000); 12 imagesetinterpolation($src, IMG_BSPLINE); 13 imageaffine($src, [1, 1, 1, 1, 1, 1]); 14 var_dump(imagegetinterpolation($src) === IMG_BSPLINE);
|
H A D | bug73272.phpt | 11 $src = imagecreatetruecolor(100, 100); 12 imagefilledrectangle($src, 0,0, 99,99, 0xFFFFFF); 13 imageellipse($src, 49,49, 40,40, 0x000000); 15 imagesetinterpolation($src, IMG_NEAREST_NEIGHBOUR); 16 imagescale($src, 200, 200, IMG_BILINEAR_FIXED); 17 $dst = imagerotate($src, 60, 0xFFFFFF);
|
H A D | bug73281.phpt | 12 $src = imagecreatetruecolor(100, 100); 13 $white = imagecolorallocate($src, 255, 255, 255); 14 imagefilledrectangle($src, 0,0, 99,99, $white); 15 $dst = imagescale($src, 200, 200, IMG_BILINEAR_FIXED); 22 $src = imagecreate(100, 100); 23 $white = imagecolorallocate($src, 255, 255, 255); 24 imagefilledrectangle($src, 0,0, 99,99, $white); 25 $dst = imagescale($src, 200, 200, IMG_BILINEAR_FIXED);
|
H A D | bug73291.phpt | 10 $src = imagecreatetruecolor(255, 255); 11 $white = imagecolorallocate($src, 255, 255, 255); 12 imagefilledrectangle($src, 0, 0, 254, 254, $white); 15 $color = imagecolorallocate($src, $i, $i, $i); 16 imagefilledellipse($src, 127, 127, $i, $i, $color); 20 $dst = imagecropauto($src, IMG_CROP_THRESHOLD, $threshold, $white);
|
H A D | bug79676.phpt | 17 $src = imagecreatetruecolor($size, $size); 18 imagefilledrectangle($src, 0, 0, $size - 1 , $size - 1, 0xff00ff); 20 test($src, 'No scaling'); 21 test(imagescale($src, $size * 2, $size * 2), 'Scale 200%, default mode'); 22 test(imagescale($src, $size / 2, $size / 2), 'Scale 50%, default mode'); 23 test(imagescale($src, $size * 2, $size * 2, IMG_BICUBIC), 'Scale 200%, IMG_BICUBIC mode'); 24 test(imagescale($src, $size / 2, $size / 2, IMG_BICUBIC), 'Scale 50%, IMG_BICUBIC mode');
|
/PHP-8.0/Zend/ |
H A D | zend_smart_str.h | 25 smart_str_appendl_ex((dest), (src), strlen(src), (what)) 26 #define smart_str_appends(dest, src) \ argument 27 smart_str_appendl((dest), (src), strlen(src)) 32 #define smart_str_appendl(dest, src, len) \ argument 34 #define smart_str_append(dest, src) \ argument 35 smart_str_append_ex((dest), (src), 0) 38 #define smart_str_sets(dest, src) \ argument 39 smart_str_setl((dest), (src), strlen(src)); 124 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex() 128 if (src->s && ZSTR_LEN(src->s)) { in smart_str_append_smart_str_ex() [all …]
|
H A D | zend_smart_string.h | 29 smart_string_appendl_ex((str), (src), strlen(src), (what)) 30 #define smart_string_appends(str, src) \ argument 31 smart_string_appendl((str), (src), strlen(src)) 32 #define smart_string_append_ex(str, src, what) \ argument 34 ((smart_string *)(src))->len, (what)); 35 #define smart_string_sets(str, src) \ argument 36 smart_string_setl((str), (src), strlen(src)); 42 #define smart_string_appendl(str, src, len) \ argument 44 #define smart_string_append(str, src) \ argument 45 smart_string_append_ex((str), (src), 0) [all …]
|
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_str.h | 6 static inline char *str_purify_filename(char *dst, char *src, size_t size) /* {{{ */ in str_purify_filename() argument 13 for (; d < end && *src; ++d, ++src) { in str_purify_filename() 14 if (* (unsigned char *) src < ' ' || * (unsigned char *) src > '\x7f') { in str_purify_filename() 17 *d = *src; in str_purify_filename()
|
/PHP-8.0/ext/standard/tests/file/ |
H A D | stream_copy_to_stream.phpt | 10 $src = fopen($initial_file, 'r'); 15 fclose($src); fclose($dest); 22 $src = fopen($initial_file, 'r'); 27 fclose($src); fclose($dest); 37 $src = fopen($initial_file, 'r'); 42 fclose($src); fclose($dest); 53 $src = fopen($initial_file, 'r'); 57 fclose($src); fclose($dest); 72 fclose($src); fclose($dest); 88 fclose($src); fclose($dest); [all …]
|
H A D | bug81145.phpt | 9 $src = __DIR__ . "/bug81145_src.bin"; 11 exec("fallocate -l " . (SIZE_4G-0x100) . " " . escapeshellarg($src), $output, $status); 18 $src = __DIR__ . "/bug81145_src.bin"; 24 exec("fallocate -l " . (SIZE_4G-0x100) . " " . escapeshellarg($src)); 26 exec("fsutil file createnew " . escapeshellarg($src) . " " . (SIZE_4G-0x100)); 28 $fp = fopen($src, "ab"); 31 copy($src, $dst); 32 if (filesize($src) !== filesize($dst)) { 35 $f1 = fopen($src,'rb') or die("src open failed");
|
H A D | bug38086.phpt | 10 $src = fopen($initial_file, 'r'); 11 stream_filter_append($src, "string.rot13", STREAM_FILTER_READ); 14 var_dump(stream_copy_to_stream($src, $dest)); 15 fclose($src); fclose($dest); 24 $src = fopen($initial_file, 'r'); 25 stream_filter_append($src, "string.rot13", STREAM_FILTER_READ); 28 var_dump(stream_copy_to_stream($src, $dest, 10000)); 29 fclose($src); fclose($dest);
|
/PHP-8.0/ext/opcache/Optimizer/ |
H A D | block_pass.c | 156 if (src && in zend_optimize_block() 185 if (src && in zend_optimize_block() 208 if (src && in zend_optimize_block() 257 if (src) { in zend_optimize_block() 293 if (src && in zend_optimize_block() 455 if (src) { in zend_optimize_block() 515 src->op1_type = src->op2_type; in zend_optimize_block() 518 src->op1.num = src->op2.num; in zend_optimize_block() 533 src->op1_type = src->op2_type; in zend_optimize_block() 536 src->op1.num = src->op2.num; in zend_optimize_block() [all …]
|
/PHP-8.0/ext/standard/ |
H A D | uuencode.c | 64 PHPAPI zend_string *php_uuencode(const char *src, size_t src_len) /* {{{ */ in php_uuencode() argument 76 s = (unsigned char *) src; in php_uuencode() 129 PHPAPI zend_string *php_uudecode(const char *src, size_t src_len) /* {{{ */ in php_uudecode() argument 142 s = src; in php_uudecode() 143 e = src + src_len; in php_uudecode() 206 zend_string *src; in PHP_FUNCTION() local 209 Z_PARAM_STR(src) in PHP_FUNCTION() 212 RETURN_STR(php_uuencode(ZSTR_VAL(src), ZSTR_LEN(src))); in PHP_FUNCTION() 219 zend_string *src; in PHP_FUNCTION() local 223 Z_PARAM_STR(src) in PHP_FUNCTION() [all …]
|
/PHP-8.0/ext/filter/tests/ |
H A D | 049.phpt | 18 foreach ($test as $src => $dst) { 19 $out = filter_var($src, FILTER_VALIDATE_FLOAT, array("flags"=>FILTER_FLAG_ALLOW_THOUSAND)); 22 echo "$src -> false != $dst\n"; 24 echo "$src -> $out != false\n"; 26 echo "$src -> $out != $dst\n";
|
H A D | 050.phpt | 13 foreach ($test as $src => $dst) { 14 $out = filter_var($src, FILTER_VALIDATE_FLOAT); 17 echo "$src -> false != $dst\n"; 19 echo "$src -> $out != false\n"; 21 echo "$src -> $out != $dst\n";
|
/PHP-8.0/ext/intl/ |
H A D | intl_convert.c | 50 const char* src, size_t src_len, in intl_convert_utf8_to_utf16() argument 68 u_strFromUTF8( *target, *target_len, &dst_len, src, (int32_t)src_len, status ); in intl_convert_utf8_to_utf16() 90 u_strFromUTF8( dst_buf, dst_len+1, NULL, src, src_len, status ); in intl_convert_utf8_to_utf16() 117 const UChar* src, int32_t src_len, in intl_convert_utf16_to_utf8() argument 125 u_strToUTF8( NULL, 0, &dst_len, src, src_len, status ); in intl_convert_utf16_to_utf8() 139 u_strToUTF8( ZSTR_VAL(dst), dst_len, NULL, src, src_len, status ); in intl_convert_utf16_to_utf8()
|
/PHP-8.0/ext/session/tests/ |
H A D | 021.phpt | 11 url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset=" 33 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form="); 42 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry"); 51 ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src");
|