/PHP-7.4/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 | 32 x = src->x; in gdAffineApplyToPointF() 62 double r_det = (src[0] * src[3] - src[1] * src[2]); in gdAffineInvert() 73 dst[4] = -src[4] * dst[0] - src[5] * dst[2]; in gdAffineInvert() 74 dst[5] = -src[4] * dst[1] - src[5] * dst[3]; in gdAffineInvert() 97 dst[0] = flip_h ? - src[0] : src[0]; in gdAffineFlip() 98 dst[1] = flip_h ? - src[1] : src[1]; in gdAffineFlip() 99 dst[2] = flip_v ? - src[2] : src[2]; in gdAffineFlip() 100 dst[3] = flip_v ? - src[3] : src[3]; in gdAffineFlip() 101 dst[4] = flip_h ? - src[4] : src[4]; in gdAffineFlip() 102 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 | 567 my_src_ptr src = (my_src_ptr) cinfo->src; in init_source() local 573 src->start_of_file = TRUE; in init_source() 614 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local 623 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer() 646 src->pub.next_input_byte = src->buffer; in fill_input_buffer() 668 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local 709 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source() 722 my_src_ptr src; in jpeg_gdIOCtx_src() local 734 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src() 739 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src() [all …]
|
/PHP-7.4/ext/bcmath/ |
H A D | config.m4 | 8 …ibbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outo… 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-7.4/main/ |
H A D | strlcat.c | 66 PHPAPI size_t php_strlcat(dst, src, siz) in php_strlcat() argument 68 const char *src; 72 const char *s = src; 83 return(dlen + strlen(src)); 84 while (*src != '\0') { 86 *dst++ = *src; 89 src++; 93 return(dlen + (src - s));
|
H A D | strlcpy.c | 64 PHPAPI size_t php_strlcpy(dst, src, siz) in php_strlcpy() argument 66 const char *src; 69 const char *s = src; 75 if ((*dst++ = *src++) == 0) 84 while (*src++) 93 return((uintptr_t)src - (uintptr_t)s - 1);
|
/PHP-7.4/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 | 11 $src = imagecreatetruecolor(100, 100); 12 imagefilledrectangle($src, 0, 0, 99, 99, 0xffffff); 13 imageline($src, 10, 10, 90, 90, 0x000000); 14 imagesetinterpolation($src, IMG_BSPLINE); 15 imageaffine($src, [1, 1, 1, 1, 1, 1]); 16 $dst = imagerotate($src, 80, 0xffffff);
|
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-7.4/Zend/ |
H A D | zend_smart_str.h | 27 smart_str_appendl_ex((dest), (src), strlen(src), (what)) 28 #define smart_str_appends(dest, src) \ argument 29 smart_str_appendl((dest), (src), strlen(src)) 34 #define smart_str_appendl(dest, src, len) \ argument 36 #define smart_str_append(dest, src) \ argument 37 smart_str_append_ex((dest), (src), 0) 40 #define smart_str_sets(dest, src) \ argument 41 smart_str_setl((dest), (src), strlen(src)); 126 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex() 130 if (src->s && ZSTR_LEN(src->s)) { in smart_str_append_smart_str_ex() [all …]
|
H A D | zend_smart_string.h | 31 smart_string_appendl_ex((str), (src), strlen(src), (what)) 32 #define smart_string_appends(str, src) \ argument 33 smart_string_appendl((str), (src), strlen(src)) 34 #define smart_string_append_ex(str, src, what) \ argument 36 ((smart_string *)(src))->len, (what)); 37 #define smart_string_sets(str, src) \ argument 38 smart_string_setl((str), (src), strlen(src)); 44 #define smart_string_appendl(str, src, len) \ argument 46 #define smart_string_append(str, src) \ argument 47 smart_string_append_ex((str), (src), 0) [all …]
|
/PHP-7.4/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-7.4/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-7.4/ext/standard/ |
H A D | uuencode.c | 77 s = (unsigned char *) src; in php_uuencode() 138 s = src; in php_uudecode() 139 e = src + src_len; in php_uudecode() 203 zend_string *src; in PHP_FUNCTION() local 206 Z_PARAM_STR(src) in PHP_FUNCTION() 208 if (ZSTR_LEN(src) < 1) { RETURN_FALSE; } in PHP_FUNCTION() 210 RETURN_STR(php_uuencode(ZSTR_VAL(src), ZSTR_LEN(src))); in PHP_FUNCTION() 218 zend_string *src; in PHP_FUNCTION() local 222 Z_PARAM_STR(src) in PHP_FUNCTION() 224 if (ZSTR_LEN(src) < 1) { RETURN_FALSE; } in PHP_FUNCTION() [all …]
|
/PHP-7.4/ext/filter/tests/ |
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";
|
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";
|
/PHP-7.4/ext/opcache/Optimizer/ |
H A D | block_pass.c | 187 if (src && in zend_optimize_block() 262 if (src && in zend_optimize_block() 284 if (src && in zend_optimize_block() 343 if (src && in zend_optimize_block() 354 if (src && in zend_optimize_block() 506 if (src) { in zend_optimize_block() 566 src->op1_type = src->op2_type; in zend_optimize_block() 569 src->op1.num = src->op2.num; in zend_optimize_block() 584 src->op1_type = src->op2_type; in zend_optimize_block() 587 src->op1.num = src->op2.num; in zend_optimize_block() [all …]
|
/PHP-7.4/ext/intl/ |
H A D | intl_convert.c | 52 const char* src, size_t src_len, in intl_convert_utf8_to_utf16() argument 70 u_strFromUTF8( *target, *target_len, &dst_len, src, (int32_t)src_len, status ); in intl_convert_utf8_to_utf16() 92 u_strFromUTF8( dst_buf, dst_len+1, NULL, src, src_len, status ); in intl_convert_utf8_to_utf16() 119 const UChar* src, int32_t src_len, in intl_convert_utf16_to_utf8() argument 127 u_strToUTF8( NULL, 0, &dst_len, src, src_len, status ); in intl_convert_utf16_to_utf8() 141 u_strToUTF8( ZSTR_VAL(dst), dst_len, NULL, src, src_len, status ); in intl_convert_utf16_to_utf8()
|
/PHP-7.4/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");
|