Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 193) sorted by relevance

12345678

/PHP-5.6/ext/zip/lib/
H A Dzip_source_open.c41 zip_source_open(struct zip_source *src) in zip_source_open() argument
45 if (src->is_open) { in zip_source_open()
46 src->error_source = ZIP_LES_INVAL; in zip_source_open()
50 if (src->src == NULL) { in zip_source_open()
51 if (src->cb.f(src->ud, NULL, 0, ZIP_SOURCE_OPEN) < 0) in zip_source_open()
55 if (zip_source_open(src->src) < 0) { in zip_source_open()
60 ret = src->cb.l(src->src, src->ud, NULL, 0, ZIP_SOURCE_OPEN); in zip_source_open()
63 zip_source_close(src->src); in zip_source_open()
66 src->error_source = ZIP_LES_LOWER; in zip_source_open()
68 src->error_source = ZIP_LES_UPPER; in zip_source_open()
[all …]
H A Dzip_source_free.c43 zip_source_free(struct zip_source *src) in zip_source_free() argument
45 if (src == NULL) in zip_source_free()
48 if (src->is_open) in zip_source_free()
49 zip_source_close(src); in zip_source_free()
51 if (src->src == NULL) in zip_source_free()
52 (void)src->cb.f(src->ud, NULL, 0, ZIP_SOURCE_FREE); in zip_source_free()
54 (void)src->cb.l(src->src, src->ud, NULL, 0, ZIP_SOURCE_FREE); in zip_source_free()
55 zip_source_free(src->src); in zip_source_free()
58 free(src); in zip_source_free()
H A Dzip_source_close.c41 zip_source_close(struct zip_source *src) in zip_source_close() argument
43 if (!src->is_open) in zip_source_close()
46 if (src->src == NULL) in zip_source_close()
47 (void)src->cb.f(src->ud, NULL, 0, ZIP_SOURCE_CLOSE); in zip_source_close()
49 (void)src->cb.l(src->src, src->ud, NULL, 0, ZIP_SOURCE_CLOSE); in zip_source_close()
50 zip_source_close(src->src); in zip_source_close()
53 src->is_open = 0; in zip_source_close()
H A Dzip_source_stat.c41 zip_source_stat(struct zip_source *src, struct zip_stat *st) in zip_source_stat() argument
46 src->error_source = ZIP_LES_INVAL; in zip_source_stat()
50 if (src->src == NULL) { in zip_source_stat()
51 if (src->cb.f(src->ud, st, sizeof(*st), ZIP_SOURCE_STAT) < 0) in zip_source_stat()
56 if (zip_source_stat(src->src, st) < 0) { in zip_source_stat()
57 src->error_source = ZIP_LES_LOWER; in zip_source_stat()
61 ret = src->cb.l(src->src, src->ud, st, sizeof(*st), ZIP_SOURCE_STAT); in zip_source_stat()
65 src->error_source = ZIP_LES_LOWER; in zip_source_stat()
67 src->error_source = ZIP_LES_UPPER; in zip_source_stat()
H A Dzip_source_pop.c43 zip_source_pop(struct zip_source *src) in zip_source_pop() argument
47 if (src == NULL) in zip_source_pop()
50 lower = src->src; in zip_source_pop()
53 zip_source_free(src); in zip_source_pop()
55 if (src->is_open) in zip_source_pop()
56 (void)src->cb.l(src, src->ud, NULL, 0, ZIP_SOURCE_CLOSE); in zip_source_pop()
57 (void)src->cb.l(src, src->ud, NULL, 0, ZIP_SOURCE_FREE); in zip_source_pop()
59 free(src); in zip_source_pop()
H A Dzip_source_read.c41 zip_source_read(struct zip_source *src, void *data, zip_uint64_t len) in zip_source_read() argument
45 if (!src->is_open || len > ZIP_INT64_MAX || (len > 0 && data == NULL)) { in zip_source_read()
46 src->error_source = ZIP_LES_INVAL; in zip_source_read()
50 if (src->src == NULL) in zip_source_read()
51 return src->cb.f(src->ud, data, len, ZIP_SOURCE_READ); in zip_source_read()
53 ret = src->cb.l(src->src, src->ud, data, len, ZIP_SOURCE_READ); in zip_source_read()
57 src->error_source = ZIP_LES_LOWER; in zip_source_read()
59 src->error_source = ZIP_LES_UPPER; in zip_source_read()
H A Dzip_source_error.c41 zip_source_error(struct zip_source *src, int *ze, int *se) in zip_source_error() argument
45 if (src->src == NULL) { in zip_source_error()
46 if (src->cb.f(src->ud, e, sizeof(e), ZIP_SOURCE_ERROR) < 0) { in zip_source_error()
52 switch (src->error_source) { in zip_source_error()
63 zip_source_error(src->src, ze, se); in zip_source_error()
67 if (src->cb.l(src->src, src->ud, e, sizeof(e), ZIP_SOURCE_ERROR) < 0) { in zip_source_error()
H A Dzip_source_function.c64 struct zip_source *src; in _zip_source_new() local
66 if ((src=(struct zip_source *)malloc(sizeof(*src))) == NULL) { in _zip_source_new()
71 src->src = NULL; in _zip_source_new()
72 src->cb.f = NULL; in _zip_source_new()
73 src->ud = NULL; in _zip_source_new()
74 src->error_source = ZIP_LES_NONE; in _zip_source_new()
75 src->is_open = 0; in _zip_source_new()
77 return src; in _zip_source_new()
H A Dzip_source_zip_new.c48 struct zip_source *src, *s2; in _zip_source_zip_new() local
136 zip_source_free(src); in _zip_source_zip_new()
140 src = s2; in _zip_source_zip_new()
144 zip_source_free(src); in _zip_source_zip_new()
148 src = s2; in _zip_source_zip_new()
153 if ((s2=zip_source_crc(za, src, 1)) == NULL) { in _zip_source_zip_new()
154 zip_source_free(src); in _zip_source_zip_new()
158 src = s2; in _zip_source_zip_new()
163 zip_source_free(src); in _zip_source_zip_new()
167 src = s2; in _zip_source_zip_new()
[all …]
H A Dzip_fopen_index_encrypted.c51 struct zip_source *src; in zip_fopen_index_encrypted() local
53 if ((src=_zip_source_zip_new(za, za, index, flags, 0, 0, password)) == NULL) in zip_fopen_index_encrypted()
56 if (zip_source_open(src) < 0) { in zip_fopen_index_encrypted()
57 _zip_error_set_from_source(&za->error, src); in zip_fopen_index_encrypted()
58 zip_source_free(src); in zip_fopen_index_encrypted()
63 zip_source_free(src); in zip_fopen_index_encrypted()
67 zf->src = src; in zip_fopen_index_encrypted()
103 zf->src = NULL; in _zip_file_new()
/PHP-5.6/ext/gd/libgd/
H A Dgd_rotate.c64 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewX()
65 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewX()
66 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewX()
67 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewX()
155 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewY()
157 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewY()
218 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90()
265 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180()
362 newx = (int)(src->sx + src->sy * fabs(dTan)); in gdImageRotate45()
384 gdImageCopy (dst1, src,0,0,0,0,src->sx,src->sy); in gdImageRotate45()
[all …]
H A Dgd_filter.c24 if (src==NULL) { in gdImageNegate()
32 pxl = f (src, x, y); in gdImageNegate()
58 if (src==NULL) { in gdImageGrayScale()
138 if (src==NULL) { in gdImageContrast()
194 if (src == NULL) { in gdImageColor()
239 if (src==NULL) { in gdImageConvolution()
244 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageConvolution()
253 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy); in gdImageConvolution()
305 if (src==NULL) { in gdImageSelectiveBlur()
310 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageSelectiveBlur()
[all …]
H A Dgd_matrix.c32 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 Dgd_jpeg.c551 my_src_ptr src = (my_src_ptr) cinfo->src; in init_source() local
557 src->start_of_file = TRUE; in init_source()
598 my_src_ptr src = (my_src_ptr) cinfo->src; in fill_input_buffer() local
607 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer()
630 src->pub.next_input_byte = src->buffer; in fill_input_buffer()
652 my_src_ptr src = (my_src_ptr) cinfo->src; in skip_input_data() local
693 my_src_ptr src = (my_src_ptr) cinfo->src; in term_source()
706 my_src_ptr src; in jpeg_gdIOCtx_src() local
718 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
723 src = (my_src_ptr) cinfo->src; in jpeg_gdIOCtx_src()
[all …]
/PHP-5.6/ext/bcmath/
H A Dconfig.m410src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c li…
11 libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c lib…
12 …cmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src
13 libbcmath/src/rmzero.c libbcmath/src/str2num.c,
14 $ext_shared,,-I@ext_srcdir@/libbcmath/src)
15 PHP_ADD_BUILD_DIR($ext_builddir/libbcmath/src)
/PHP-5.6/ext/gd/tests/
H A Dbug38179.phpt9 $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 Dbug73272.phpt11 $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 Dimagecopymerge_basic.phpt14 $src = imagecreate(100, 100);
19 imagecolorallocate($src, 255, 255, 255);
20 $colorTXT_src = imagecolorallocate($src, 0, 255, 255);
22 imagestring($src, 1, 5, 5, "A Simple Text", $colorTXT_src);
25 var_dump(imagecopymerge($des, $src, 20, 20, 0, 0, 50, 50, 75));
/PHP-5.6/ext/standard/tests/file/
H A Dstream_copy_to_stream.phpt10 $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 …]
/PHP-5.6/sapi/fpm/fpm/
H A Dfpm_str.h8 static inline char *str_purify_filename(char *dst, char *src, size_t size) /* {{{ */ in str_purify_filename() argument
15 for (; d < end && *src; ++d, ++src) { in str_purify_filename()
16 if (* (unsigned char *) src < ' ' || * (unsigned char *) src > '\x7f') { in str_purify_filename()
19 *d = *src; in str_purify_filename()
/PHP-5.6/ext/standard/
H A Dphp_smart_str.h81 smart_str_appendl_ex((dest), (src), strlen(src), (what))
82 #define smart_str_appends(dest, src) \ argument
83 smart_str_appendl((dest), (src), strlen(src))
89 #define smart_str_appendl(dest, src, len) \ argument
90 smart_str_appendl_ex((dest), (src), (len), 0)
91 #define smart_str_append(dest, src) \ argument
92 smart_str_append_ex((dest), (src), 0)
187 ((smart_str *)(src))->len, (what));
193 (dest)->c = (char *) (src); \
196 #define smart_str_sets(dest, src) \ argument
[all …]
H A Duuencode.c68 PHPAPI int php_uuencode(char *src, int src_len, char **dest) /* {{{ */ in php_uuencode() argument
75 s = src; in php_uuencode()
76 e = src + src_len; in php_uuencode()
127 PHPAPI int php_uudecode(char *src, int src_len, char **dest) /* {{{ */ in php_uudecode() argument
133 s = src; in php_uudecode()
134 e = src + src_len; in php_uudecode()
195 char *src, *dst; in PHP_FUNCTION() local
198 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &src, &src_len) == FAILURE || src_len < … in PHP_FUNCTION()
202 dst_len = php_uuencode(src, src_len, &dst); in PHP_FUNCTION()
217 char *src, *dst; in PHP_FUNCTION() local
[all …]
/PHP-5.6/ext/bcmath/libbcmath/
H A Dinstall-sh41 src=""
82 *) if [ x"$src" = x ]
84 src=$1
95 if [ x"$src" = x ]
104 dst=$src
105 src=""
118 if [ -f $src -o -d $src ]
122 echo "install: $src does not exist"
139 dst="$dst"/`basename $src`
215 $doit $instcmd $src $dsttmp &&
/PHP-5.6/ext/session/tests/
H A D021.phpt11 url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset="
29 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=");
38 ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry");
47 ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src");
/PHP-5.6/ext/filter/tests/
H A D049.phpt18 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";

Completed in 31 milliseconds

12345678