Home
last modified time | relevance | path

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

12345678910

/PHP-7.2/ext/zip/lib/
H A Dzip_source_free.c41 zip_source_free(zip_source_t *src) in zip_source_free() argument
43 if (src == NULL) in zip_source_free()
46 if (src->refcount > 0) { in zip_source_free()
47 src->refcount--; in zip_source_free()
49 if (src->refcount > 0) { in zip_source_free()
55 zip_source_close(src); in zip_source_free()
61 if (src->source_archive && !src->source_closed) { in zip_source_free()
62 _zip_deregister_source(src->source_archive, src); in zip_source_free()
67 if (src->src) { in zip_source_free()
68 zip_source_free(src->src); in zip_source_free()
[all …]
H A Dzip_source_open.c38 zip_source_open(zip_source_t *src) in zip_source_open() argument
40 if (src->source_closed) { in zip_source_open()
44 zip_error_set(&src->error, ZIP_ER_DELETED, 0); in zip_source_open()
48 if (ZIP_SOURCE_IS_OPEN_READING(src)) { in zip_source_open()
50 zip_error_set(&src->error, ZIP_ER_INUSE, 0); in zip_source_open()
55 if (ZIP_SOURCE_IS_LAYERED(src)) { in zip_source_open()
56 if (zip_source_open(src->src) < 0) { in zip_source_open()
57 _zip_error_set_from_source(&src->error, src->src); in zip_source_open()
63 if (ZIP_SOURCE_IS_LAYERED(src)) { in zip_source_open()
64 zip_source_close(src->src); in zip_source_open()
[all …]
H A Dzip_stat_init.c58 if (src->valid & ZIP_STAT_INDEX) { in _zip_stat_merge()
59 dst->index = src->index; in _zip_stat_merge()
61 if (src->valid & ZIP_STAT_SIZE) { in _zip_stat_merge()
62 dst->size = src->size; in _zip_stat_merge()
67 if (src->valid & ZIP_STAT_MTIME) { in _zip_stat_merge()
68 dst->mtime = src->mtime; in _zip_stat_merge()
70 if (src->valid & ZIP_STAT_CRC) { in _zip_stat_merge()
71 dst->crc = src->crc; in _zip_stat_merge()
79 if (src->valid & ZIP_STAT_FLAGS) { in _zip_stat_merge()
80 dst->flags = src->flags; in _zip_stat_merge()
[all …]
H A Dzip_source_call.c39 _zip_source_call(zip_source_t *src, void *data, zip_uint64_t length, zip_source_cmd_t command) in _zip_source_call() argument
43 if ((src->supports & ZIP_SOURCE_MAKE_COMMAND_BITMASK(command)) == 0) { in _zip_source_call()
44 zip_error_set(&src->error, ZIP_ER_OPNOTSUPP, 0); in _zip_source_call()
48 if (src->src == NULL) { in _zip_source_call()
49 ret = src->cb.f(src->ud, data, length, command); in _zip_source_call()
52 ret = src->cb.l(src->src, src->ud, data, length, command); in _zip_source_call()
59 if (_zip_source_call(src, e, sizeof(e), ZIP_SOURCE_ERROR) < 0) { in _zip_source_call()
60 zip_error_set(&src->error, ZIP_ER_INTERNAL, 0); in _zip_source_call()
63 zip_error_set(&src->error, e[0], e[1]); in _zip_source_call()
H A Dzip_source_function.c74 src->refcount++; in zip_source_keep()
81 zip_source_t *src; in _zip_source_new() local
83 if ((src=(zip_source_t *)malloc(sizeof(*src))) == NULL) { in _zip_source_new()
88 src->src = NULL; in _zip_source_new()
89 src->cb.f = NULL; in _zip_source_new()
90 src->ud = NULL; in _zip_source_new()
91 src->open_count = 0; in _zip_source_new()
93 src->source_closed = false; in _zip_source_new()
94 src->source_archive = NULL; in _zip_source_new()
95 src->refcount = 1; in _zip_source_new()
[all …]
H A Dzip_source_close.c39 zip_source_close(zip_source_t *src) in zip_source_close() argument
41 if (!ZIP_SOURCE_IS_OPEN_READING(src)) { in zip_source_close()
42 zip_error_set(&src->error, ZIP_ER_INVAL, 0); in zip_source_close()
46 src->open_count--; in zip_source_close()
47 if (src->open_count == 0) { in zip_source_close()
48 _zip_source_call(src, NULL, 0, ZIP_SOURCE_CLOSE); in zip_source_close()
50 if (ZIP_SOURCE_IS_LAYERED(src)) { in zip_source_close()
51 if (zip_source_close(src->src) < 0) { in zip_source_close()
52 zip_error_set(&src->error, ZIP_ER_INTERNAL, 0); in zip_source_close()
H A Dzip_source_commit_write.c39 zip_source_commit_write(zip_source_t *src) in zip_source_commit_write() argument
41 if (!ZIP_SOURCE_IS_OPEN_WRITING(src)) { in zip_source_commit_write()
42 zip_error_set(&src->error, ZIP_ER_INVAL, 0); in zip_source_commit_write()
46 if (src->open_count > 1) { in zip_source_commit_write()
47 zip_error_set(&src->error, ZIP_ER_INUSE, 0); in zip_source_commit_write()
50 else if (ZIP_SOURCE_IS_OPEN_READING(src)) { in zip_source_commit_write()
51 if (zip_source_close(src) < 0) { in zip_source_commit_write()
56 if (_zip_source_call(src, NULL, 0, ZIP_SOURCE_COMMIT_WRITE) < 0) { in zip_source_commit_write()
57 src->write_state = ZIP_SOURCE_WRITE_FAILED; in zip_source_commit_write()
61 src->write_state = ZIP_SOURCE_WRITE_CLOSED; in zip_source_commit_write()
H A Dzip_source_stat.c39 zip_source_stat(zip_source_t *src, zip_stat_t *st) in zip_source_stat() argument
41 if (src->source_closed) { in zip_source_stat()
45 zip_error_set(&src->error, ZIP_ER_INVAL, 0); in zip_source_stat()
51 if (ZIP_SOURCE_IS_LAYERED(src)) { in zip_source_stat()
52 if (zip_source_stat(src->src, st) < 0) { in zip_source_stat()
53 _zip_error_set_from_source(&src->error, src->src); in zip_source_stat()
58 if (_zip_source_call(src, st, sizeof(*st), ZIP_SOURCE_STAT) < 0) { in zip_source_stat()
H A Dzip_source_remove.c39 zip_source_remove(zip_source_t *src) in zip_source_remove() argument
41 if (src->write_state == ZIP_SOURCE_WRITE_REMOVED) { in zip_source_remove()
45 if (ZIP_SOURCE_IS_OPEN_READING(src)) { in zip_source_remove()
46 if (zip_source_close(src) < 0) { in zip_source_remove()
50 if (src->write_state != ZIP_SOURCE_WRITE_CLOSED) { in zip_source_remove()
51 zip_source_rollback_write(src); in zip_source_remove()
54 if (_zip_source_call(src, NULL, 0, ZIP_SOURCE_REMOVE) < 0) { in zip_source_remove()
58 src->write_state = ZIP_SOURCE_WRITE_REMOVED; in zip_source_remove()
H A Dzip_source_zip_new.c45 zip_source_t *src, *s2; in _zip_source_zip_new() local
131 zip_source_free(src); in _zip_source_zip_new()
139 zip_source_free(src); in _zip_source_zip_new()
143 src = s2; in _zip_source_zip_new()
147 zip_source_free(src); in _zip_source_zip_new()
151 src = s2; in _zip_source_zip_new()
156 zip_source_free(src); in _zip_source_zip_new()
160 src = s2; in _zip_source_zip_new()
165 zip_source_free(src); in _zip_source_zip_new()
169 src = s2; in _zip_source_zip_new()
[all …]
H A Dzip_fopen_index_encrypted.c48 zip_source_t *src; in zip_fopen_index_encrypted() local
50 if ((src=_zip_source_zip_new(za, za, index, flags, 0, 0, password)) == NULL) in zip_fopen_index_encrypted()
53 if (zip_source_open(src) < 0) { in zip_fopen_index_encrypted()
54 _zip_error_set_from_source(&za->error, src); in zip_fopen_index_encrypted()
55 zip_source_free(src); in zip_fopen_index_encrypted()
60 zip_source_free(src); in zip_fopen_index_encrypted()
64 zf->src = src; in zip_fopen_index_encrypted()
83 zf->src = NULL; in _zip_file_new()
H A Dzip_source_window.c65 if (src == NULL || start + length < start) { in _zip_source_window_new()
96 src->source_archive = za; in _zip_source_set_source_archive()
97 return _zip_register_source(za, src); in _zip_source_set_source_archive()
103 _zip_source_invalidate(zip_source_t *src) in _zip_source_invalidate() argument
105 src->source_closed = 1; in _zip_source_invalidate()
107 if (zip_error_code_zip(&src->error) == ZIP_ER_OK) { in _zip_source_invalidate()
108 zip_error_set(&src->error, ZIP_ER_ZIPCLOSED, 0); in _zip_source_invalidate()
219 _zip_deregister_source(zip_t *za, zip_source_t *src) in _zip_deregister_source() argument
224 if (za->open_source[i] == src) { in _zip_deregister_source()
234 _zip_register_source(zip_t *za, zip_source_t *src) in _zip_register_source() argument
[all …]
H A Dzip_source_layered.c41 zip_source_layered(zip_t *za, zip_source_t *src, zip_source_layered_callback cb, void *ud) in zip_source_layered() argument
46 return zip_source_layered_create(src, cb, ud, &za->error); in zip_source_layered()
51 zip_source_layered_create(zip_source_t *src, zip_source_layered_callback cb, void *ud, zip_error_t … in zip_source_layered_create() argument
58 zip_source_keep(src); in zip_source_layered_create()
59 zs->src = src; in zip_source_layered_create()
63 zs->supports = cb(src, ud, NULL, 0, ZIP_SOURCE_SUPPORTS); in zip_source_layered_create()
/PHP-7.2/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()
156 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewY()
157 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewY()
158 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewY()
218 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90()
265 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180()
[all …]
H A Dgd_filter.c24 if (src==NULL) { in gdImageNegate()
32 pxl = f (src, x, y); in gdImageNegate()
60 if (src==NULL) { in gdImageGrayScale()
145 if (src==NULL) { in gdImageContrast()
201 if (src == NULL) { in gdImageColor()
246 if (src==NULL) { in gdImageConvolution()
251 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageConvolution()
260 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy); in gdImageConvolution()
312 if (src==NULL) { in gdImageSelectiveBlur()
317 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 …]
/PHP-7.2/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 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
15 PHP_ADD_BUILD_DIR($ext_builddir/libbcmath/src)
/PHP-7.2/Zend/
H A Dzend_smart_str.h27 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))
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));
115 smart_str_appendl_ex(dest, ZSTR_VAL(src), ZSTR_LEN(src), persistent); in smart_str_append_ex()
119 if (src->s && ZSTR_LEN(src->s)) { in smart_str_append_smart_str_ex()
[all …]
H A Dzend_smart_string.h52 smart_string_appendl_ex((str), (src), strlen(src), (what))
53 #define smart_string_appends(str, src) \ argument
54 smart_string_appendl((str), (src), strlen(src))
55 #define smart_string_append_ex(str, src, what) \ argument
57 ((smart_string *)(src))->len, (what));
58 #define smart_string_sets(str, src) \ argument
59 smart_string_setl((str), (src), strlen(src));
65 #define smart_string_appendl(str, src, len) \ argument
67 #define smart_string_append(str, src) \ argument
68 smart_string_append_ex((str), (src), 0)
[all …]
/PHP-7.2/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);
/PHP-7.2/main/
H A Dstrlcat.c68 PHPAPI size_t php_strlcat(dst, src, siz) in php_strlcat() argument
70 const char *src;
74 const char *s = src;
85 return(dlen + strlen(src));
86 while (*src != '\0') {
88 *dst++ = *src;
91 src++;
95 return(dlen + (src - s));
H A Dstrlcpy.c66 PHPAPI size_t php_strlcpy(dst, src, siz) in php_strlcpy() argument
68 const char *src;
71 const char *s = src;
77 if ((*dst++ = *src++) == 0)
86 while (*src++)
95 return((uintptr_t)src - (uintptr_t)s - 1);
/PHP-7.2/sapi/fpm/fpm/
H A Dfpm_str.h7 static inline char *str_purify_filename(char *dst, char *src, size_t size) /* {{{ */ in str_purify_filename() argument
14 for (; d < end && *src; ++d, ++src) { in str_purify_filename()
15 if (* (unsigned char *) src < ' ' || * (unsigned char *) src > '\x7f') { in str_purify_filename()
18 *d = *src; in str_purify_filename()
/PHP-7.2/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-7.2/ext/mbstring/
H A Doniguruma.patch1 diff -wur oniguruma.orig/src/config.h.win32 oniguruma/src/config.h.win32
2 --- oniguruma.orig/src/config.h.win32 2017-07-13 17:12:45.228068900 +0200
3 +++ oniguruma/src/config.h.win32 2017-07-13 16:11:19.955226200 +0200
12 diff -wur oniguruma.orig/src/config.h.win64 oniguruma/src/config.h.win64
13 --- oniguruma.orig/src/config.h.win64 2017-07-13 17:12:45.273605000 +0200
14 +++ oniguruma/src/config.h.win64 2017-07-13 16:11:19.957231300 +0200
23 diff -wur oniguruma.orig/src/regint.h oniguruma/src/regint.h
24 --- oniguruma.orig/src/regint.h 2017-07-13 17:12:48.686073300 +0200
25 +++ oniguruma/src/regint.h 2017-07-13 17:13:28.032286100 +0200

Completed in 57 milliseconds

12345678910