/PHP-7.3/ext/zip/lib/ |
H A D | zip_source_free.c | 41 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 D | zip_source_open.c | 38 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 D | zip_stat_init.c | 58 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 D | zip_source_call.c | 39 _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 D | zip_source_function.c | 74 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 D | zip_source_close.c | 39 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 D | zip_source_commit_write.c | 39 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 D | zip_source_stat.c | 39 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 D | zip_source_remove.c | 39 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 D | zip_source_zip_new.c | 45 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 D | zip_fopen_index_encrypted.c | 48 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 D | zip_source_window.c | 65 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 D | zip_source_layered.c | 41 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()
|
H A D | zip_source_tell.c | 39 zip_source_tell(zip_source_t *src) in zip_source_tell() argument 41 if (src->source_closed) { in zip_source_tell() 44 if (!ZIP_SOURCE_IS_OPEN_READING(src)) { in zip_source_tell() 45 zip_error_set(&src->error, ZIP_ER_INVAL, 0); in zip_source_tell() 49 return _zip_source_call(src, NULL, 0, ZIP_SOURCE_TELL); in zip_source_tell()
|
/PHP-7.3/ext/gd/libgd/ |
H A D | gd_rotate.c | 64 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 D | gd_filter.c | 24 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() 313 if (src==NULL) { in gdImageSelectiveBlur() 318 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageSelectiveBlur() [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 …]
|
/PHP-7.3/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.3/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.3/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);
|
/PHP-7.3/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.3/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.3/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 …]
|