From 581acc49c6d268d3b9ca8416c2b434a3921c96fd Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 08:20:43 +0200 Subject: [PATCH 01/31] Fix Imagick::getResourceLimit() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 804c0152..815557af 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1220,7 +1220,7 @@ public static function getReleaseDate(): string {} public static function getResource(int $type): int {} - public static function getResourceLimit(int $type): int {} + public static function getResourceLimit(int $type): float {} public function getSamplingFactors(): array {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 577bcb0b..bb060ea1 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -4995,7 +4995,20 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResource, 0, 0, 1) #endif ZEND_END_ARG_INFO() -#define arginfo_class_Imagick_getResourceLimit arginfo_class_Imagick_getResource + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 1, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif +ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getSamplingFactors arginfo_class_Imagick_getImageGeometry From ab33ea0aab7b73c603ad48290655d8b005bafd73 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 08:44:10 +0200 Subject: [PATCH 02/31] Fix Imagick::evaluateImages() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 815557af..aa50ab33 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -834,7 +834,7 @@ public function evaluateImage(int $evaluate, float $constant, int $channel = Ima //http://www.imagemagick.org/Usage/layers/#evaluate-sequence // EVALUATE_* - public function evaluateImages(int $evaluate): bool {} + public function evaluateImages(int $evaluate): Imagick {} #endif diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index bb060ea1..1e0bf454 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -3718,7 +3718,7 @@ ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 0, 1) #endif From 47b415ac7b54019e7e9b8115938923c6b713d968 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 08:53:41 +0200 Subject: [PATCH 03/31] Fix Imagick::optimizeImageLayers() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index aa50ab33..689ea186 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -5,7 +5,7 @@ class Imagick { #if MagickLibVersion > 0x628 - public function optimizeImageLayers(): bool {} + public function optimizeImageLayers(): Imagick {} // METRIC_* public function compareImageLayers(int $metric): Imagick {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 1e0bf454..484d7a73 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -5,7 +5,7 @@ #if MagickLibVersion > 0x628 #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, Imagick, 0) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, 0) #endif @@ -72,11 +72,18 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 -#define arginfo_class_Imagick_transposeImage arginfo_class_Imagick_optimizeImageLayers + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, 0) +#endif + +ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 -#define arginfo_class_Imagick_transverseImage arginfo_class_Imagick_optimizeImageLayers +#define arginfo_class_Imagick_transverseImage arginfo_class_Imagick_transposeImage #endif #if MagickLibVersion > 0x628 @@ -184,7 +191,7 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 -#define arginfo_class_Imagick_uniqueImageColors arginfo_class_Imagick_optimizeImageLayers +#define arginfo_class_Imagick_uniqueImageColors arginfo_class_Imagick_transposeImage #endif #if MagickLibVersion > 0x628 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 From 98c7a4a2e5e95d18819b0d87d3cf7d497491d677 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 09:27:55 +0200 Subject: [PATCH 04/31] review object_handlers --- imagick.c | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/imagick.c b/imagick.c index 7733e2b8..1b765389 100644 --- a/imagick.c +++ b/imagick.c @@ -286,7 +286,9 @@ static zend_object_value php_imagick_object_new_ex(zend_class_entry *class_type, object_properties_init(&intern->zo, class_type); #if PHP_VERSION_ID >= 70000 +#if PHP_VERSION_ID < 80300 intern->zo.handlers = &imagick_object_handlers; +#endif return &intern->zo; #else retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagick_object_free_storage, NULL TSRMLS_CC); @@ -321,7 +323,9 @@ static zend_object_value php_imagickdraw_object_new_ex(zend_class_entry *class_t zend_object_std_init(&intern->zo, class_type TSRMLS_CC); object_properties_init(&intern->zo, class_type); +#if PHP_VERSION_ID < 80300 intern->zo.handlers = &imagickdraw_object_handlers; +#endif #else zend_object_value retval; intern = (php_imagickdraw_object *) emalloc(sizeof(php_imagickdraw_object)); @@ -398,8 +402,9 @@ static zend_object_value php_imagickpixeliterator_object_new(zend_class_entry *c object_properties_init(&intern->zo, class_type); #if PHP_VERSION_ID >= 70000 +#if PHP_VERSION_ID < 80300 intern->zo.handlers = &imagickpixeliterator_object_handlers; - +#endif return &intern->zo; #else retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagickpixeliterator_object_free_storage, NULL TSRMLS_CC); @@ -439,8 +444,9 @@ static zend_object_value php_imagickpixel_object_new_ex(zend_class_entry *class_ object_properties_init(&intern->zo, class_type); #if PHP_VERSION_ID >= 70000 +#if PHP_VERSION_ID < 80300 intern->zo.handlers = &imagickpixel_object_handlers; - +#endif return &intern->zo; #else retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagickpixel_object_free_storage, NULL TSRMLS_CC); @@ -494,8 +500,9 @@ static zend_object_value php_imagickkernel_object_new_ex(zend_class_entry *class object_properties_init(&intern->zo, class_type); #if PHP_VERSION_ID >= 70000 +#if PHP_VERSION_ID < 80300 intern->zo.handlers = &imagickkernel_object_handlers; - +#endif return &intern->zo; #else retval.handle = zend_objects_store_put(intern, NULL, (zend_objects_free_object_storage_t) php_imagickkernel_object_free_storage, NULL TSRMLS_CC); @@ -1041,7 +1048,9 @@ PHP_MINIT_FUNCTION(imagick) Initialize the class (Imagick) */ INIT_CLASS_ENTRY(ce, PHP_IMAGICK_SC_NAME, php_imagick_class_methods); +#if PHP_VERSION_ID < 80300 ce.create_object = php_imagick_object_new; +#endif imagick_object_handlers.clone_obj = php_imagick_clone_imagick_object; imagick_object_handlers.read_property = php_imagick_read_property; imagick_object_handlers.count_elements = php_imagick_count_elements; @@ -1051,38 +1060,56 @@ PHP_MINIT_FUNCTION(imagick) #endif php_imagick_sc_entry = zend_register_internal_class(&ce TSRMLS_CC); +#if PHP_VERSION_ID >= 80300 + php_imagick_sc_entry->create_object = php_imagick_object_new; + php_imagick_sc_entry->default_object_handlers = &imagick_object_handlers; +#endif zend_class_implements(php_imagick_sc_entry TSRMLS_CC, 2, zend_ce_iterator, im_ce_countable); /* Initialize the class (ImagickDraw) */ INIT_CLASS_ENTRY(ce, PHP_IMAGICKDRAW_SC_NAME, php_imagickdraw_class_methods); +#if PHP_VERSION_ID < 80300 ce.create_object = php_imagickdraw_object_new; +#endif imagickdraw_object_handlers.clone_obj = php_imagick_clone_imagickdraw_object; #if PHP_VERSION_ID >= 70000 imagickdraw_object_handlers.offset = XtOffsetOf(php_imagickdraw_object, zo); imagickdraw_object_handlers.free_obj = php_imagickdraw_object_free_storage; #endif php_imagickdraw_sc_entry = zend_register_internal_class(&ce TSRMLS_CC); +#if PHP_VERSION_ID >= 80300 + php_imagickdraw_sc_entry->create_object = php_imagickdraw_object_new; + php_imagickdraw_sc_entry->default_object_handlers = &imagickdraw_object_handlers; +#endif /* Initialize the class (ImagickPixelIterator) */ INIT_CLASS_ENTRY(ce, PHP_IMAGICKPIXELITERATOR_SC_NAME, php_imagickpixeliterator_class_methods); +#if PHP_VERSION_ID < 80300 ce.create_object = php_imagickpixeliterator_object_new; +#endif imagickpixeliterator_object_handlers.clone_obj = NULL; #if PHP_VERSION_ID >= 70000 imagickpixeliterator_object_handlers.offset = XtOffsetOf(php_imagickpixeliterator_object, zo); imagickpixeliterator_object_handlers.free_obj = php_imagickpixeliterator_object_free_storage; #endif php_imagickpixeliterator_sc_entry = zend_register_internal_class(&ce TSRMLS_CC); +#if PHP_VERSION_ID >= 80300 + php_imagickpixeliterator_sc_entry->create_object = php_imagickpixeliterator_object_new; + php_imagickpixeliterator_sc_entry->default_object_handlers = &imagickpixeliterator_object_handlers; +#endif zend_class_implements(php_imagickpixeliterator_sc_entry TSRMLS_CC, 1, zend_ce_iterator); /* Initialize the class (ImagickPixel) */ INIT_CLASS_ENTRY(ce, PHP_IMAGICKPIXEL_SC_NAME, php_imagickpixel_class_methods); +#if PHP_VERSION_ID < 80300 ce.create_object = php_imagickpixel_object_new; +#endif imagickpixel_object_handlers.clone_obj = php_imagick_clone_imagickpixel_object; #if PHP_VERSION_ID >= 70000 imagickpixel_object_handlers.offset = XtOffsetOf(php_imagickpixel_object, zo); @@ -1090,13 +1117,19 @@ PHP_MINIT_FUNCTION(imagick) #endif php_imagickpixel_sc_entry = zend_register_internal_class(&ce TSRMLS_CC); +#if PHP_VERSION_ID >= 80300 + php_imagickpixel_sc_entry->create_object = php_imagickpixel_object_new; + php_imagickpixel_sc_entry->default_object_handlers = &imagickpixel_object_handlers; +#endif #ifdef IMAGICK_WITH_KERNEL /* Initialize the class (ImagickKernel) */ INIT_CLASS_ENTRY(ce, PHP_IMAGICKKERNEL_SC_NAME, php_imagickkernel_class_methods); +#if PHP_VERSION_ID < 80300 ce.create_object = php_imagickkernel_object_new; +#endif // Disabled until can be compiled under wall correctly imagickkernel_object_handlers.get_debug_info = php_imagickkernel_get_debug_info; imagickkernel_object_handlers.clone_obj = php_imagick_clone_imagickkernel_object; @@ -1106,6 +1139,10 @@ PHP_MINIT_FUNCTION(imagick) #endif php_imagickkernel_sc_entry = zend_register_internal_class(&ce TSRMLS_CC); +#if PHP_VERSION_ID >= 80300 + php_imagickkernel_sc_entry->create_object = php_imagickkernel_object_new; + php_imagickkernel_sc_entry->default_object_handlers = &imagickkernel_object_handlers; +#endif #endif php_imagick_initialize_constants (TSRMLS_C); From d0218130e90277b5ba60e169b5f479bd2ef84827 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 09:33:36 +0200 Subject: [PATCH 05/31] Fix Imagick::getImageBlob() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 689ea186..f6e9e8d4 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -498,7 +498,7 @@ public function clone(): Imagick {} public function getImageSize(): int {} - public function getImageBlob(): string {} + public function getImageBlob(): ?string {} public function getImagesBlob(): string {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 484d7a73..1a1a74de 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -2165,7 +2165,14 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, 0) ZEND_END_ARG_INFO() -#define arginfo_class_Imagick_getImageBlob arginfo_class_Imagick___toString + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, 0) +#endif + +ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImagesBlob arginfo_class_Imagick___toString From 451c17642b55209260a3348d16b858d101263dfc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 09:35:32 +0200 Subject: [PATCH 06/31] Fix Imagick::getRegistry() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index f6e9e8d4..70e7ebd5 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1326,7 +1326,7 @@ public function similarityImage(Imagick $image, ?array &$offset = null, ?float & public static function setRegistry(string $key, string $value): bool {} - public static function getRegistry(string $key): string {} + public static function getRegistry(string $key): false|string {} public static function listRegistry(): array {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 1a1a74de..8e1b5931 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -5290,7 +5290,20 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setRegistry arginfo_class_Imagick_setOption -#define arginfo_class_Imagick_getRegistry arginfo_class_Imagick_getOption + +#if PHP_VERSION_ID >= 80000 + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) +#else + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getRegistry, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif +ZEND_END_ARG_INFO() #define arginfo_class_Imagick_listRegistry arginfo_class_Imagick_getImageGeometry From 957b48ae886e9d00fd7846fd63fc8fcbe3b034f5 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 09:43:57 +0200 Subject: [PATCH 07/31] Fix ImagickPixelIterator::getNextIteratorRow() proto --- ImagickPixelIterator.stub.php | 2 +- ImagickPixelIterator_arginfo.h | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ImagickPixelIterator.stub.php b/ImagickPixelIterator.stub.php index 96072333..dba4d2ab 100644 --- a/ImagickPixelIterator.stub.php +++ b/ImagickPixelIterator.stub.php @@ -23,7 +23,7 @@ public function getCurrentIteratorRow(): array {} public function getIteratorRow(): int {} - public function getNextIteratorRow(): array {} + public function getNextIteratorRow(): ?array {} public function getPreviousIteratorRow(): array {} diff --git a/ImagickPixelIterator_arginfo.h b/ImagickPixelIterator_arginfo.h index 26237941..9b9e7e28 100644 --- a/ImagickPixelIterator_arginfo.h +++ b/ImagickPixelIterator_arginfo.h @@ -79,7 +79,14 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixelIterator_getIteratorRow, 0, 0, ZEND_END_ARG_INFO() -#define arginfo_class_ImagickPixelIterator_getNextIteratorRow arginfo_class_ImagickPixelIterator_getCurrentIteratorRow + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixelIterator_getNextIteratorRow, 0, 0, IS_ARRAY, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixelIterator_getNextIteratorRow, 0, 0, 0) +#endif + +ZEND_END_ARG_INFO() #define arginfo_class_ImagickPixelIterator_getPreviousIteratorRow arginfo_class_ImagickPixelIterator_getCurrentIteratorRow From 20ea362f66772abda910dd3e812a586442c6f86a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 10:01:36 +0200 Subject: [PATCH 08/31] Fix ImagickKernel::fromMatrix() proto --- ImagickKernel.stub.php | 2 +- ImagickKernel_arginfo.h | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ImagickKernel.stub.php b/ImagickKernel.stub.php index 7dd33ff8..823ddb98 100644 --- a/ImagickKernel.stub.php +++ b/ImagickKernel.stub.php @@ -12,7 +12,7 @@ public function addUnityKernel(float $scale): void {} // KERNEL_* public static function fromBuiltin(int $kernel, string $shape): ImagickKernel {} - public static function fromMatrix(array $matrix, ?array $origin): ImagickKernel {} + public static function fromMatrix(array $matrix, array $origin = null): ImagickKernel {} public function getMatrix(): array {} diff --git a/ImagickKernel_arginfo.h b/ImagickKernel_arginfo.h index 67ddbfaa..f74a1f19 100644 --- a/ImagickKernel_arginfo.h +++ b/ImagickKernel_arginfo.h @@ -57,9 +57,9 @@ ZEND_END_ARG_INFO() #if defined(IMAGICK_WITH_KERNEL) #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_ImagickKernel_fromMatrix, 0, 2, ImagickKernel, 0) +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_ImagickKernel_fromMatrix, 0, 1, ImagickKernel, 0) #else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickKernel_fromMatrix, 0, 0, 2) +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickKernel_fromMatrix, 0, 0, 1) #endif @@ -68,12 +68,13 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickKernel_fromMatrix, 0, 0, 2) #else ZEND_ARG_INFO(0, matrix) #endif - + #if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, origin, IS_ARRAY, 1) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, origin, IS_ARRAY, 0, "null") #else ZEND_ARG_INFO(0, origin) #endif + ZEND_END_ARG_INFO() #endif From 7233874dda07fc3a08759ee8842d84c72d7389b3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 10:16:44 +0200 Subject: [PATCH 09/31] Fix Imagick::convolveImage() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 70e7ebd5..96730fda 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -810,7 +810,7 @@ public function contrastImage(bool $sharpen): bool {} public function combineImages(int $colorspace): Imagick {} // kernel is a 2d array of float values - public function convolveImage(array $kernel, int $channel = Imagick::CHANNEL_DEFAULT): bool {} + public function convolveImage(ImagickKernel $kernel, int $channel = Imagick::CHANNEL_DEFAULT): bool {} public function cycleColormapImage(int $displace): bool {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 8e1b5931..7a841ad5 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -3671,12 +3671,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) #endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, kernel, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, kernel) -#endif + ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() From a1d8c0b8b90e53696526982a89c09d6f4afedd03 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 10:47:01 +0200 Subject: [PATCH 10/31] Fix Imagick::subimageMatch() proto --- Imagick.stub.php | 14 +++++++++++--- Imagick_arginfo.h | 16 ++-------------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 96730fda..e580fcbd 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1318,10 +1318,18 @@ public function statisticImage( #endif #if MagickLibVersion >= 0x652 - public function subimageMatch(Imagick $image, ?array &$offset = null, ?float &$similarity = null, float $threshold = 0.0, int $metric = 0): Imagick {} + /** + * @param array $offset + * @param float $similarity + */ + public function subimageMatch(Imagick $image, &$offset = null, &$similarity = null, float $threshold = 0.0, int $metric = 0): Imagick {} - /** @alias Imagick::subimageMatch */ - public function similarityImage(Imagick $image, ?array &$offset = null, ?float &$similarity = null, float $threshold = 0.0, int $metric = 0): Imagick {} + /** + * @alias Imagick::subimageMatch + * @param array $offset + * @param float $similarity + */ + public function similarityImage(Imagick $image, &$offset = null, &$similarity = null, float $threshold = 0.0, int $metric = 0): Imagick {} #endif public static function setRegistry(string $key, string $value): bool {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 7a841ad5..d08a7f3d 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -5254,20 +5254,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) #endif ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(1, offset, IS_ARRAY, 1, "null") -#else - ZEND_ARG_INFO(1, offset) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(1, similarity, IS_DOUBLE, 1, "null") -#else - ZEND_ARG_INFO(1, similarity) -#endif - + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") #if PHP_VERSION_ID >= 80000 From 6d02d99abaa34a0f3e9e1ba6d4b9e6cfed7c3679 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 11:07:57 +0200 Subject: [PATCH 11/31] Fix Imagick::setImageMask() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 4923 ++------------------- tests/289_Imagick_setImageMask_basic.phpt | 2 +- 3 files changed, 450 insertions(+), 4477 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index e580fcbd..170370d1 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1413,7 +1413,7 @@ public function identifyImageType(): int {} public function getImageMask(int $pixelmask): ?Imagick {} // PIXELMASK_* - public function setImageMask(Imagick $clip_mask, int $pixelmask): void {} + public function setImageMask(Imagick $clip_mask, int $pixelmask): ?bool {} #endif diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index d08a7f3d..f0d3f217 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -1,84 +1,32 @@ /* This is a generated file, edit the .stub.php file instead. -* Stub hash: regen with 'sh regen_arginfo.sh' -* file has been fixedup for different versions */ + * Stub hash: 500c441a515078876aeaeaee7af85cd8c4ee5aec */ #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, image) -#endif + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif @@ -87,106 +35,32 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_trimImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_trimImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amplitude) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, length) -#endif + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amplitude) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, length) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -195,212 +69,66 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, matte) -#endif + ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, gray) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, azimuth) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, elevation) -#endif + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif @@ -410,63 +138,19 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high) -#endif + ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_rounding) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_rounding) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") -#else - ZEND_ARG_INFO(0, stroke_width) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") -#else - ZEND_ARG_INFO(0, displace) -#endif - + ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size_correction, IS_DOUBLE, 0, "-6") ZEND_END_ARG_INFO() #endif @@ -476,19 +160,8 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -497,250 +170,87 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_transformImage, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, crop) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, geometry) -#endif + ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, opacity) -#endif + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, threshold_map) -#endif + ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 0, 4) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, caption) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, format) -#endif + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 && IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif @@ -749,147 +259,54 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_extentImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_extentImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, orientation) -#endif + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion > 0x634 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixel_interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") -#else - ZEND_ARG_INFO(0, include_values) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() #endif @@ -898,55 +315,17 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_distortImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_distortImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, distortion) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, arguments) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, bestfit) -#endif + ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) + ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, format) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") ZEND_END_ARG_INFO() #endif @@ -955,312 +334,111 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, page) -#endif + ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, clip_mask, imagick, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_animateImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_animateImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, x_server) -#endif + ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, matrix) -#endif + ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setFont, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setFont, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, font) -#endif + ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, point_size) -#endif + ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, layermethod) -#endif + ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, alphachannel) -#endif + ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 6, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 0, 6) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, delta_x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, rigidity) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, passphrase) -#endif + ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) ZEND_END_ARG_INFO() #endif @@ -1269,861 +447,268 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setGravity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setGravity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x642 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 2, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference_image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 7, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 0, 7) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, map) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelstorage) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, pixels) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, cluster_threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, smooth_threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, verbose) -#endif - + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, sparsecolormethod) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, arguments) -#endif + ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_remapImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_remapImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, replacement, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dither_method) -#endif + ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if PHP_IMAGICK_HAVE_HOUGHLINE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x646 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 6, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 0, 6) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, map) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelstorage) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_functionImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_functionImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, function) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, parameters) -#endif + ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x651 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x652 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, clut, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, factor, IS_DOUBLE, 0, "1.5") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 1, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x667 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_smushImages, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_smushImages, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, stack) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() #endif ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___construct, 0, 0, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") -#else - ZEND_ARG_INFO(0, files) -#endif - + ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick___toString, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___toString, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 50600 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") -#else - ZEND_ARG_INFO(0, mode) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") ZEND_END_ARG_INFO() #endif #if !(PHP_VERSION_ID >= 50600) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, ImagickPixelIterator, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 4, ImagickPixelIterator, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, filename) -#endif + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, filenames) -#endif + ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, image) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, format) -#endif + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImages, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImages, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, filename) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, adjoin) -#endif + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blurImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blurImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, fill) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageFilename arginfo_class_Imagick___toString @@ -2134,44 +719,20 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageMimeType arginfo_class_Imagick___toString - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_destroy arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_clear arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_clone, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clone, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImagesBlob arginfo_class_Imagick___toString @@ -2180,13 +741,7 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setLastIterator arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetIterator, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetIterator, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_previousImage arginfo_class_Imagick_removeImage @@ -2197,817 +752,224 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_hasNextImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIndex arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_commentImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_commentImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, comment) -#endif + ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_labelImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_labelImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, label) -#endif + ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_drawImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_drawImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, drawing, ImagickDraw, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, quality) -#endif + ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompressionQuality arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, compression) -#endif + ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompression arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, text) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_INFO(0, composite_image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, brightness) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, saturation) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, hue) -#endif + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColors arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_montageImage, 0, 5, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_montageImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, tile_geometry) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, thumbnail_geometry) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, monatgemode) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, frame) -#endif + ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, append_raw_output) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, threshold_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_whiteThresholdImage arginfo_class_Imagick_blackThresholdImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_appendImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_appendImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, stack) -#endif + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, levels) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif + ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, raise) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, filter) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, blur) -#endif + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, filter) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, blur) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rollImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rollImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, opacity) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, compose) -#endif + ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, delay) -#endif + ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, iterations) -#endif + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 || MagickLibVersion >= 0x705 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif @@ -3017,168 +979,53 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageProgressMonitor arginfo_class_Imagick_readImage #if MagickLibVersion > 0x653 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) -#else - ZEND_ARG_INFO(0, callback) -#endif + ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_resolution) -#endif + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, scene) -#endif + ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, ticks_per_second) -#endif + ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageType, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageType, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, image_type) -#endif + ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, units) -#endif + ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_sharpenImage arginfo_class_Imagick_blurImage #define arginfo_class_Imagick_shaveImage arginfo_class_Imagick_sampleImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shearImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shearImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_shear) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_shear) -#endif + ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spliceImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_pingImage arginfo_class_Imagick_readImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_displayImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_displayImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, servername) -#endif + ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_displayImages arginfo_class_Imagick_displayImage @@ -3186,508 +1033,160 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spreadImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_stripImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_queryFonts arginfo_class_Imagick_queryFormats - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, text) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") -#else - ZEND_ARG_INFO(0, multiline) -#endif - + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, watermark, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, noise) -#endif + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_ADD_NOISE_WITH_ATTENUATE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, noise) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, attenuate) -#endif + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_morphImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_frames) -#endif + ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_minifyImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_averageImages arginfo_class_Imagick_clone - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 4, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, original_width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, original_height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, desired_width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, desired_height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_chopImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_clipImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pathname) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, inside) -#endif + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pathname) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, inside) -#endif + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_coalesceImages arginfo_class_Imagick_clone #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, colorize_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING|MAY_BE_FALSE, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 3, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImages, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImages, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, sharpen) -#endif + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_combineImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_combineImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, displace) -#endif + ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_deconstructImages arginfo_class_Imagick_clone @@ -3702,42 +1201,15 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_equalizeImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, evaluate) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, constant) -#endif + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, evaluate) -#endif +ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -3748,246 +1220,79 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_flopImage arginfo_class_Imagick_removeImage #if MagickLibVersion >= 0x655 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, magnitude) -#endif + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, inner_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, outer_bevel) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 6, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 0, 6) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, inner_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, outer_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_fxImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_fxImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, expression) -#endif + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_gaussianBlurImage arginfo_class_Imagick_blurImage #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageBluePrimary arginfo_class_Imagick_getImageGeometry #define arginfo_class_Imagick_getImageBorderColor arginfo_class_Imagick_getImageBackgroundColor - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 3, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageChannelStatistics arginfo_class_Imagick_getImageGeometry - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 1, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColorspace arginfo_class_Imagick_getImageSize @@ -3998,42 +1303,19 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageDepth arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 2, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImageDispose arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageGreenPrimary arginfo_class_Imagick_getImageGeometry @@ -4047,76 +1329,27 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIterations arginfo_class_Imagick_getImageSize #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImagePage arginfo_class_Imagick_getImageGeometry - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 2, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_SETIMAGEPIXELCOLOR - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 3, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageRedPrimary arginfo_class_Imagick_getImageGeometry @@ -4145,530 +1378,165 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageTotalInkDensity arginfo_class_Imagick_getImageGamma - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 4, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_implodeImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixel_interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x658 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, complement, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, magnitude) -#endif + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_magnifyImage arginfo_class_Imagick_removeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_mapImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mapImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, map, imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_negateImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_negateImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, gray) -#endif + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_previewImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_previewImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, preview) -#endif + ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_profileImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_profileImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, profile) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_colors) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, tree_depth) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, measure_error) -#endif + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_quantizeImages arginfo_class_Imagick_quantizeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_removeImageProfile arginfo_class_Imagick_getImageProfile - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, bias) -#endif + ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, bias) -#endif + ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, z) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if !(MagickLibVersion >= 0x700) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dispose) -#endif + ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageExtent arginfo_class_Imagick_sampleImage @@ -4681,40 +1549,13 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageGreenPrimary arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interlace) -#endif + ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, profile) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -4725,34 +1566,12 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageRedPrimary arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rendering_intent) -#endif + ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -4763,174 +1582,54 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageWhitePoint arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, sharpen) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, beta) -#endif + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, offset_image, Imagick, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_textureImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_textureImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, texture, Imagick, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_tintImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_tintImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, tint_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amount) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImage arginfo_class_Imagick_clone - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImage arginfo_class_Imagick_addImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") -#else - ZEND_ARG_INFO(0, format) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pseudo_format) -#endif +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 3, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getCompression arginfo_class_Imagick_getImageSize @@ -4942,13 +1641,7 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getConfigureOptions arginfo_class_Imagick_queryFormats #if MagickLibVersion > 0x660 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif @@ -4960,19 +1653,8 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getInterlaceScheme arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOption, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOption, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getPackageName arginfo_class_Imagick___toString @@ -4989,34 +1671,12 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getReleaseDate arginfo_class_Imagick___toString - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResource, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResource, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 1, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getSamplingFactors arginfo_class_Imagick_getImageGeometry @@ -5037,82 +1697,28 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setInterlaceScheme arginfo_class_Imagick_setImageInterlaceScheme - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOption, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOption, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setPage arginfo_class_Imagick_cropImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, limit) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setResolution arginfo_class_Imagick_setImageResolution - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, factors) -#endif + ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setSize arginfo_class_Imagick_sampleImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setType, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setType, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, imgtype) -#endif + ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion > 0x628 @@ -5129,141 +1735,49 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_current arginfo_class_Imagick_clone #if MagickLibVersion >= 0x659 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, brightness) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, contrast) -#endif + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x661 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, color_matrix) -#endif + ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x689 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x683 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x652 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") -#else - ZEND_ARG_INFO(0, metric) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") ZEND_END_ARG_INFO() #endif @@ -5273,126 +1787,53 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setRegistry arginfo_class_Imagick_setOption - -#if PHP_VERSION_ID >= 80000 - ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) -#else - ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getRegistry, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_listRegistry arginfo_class_Imagick_getImageGeometry #if MagickLibVersion >= 0x680 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_morphology, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphology, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, morphology) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, iterations) -#endif + ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if defined(IMAGICK_WITH_KERNEL) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_filter, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_filter, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_UNDEFINED") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, antialias) -#endif + ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getAntialias arginfo_class_Imagick_removeImage #if MagickLibVersion > 0x676 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, color_correction_collection) -#endif + ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x687 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x660 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_ALL") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif @@ -5401,716 +1842,248 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite_constant) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x693 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, strength) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 1, Imagick, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelmask) -#endif + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 0, 2) -#endif - +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 1) ZEND_ARG_OBJ_INFO(0, clip_mask, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelmask) -#endif + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x709 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, lower_percent) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, upper_percent) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SETSEED - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSeed, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSeed, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, seed) -#endif + ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WAVELETDENOISEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, softness) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_MEANSHIFTIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, color_distance) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_KMEANSIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_colors) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, max_iterations) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, tolerance) -#endif + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_RANGETHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low_black) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low_white) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high_white) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high_black) -#endif + ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_AUTOTHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, auto_threshold_method) -#endif + ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_BILATERALBLURIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, intensity_sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, spatial_sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CLAHEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_claheImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_claheImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_bins) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, clip_limit) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CHANNELFXIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, expression) -#endif + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COLORTHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, start_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, stop_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COMPLEXIMAGES - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_complexImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_complexImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, complex_operator) -#endif + ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_INTERPOLATIVERESIZEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIMAGECOLORS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, black_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, white_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIZEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_ORDEREDDITHERIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, dither_format) -#endif + ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WHITEBALANCEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_DELETE_OPTION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, option) -#endif + ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_BACKGROUND_COLOR - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_ARTIFACTS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_KURTOSIS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_MEAN - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_RANGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_INTERPOLATE_METHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_OPTIONS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_ORIENTATION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_RESOLUTION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_TYPE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getType, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getType, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_POLYNOMIAL_IMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, terms) -#endif + ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_DEPTH - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setDepth, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_EXTRACT - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setExtract, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setExtract, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, geometry) -#endif + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_INTERPOLATE_METHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_ORIENTATION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, orientation) -#endif + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -7711,4 +3684,4 @@ static const zend_function_entry class_Imagick_methods[] = { ZEND_ME(Imagick, setOrientation, arginfo_class_Imagick_setOrientation, ZEND_ACC_PUBLIC) #endif ZEND_FE_END -}; \ No newline at end of file +}; diff --git a/tests/289_Imagick_setImageMask_basic.phpt b/tests/289_Imagick_setImageMask_basic.phpt index 912ba95e..909f17c3 100644 --- a/tests/289_Imagick_setImageMask_basic.phpt +++ b/tests/289_Imagick_setImageMask_basic.phpt @@ -66,4 +66,4 @@ foreach ($channel_types as $channel_type => $channel_name) { echo "Ok"; ?> --EXPECTF-- -Ok \ No newline at end of file +Ok From af0634ac4f223d2ae491b3b7a7aaee7e346d2d5f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 11:23:58 +0200 Subject: [PATCH 12/31] unalias next/rewind for return type --- Imagick.stub.php | 6 - Imagick_arginfo.h | 4928 ++++++++++++++++++++++++++++++++++++++++----- imagick_class.c | 44 + 3 files changed, 4522 insertions(+), 456 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 170370d1..100521c7 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1271,14 +1271,8 @@ public function key(): int {} //# endif #endif - /** @alias Imagick::nextImage - * @tentative-return-type - */ public function next(): void {} - /** @alias Imagick::setFirstIterator - * @tentative-return-type - */ public function rewind(): void {} public function valid(): bool {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index f0d3f217..572c4779 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -1,32 +1,84 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 500c441a515078876aeaeaee7af85cd8c4ee5aec */ +* Stub hash: regen with 'sh regen_arginfo.sh' +* file has been fixedup for different versions */ #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, image) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -35,32 +87,106 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_trimImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_trimImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amplitude) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, length) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amplitude) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, length) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif @@ -69,66 +195,212 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, matte) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, gray) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, azimuth) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, elevation) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif @@ -138,19 +410,63 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_rounding) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_rounding) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") +#else + ZEND_ARG_INFO(0, stroke_width) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") +#else + ZEND_ARG_INFO(0, displace) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size_correction, IS_DOUBLE, 0, "-6") ZEND_END_ARG_INFO() #endif @@ -160,8 +476,19 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #endif @@ -170,87 +497,250 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_transformImage, 0, 2, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, crop) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, geometry) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, opacity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, threshold_map) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 0, 4) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, caption) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, format) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 && IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_END_ARG_INFO() #endif @@ -259,54 +749,147 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_extentImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_extentImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, orientation) +#endif ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion > 0x634 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixel_interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") +#else + ZEND_ARG_INFO(0, include_values) +#endif + ZEND_END_ARG_INFO() #endif @@ -315,17 +898,55 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_distortImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_distortImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, distortion) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, arguments) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, bestfit) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, format) +#endif + ZEND_END_ARG_INFO() #endif @@ -334,111 +955,312 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, page) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, clip_mask, imagick, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_animateImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_animateImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, x_server) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, matrix) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setFont, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setFont, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, font) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, point_size) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, layermethod) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, alphachannel) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 6, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 0, 6) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, delta_x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, rigidity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, passphrase) +#endif ZEND_END_ARG_INFO() #endif @@ -447,268 +1269,861 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setGravity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setGravity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x642 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 2, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference_image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 7, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 0, 7) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, map) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelstorage) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, pixels) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, cluster_threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, smooth_threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, verbose) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, sparsecolormethod) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, arguments) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_remapImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_remapImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, replacement, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, dither_method) +#endif ZEND_END_ARG_INFO() #endif #if PHP_IMAGICK_HAVE_HOUGHLINE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x646 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 6, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 0, 6) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, map) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelstorage) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_functionImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_functionImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, function) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, parameters) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x651 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x652 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, clut, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, factor, IS_DOUBLE, 0, "1.5") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 1, IS_STRING, 1) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x667 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_smushImages, 0, 2, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_smushImages, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, stack) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() #endif ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___construct, 0, 0, 0) - ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") +#else + ZEND_ARG_INFO(0, files) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick___toString, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___toString, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 50600 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") +#else + ZEND_ARG_INFO(0, mode) +#endif + ZEND_END_ARG_INFO() #endif #if !(PHP_VERSION_ID >= 50600) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, ImagickPixelIterator, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 4, ImagickPixelIterator, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, filename) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, filenames) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, image) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, format) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImages, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImages, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, filename) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, adjoin) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blurImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blurImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, fill) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageFilename arginfo_class_Imagick___toString @@ -719,20 +2134,44 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageMimeType arginfo_class_Imagick___toString + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_destroy arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_clear arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_clone, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clone, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImagesBlob arginfo_class_Imagick___toString @@ -741,7 +2180,13 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setLastIterator arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetIterator, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetIterator, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_previousImage arginfo_class_Imagick_removeImage @@ -752,224 +2197,817 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_hasNextImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIndex arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_commentImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_commentImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, comment) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_labelImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_labelImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, label) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_drawImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_drawImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, drawing, ImagickDraw, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, quality) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompressionQuality arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, compression) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompression arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, text) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_INFO(0, composite_image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, brightness) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, saturation) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, hue) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColors arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_montageImage, 0, 5, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_montageImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, tile_geometry) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, thumbnail_geometry) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, monatgemode) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, frame) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, append_raw_output) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, threshold_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_whiteThresholdImage arginfo_class_Imagick_blackThresholdImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_appendImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_appendImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, stack) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, levels) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, raise) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, filter) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, blur) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, filter) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, blur) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rollImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rollImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, opacity) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, compose) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, delay) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, iterations) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 || MagickLibVersion >= 0x705 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif @@ -979,53 +3017,168 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageProgressMonitor arginfo_class_Imagick_readImage #if MagickLibVersion > 0x653 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) +#else + ZEND_ARG_INFO(0, callback) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_resolution) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, scene) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, ticks_per_second) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageType, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageType, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, image_type) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, units) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_sharpenImage arginfo_class_Imagick_blurImage #define arginfo_class_Imagick_shaveImage arginfo_class_Imagick_sampleImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shearImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shearImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_shear) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_shear) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spliceImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_pingImage arginfo_class_Imagick_readImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_displayImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_displayImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, servername) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_displayImages arginfo_class_Imagick_displayImage @@ -1033,160 +3186,508 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spreadImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_stripImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_queryFonts arginfo_class_Imagick_queryFormats + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, text) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") +#else + ZEND_ARG_INFO(0, multiline) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 2, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, watermark, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, noise) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_ADD_NOISE_WITH_ATTENUATE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, noise) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, attenuate) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_morphImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_frames) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_minifyImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_averageImages arginfo_class_Imagick_clone + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 4, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, original_width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, original_height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, desired_width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, desired_height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_chopImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_clipImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pathname) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, inside) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 2, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pathname) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, inside) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_coalesceImages arginfo_class_Imagick_clone #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, colorize_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING|MAY_BE_FALSE, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 3, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImages, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImages, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, sharpen) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_combineImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_combineImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, displace) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_deconstructImages arginfo_class_Imagick_clone @@ -1201,15 +3702,42 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_equalizeImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, evaluate) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, constant) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, evaluate) +#endif ZEND_END_ARG_INFO() #endif @@ -1220,79 +3748,246 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_flopImage arginfo_class_Imagick_removeImage #if MagickLibVersion >= 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, magnitude) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, inner_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, outer_bevel) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 6, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 0, 6) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, inner_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, outer_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_fxImage, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_fxImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, expression) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_gaussianBlurImage arginfo_class_Imagick_blurImage #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageBluePrimary arginfo_class_Imagick_getImageGeometry #define arginfo_class_Imagick_getImageBorderColor arginfo_class_Imagick_getImageBackgroundColor + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 3, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageChannelStatistics arginfo_class_Imagick_getImageGeometry + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 1, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColorspace arginfo_class_Imagick_getImageSize @@ -1303,19 +3998,42 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageDepth arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 2, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImageDispose arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageGreenPrimary arginfo_class_Imagick_getImageGeometry @@ -1329,27 +4047,76 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIterations arginfo_class_Imagick_getImageSize #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImagePage arginfo_class_Imagick_getImageGeometry + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 2, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_SETIMAGEPIXELCOLOR + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 3, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageRedPrimary arginfo_class_Imagick_getImageGeometry @@ -1378,165 +4145,530 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageTotalInkDensity arginfo_class_Imagick_getImageGamma + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 4, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_implodeImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixel_interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x658 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, complement, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, magnitude) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_magnifyImage arginfo_class_Imagick_removeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_mapImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mapImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, map, imagick, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_negateImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_negateImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, gray) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_previewImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_previewImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, preview) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_profileImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_profileImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, profile) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_colors) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, tree_depth) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, measure_error) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_quantizeImages arginfo_class_Imagick_quantizeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_removeImageProfile arginfo_class_Imagick_getImageProfile + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, bias) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, bias) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, z) +#endif ZEND_END_ARG_INFO() #endif #if !(MagickLibVersion >= 0x700) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, dispose) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageExtent arginfo_class_Imagick_sampleImage @@ -1549,13 +4681,40 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageGreenPrimary arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interlace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, profile) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -1566,12 +4725,34 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageRedPrimary arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rendering_intent) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -1582,54 +4763,174 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageWhitePoint arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, sharpen) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, beta) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, offset_image, Imagick, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_textureImage, 0, 1, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_textureImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, texture, Imagick, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_tintImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_tintImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, tint_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amount) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImage arginfo_class_Imagick_clone + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImage arginfo_class_Imagick_addImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") +#else + ZEND_ARG_INFO(0, format) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pseudo_format) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getCompression arginfo_class_Imagick_getImageSize @@ -1641,7 +4942,13 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getConfigureOptions arginfo_class_Imagick_queryFormats #if MagickLibVersion > 0x660 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -1653,8 +4960,19 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getInterlaceScheme arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOption, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOption, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getPackageName arginfo_class_Imagick___toString @@ -1671,12 +4989,34 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getReleaseDate arginfo_class_Imagick___toString + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResource, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResource, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 1, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getSamplingFactors arginfo_class_Imagick_getImageGeometry @@ -1697,87 +5037,232 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setInterlaceScheme arginfo_class_Imagick_setImageInterlaceScheme + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOption, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOption, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setPage arginfo_class_Imagick_cropImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, limit) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setResolution arginfo_class_Imagick_setImageResolution + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, factors) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setSize arginfo_class_Imagick_sampleImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setType, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setType, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, imgtype) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion > 0x628 #define arginfo_class_Imagick_key arginfo_class_Imagick_getSizeOffset #endif -ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_next, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() +#define arginfo_class_Imagick_next arginfo_class_Imagick_resetIterator -#define arginfo_class_Imagick_rewind arginfo_class_Imagick_next +#define arginfo_class_Imagick_rewind arginfo_class_Imagick_resetIterator #define arginfo_class_Imagick_valid arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_current arginfo_class_Imagick_clone #if MagickLibVersion >= 0x659 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, brightness) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, contrast) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x661 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, color_matrix) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x689 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x683 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x652 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 1, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") +#else + ZEND_ARG_INFO(0, metric) +#endif + ZEND_END_ARG_INFO() #endif @@ -1787,53 +5272,126 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setRegistry arginfo_class_Imagick_setOption -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) +#else + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getRegistry, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_listRegistry arginfo_class_Imagick_getImageGeometry #if MagickLibVersion >= 0x680 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_morphology, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphology, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, morphology) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, iterations) +#endif ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if defined(IMAGICK_WITH_KERNEL) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_filter, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_filter, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_UNDEFINED") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, antialias) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getAntialias arginfo_class_Imagick_removeImage #if MagickLibVersion > 0x676 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, color_correction_collection) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x687 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x660 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_ALL") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -1842,248 +5400,716 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite_constant) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x693 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, strength) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 1, Imagick, 1) - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelmask) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, clip_mask, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelmask) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x709 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, lower_percent) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, upper_percent) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SETSEED + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSeed, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSeed, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, seed) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WAVELETDENOISEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, softness) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_MEANSHIFTIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, color_distance) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_KMEANSIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_colors) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, max_iterations) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, tolerance) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_RANGETHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low_black) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low_white) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high_white) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high_black) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_AUTOTHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, auto_threshold_method) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_BILATERALBLURIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, intensity_sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, spatial_sigma) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CLAHEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_claheImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_claheImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_bins) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, clip_limit) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CHANNELFXIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, expression) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COLORTHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, start_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, stop_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COMPLEXIMAGES + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_complexImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_complexImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, complex_operator) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_INTERPOLATIVERESIZEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIMAGECOLORS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, black_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, white_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIZEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_ORDEREDDITHERIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, dither_format) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WHITEBALANCEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_DELETE_OPTION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, option) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_BACKGROUND_COLOR + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_ARTIFACTS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_KURTOSIS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_MEAN + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_RANGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_INTERPOLATE_METHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_OPTIONS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_ORIENTATION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_RESOLUTION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_TYPE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getType, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getType, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_POLYNOMIAL_IMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, terms) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_DEPTH + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setDepth, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_EXTRACT + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setExtract, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setExtract, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, geometry) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_INTERPOLATE_METHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_ORIENTATION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, orientation) +#endif ZEND_END_ARG_INFO() #endif @@ -2721,6 +6747,8 @@ ZEND_METHOD(Imagick, setResolution); ZEND_METHOD(Imagick, setSamplingFactors); ZEND_METHOD(Imagick, setSize); ZEND_METHOD(Imagick, setType); +ZEND_METHOD(Imagick, next); +ZEND_METHOD(Imagick, rewind); ZEND_METHOD(Imagick, valid); ZEND_METHOD(Imagick, current); #if MagickLibVersion >= 0x659 @@ -3520,8 +7548,8 @@ static const zend_function_entry class_Imagick_methods[] = { #if MagickLibVersion > 0x628 ZEND_MALIAS(Imagick, key, getIteratorIndex, arginfo_class_Imagick_key, ZEND_ACC_PUBLIC) #endif - ZEND_MALIAS(Imagick, next, nextImage, arginfo_class_Imagick_next, ZEND_ACC_PUBLIC) - ZEND_MALIAS(Imagick, rewind, setFirstIterator, arginfo_class_Imagick_rewind, ZEND_ACC_PUBLIC) + ZEND_ME(Imagick, next, arginfo_class_Imagick_next, ZEND_ACC_PUBLIC) + ZEND_ME(Imagick, rewind, arginfo_class_Imagick_rewind, ZEND_ACC_PUBLIC) ZEND_ME(Imagick, valid, arginfo_class_Imagick_valid, ZEND_ACC_PUBLIC) ZEND_ME(Imagick, current, arginfo_class_Imagick_current, ZEND_ACC_PUBLIC) #if MagickLibVersion >= 0x659 @@ -3684,4 +7712,4 @@ static const zend_function_entry class_Imagick_methods[] = { ZEND_ME(Imagick, setOrientation, arginfo_class_Imagick_setOrientation, ZEND_ACC_PUBLIC) #endif ZEND_FE_END -}; +}; \ No newline at end of file diff --git a/imagick_class.c b/imagick_class.c index 22395b63..84e56691 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -8330,6 +8330,28 @@ PHP_METHOD(Imagick, resetIterator) } /* }}} */ +/* {{{ proto bool Imagick::rewind() + Sets the wand iterator to the first image. +*/ +PHP_METHOD(Imagick, rewind) +{ + php_imagick_object *intern; + intern = Z_IMAGICK_P(getThis()); + + if (zend_parse_parameters_none() == FAILURE) { + return; + } + + /* No magick is going to happen */ + if (intern->magick_wand == NULL) { + return; + } + intern->next_out_of_bound = 0; + MagickSetFirstIterator(intern->magick_wand); + return; +} +/* }}} */ + /* {{{ proto bool Imagick::setFirstIterator() Sets the wand iterator to the first image. */ @@ -8398,6 +8420,28 @@ PHP_METHOD(Imagick, previousImage) } /* }}} */ +/* {{{ proto bool Imagick::next() + Associates the next image in the image list with an Imagick object. +*/ +PHP_METHOD(Imagick, next) +{ + php_imagick_object *intern; + MagickBooleanType status; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } + + intern = Z_IMAGICK_P(getThis()); + status = MagickNextImage(intern->magick_wand); + + /* No magick is going to happen */ + if (status == MagickFalse) { + intern->next_out_of_bound = 1; + } +} +/* }}} */ + /* {{{ proto bool Imagick::nextImage() Associates the next image in the image list with an Imagick object. */ From 8b48dc3ebc2fb76e03da99abf759ff14b58e34f0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 11:26:36 +0200 Subject: [PATCH 13/31] Fix Imagick::resetIterator() proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 20 +++++++++---------- tests/092_Imagick_mergeImageLayers_basic.phpt | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 100521c7..06216a03 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -506,7 +506,7 @@ public function setFirstIterator(): bool {} public function setLastIterator(): bool {} - public function resetIterator(): void {} + public function resetIterator(): bool {} public function previousImage(): bool {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 572c4779..7dc95f1a 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -2180,14 +2180,7 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setLastIterator arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetIterator, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetIterator, 0, 0, 0) -#endif - -ZEND_END_ARG_INFO() +#define arginfo_class_Imagick_resetIterator arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_previousImage arginfo_class_Imagick_removeImage @@ -5119,9 +5112,16 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_key arginfo_class_Imagick_getSizeOffset #endif -#define arginfo_class_Imagick_next arginfo_class_Imagick_resetIterator -#define arginfo_class_Imagick_rewind arginfo_class_Imagick_resetIterator +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_next, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_next, 0, 0, 0) +#endif + +ZEND_END_ARG_INFO() + +#define arginfo_class_Imagick_rewind arginfo_class_Imagick_next #define arginfo_class_Imagick_valid arginfo_class_Imagick_removeImage diff --git a/tests/092_Imagick_mergeImageLayers_basic.phpt b/tests/092_Imagick_mergeImageLayers_basic.phpt index 4dcc3a33..bc8bb260 100644 --- a/tests/092_Imagick_mergeImageLayers_basic.phpt +++ b/tests/092_Imagick_mergeImageLayers_basic.phpt @@ -36,4 +36,4 @@ mergeImageLayers($layerMethodType); echo "Ok"; ?> --EXPECTF-- -Ok \ No newline at end of file +Ok From 0cf0083eab7f7d839bd0e448d1e129d8a3528d5d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 12:06:41 +0200 Subject: [PATCH 14/31] unalias next/rewind for return type --- ImagickPixelIterator.stub.php | 10 +--- ImagickPixelIterator_arginfo.h | 26 +++++---- imagickpixeliterator_class.c | 53 +++++++++++++++++++ ..._ImagickPixelIterator_construct_basic.phpt | 2 +- 4 files changed, 73 insertions(+), 18 deletions(-) diff --git a/ImagickPixelIterator.stub.php b/ImagickPixelIterator.stub.php index dba4d2ab..da014600 100644 --- a/ImagickPixelIterator.stub.php +++ b/ImagickPixelIterator.stub.php @@ -19,7 +19,7 @@ public static function getPixelRegionIterator( /** @alias ImagickPixelIterator::clear */ public function destroy(): bool {} - public function getCurrentIteratorRow(): array {} + public function getCurrentIteratorRow(): ?array {} public function getIteratorRow(): int {} @@ -30,18 +30,12 @@ public function getPreviousIteratorRow(): array {} /** @alias ImagickPixelIterator::getIteratorRow */ public function key(): int {} - /** @alias ImagickPixelIterator::getNextIteratorRow - * @tentative-return-type - */ public function next(): void {} - /** @alias ImagickPixelIterator::resetIterator - * @tentative-return-type - */ public function rewind(): void {} /** @alias ImagickPixelIterator::getCurrentIteratorRow */ - public function current(): array {} + public function current(): ?array {} public function newPixelIterator(Imagick $imagick): bool {} diff --git a/ImagickPixelIterator_arginfo.h b/ImagickPixelIterator_arginfo.h index 9b9e7e28..310bf045 100644 --- a/ImagickPixelIterator_arginfo.h +++ b/ImagickPixelIterator_arginfo.h @@ -63,7 +63,7 @@ ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixelIterator_getCurrentIteratorRow, 0, 0, IS_ARRAY, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixelIterator_getCurrentIteratorRow, 0, 0, IS_ARRAY, 1) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixelIterator_getCurrentIteratorRow, 0, 0, 0) #endif @@ -79,20 +79,26 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixelIterator_getIteratorRow, 0, 0, ZEND_END_ARG_INFO() +#define arginfo_class_ImagickPixelIterator_getNextIteratorRow arginfo_class_ImagickPixelIterator_getCurrentIteratorRow + #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixelIterator_getNextIteratorRow, 0, 0, IS_ARRAY, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixelIterator_getPreviousIteratorRow, 0, 0, IS_ARRAY, 0) #else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixelIterator_getNextIteratorRow, 0, 0, 0) +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixelIterator_getPreviousIteratorRow, 0, 0, 0) #endif ZEND_END_ARG_INFO() -#define arginfo_class_ImagickPixelIterator_getPreviousIteratorRow arginfo_class_ImagickPixelIterator_getCurrentIteratorRow - #define arginfo_class_ImagickPixelIterator_key arginfo_class_ImagickPixelIterator_getIteratorRow -ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixelIterator_next, 0, 0, IS_VOID, 0) + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixelIterator_next, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixelIterator_next, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_ImagickPixelIterator_rewind arginfo_class_ImagickPixelIterator_next @@ -177,9 +183,11 @@ ZEND_METHOD(ImagickPixelIterator, getCurrentIteratorRow); ZEND_METHOD(ImagickPixelIterator, getIteratorRow); ZEND_METHOD(ImagickPixelIterator, getNextIteratorRow); ZEND_METHOD(ImagickPixelIterator, getPreviousIteratorRow); -ZEND_METHOD(ImagickPixelIterator, resetIterator); +ZEND_METHOD(ImagickPixelIterator, next); +ZEND_METHOD(ImagickPixelIterator, rewind); ZEND_METHOD(ImagickPixelIterator, newPixelIterator); ZEND_METHOD(ImagickPixelIterator, newPixelRegionIterator); +ZEND_METHOD(ImagickPixelIterator, resetIterator); ZEND_METHOD(ImagickPixelIterator, setIteratorFirstRow); ZEND_METHOD(ImagickPixelIterator, setIteratorLastRow); ZEND_METHOD(ImagickPixelIterator, setIteratorRow); @@ -198,8 +206,8 @@ static const zend_function_entry class_ImagickPixelIterator_methods[] = { ZEND_ME(ImagickPixelIterator, getNextIteratorRow, arginfo_class_ImagickPixelIterator_getNextIteratorRow, ZEND_ACC_PUBLIC) ZEND_ME(ImagickPixelIterator, getPreviousIteratorRow, arginfo_class_ImagickPixelIterator_getPreviousIteratorRow, ZEND_ACC_PUBLIC) ZEND_MALIAS(ImagickPixelIterator, key, getIteratorRow, arginfo_class_ImagickPixelIterator_key, ZEND_ACC_PUBLIC) - ZEND_MALIAS(ImagickPixelIterator, next, getNextIteratorRow, arginfo_class_ImagickPixelIterator_next, ZEND_ACC_PUBLIC) - ZEND_MALIAS(ImagickPixelIterator, rewind, resetIterator, arginfo_class_ImagickPixelIterator_rewind, ZEND_ACC_PUBLIC) + ZEND_ME(ImagickPixelIterator, next, arginfo_class_ImagickPixelIterator_next, ZEND_ACC_PUBLIC) + ZEND_ME(ImagickPixelIterator, rewind, arginfo_class_ImagickPixelIterator_rewind, ZEND_ACC_PUBLIC) ZEND_MALIAS(ImagickPixelIterator, current, getCurrentIteratorRow, arginfo_class_ImagickPixelIterator_current, ZEND_ACC_PUBLIC) ZEND_ME(ImagickPixelIterator, newPixelIterator, arginfo_class_ImagickPixelIterator_newPixelIterator, ZEND_ACC_PUBLIC) ZEND_ME(ImagickPixelIterator, newPixelRegionIterator, arginfo_class_ImagickPixelIterator_newPixelRegionIterator, ZEND_ACC_PUBLIC) diff --git a/imagickpixeliterator_class.c b/imagickpixeliterator_class.c index e94e0aab..ecc163e4 100644 --- a/imagickpixeliterator_class.c +++ b/imagickpixeliterator_class.c @@ -94,6 +94,31 @@ PHP_METHOD(ImagickPixelIterator, __construct) } /* }}} */ +/* {{{ proto void ImagickPixelIterator::rewind() + Resets the pixel iterator. Use it in conjunction with PixelGetNextIteratorRow() to iterate over all the pixels in a pixel container. +*/ +PHP_METHOD(ImagickPixelIterator, rewind) +{ + php_imagickpixeliterator_object *internpix; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } + + internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); + + if (!internpix->initialized) { + php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); + RETURN_THROWS(); + } + + PixelResetIterator(internpix->pixel_iterator); +#if MagickLibVersion <= 0x628 + internpix->iterator_position = 0; +#endif +} +/* }}} */ + /* {{{ proto bool ImagickPixelIterator::resetIterator() Resets the pixel iterator. Use it in conjunction with PixelGetNextIteratorRow() to iterate over all the pixels in a pixel container. */ @@ -540,6 +565,34 @@ PHP_METHOD(ImagickPixelIterator, getCurrentIteratorRow) } /* }}} */ +/* {{{ proto void ImagickPixelIterator::next() + Returns the next row as an array of pixel wands from the pixel iterator. +*/ +PHP_METHOD(ImagickPixelIterator, next) +{ + php_imagickpixeliterator_object *internpix; + PixelWand **wand_array; + size_t num_wands; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } + + internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); + + if (!internpix->initialized) { + php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); + return; + } + + wand_array = PixelGetNextIteratorRow(internpix->pixel_iterator, &num_wands); + +#if MagickLibVersion <= 0x628 + internpix->iterator_position++; +#endif +} +/* }}} */ + /* {{{ proto array ImagickPixelIterator::getNextIteratorRow() Returns the next row as an array of pixel wands from the pixel iterator. */ diff --git a/tests/252_ImagickPixelIterator_construct_basic.phpt b/tests/252_ImagickPixelIterator_construct_basic.phpt index e6019587..1f7d92a4 100644 --- a/tests/252_ImagickPixelIterator_construct_basic.phpt +++ b/tests/252_ImagickPixelIterator_construct_basic.phpt @@ -36,4 +36,4 @@ construct() ; echo "Ok"; ?> --EXPECTF-- -Ok \ No newline at end of file +Ok From d45e47863e796bb8527312d3c82db7ca1d211605 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 12:10:37 +0200 Subject: [PATCH 15/31] Fix Imagick::autoGammaImage() and autoOrient() proto --- Imagick.stub.php | 6 +- Imagick_arginfo.h | 4929 +++------------------------------ tests/263_autoGammaImage.phpt | 2 +- 3 files changed, 455 insertions(+), 4482 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 06216a03..d43ec26a 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1378,14 +1378,14 @@ public function optimizeImageTransparency(): void {} #endif #if MagickLibVersion >= 0x660 - public function autoGammaImage(?int $channel = Imagick::CHANNEL_ALL): void {} + public function autoGammaImage(?int $channel = Imagick::CHANNEL_ALL): ?bool {} #endif #if MagickLibVersion >= 0x692 - public function autoOrient(): void {} + public function autoOrient(): ?bool {} /** @alias Imagick::autoOrient */ - public function autoOrientate(): void {} + public function autoOrientate(): ?bool {} // COMPOSITE_* public function compositeImageGravity(Imagick $image, int $composite_constant, int $gravity): bool {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 7dc95f1a..febbe408 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -1,84 +1,32 @@ /* This is a generated file, edit the .stub.php file instead. -* Stub hash: regen with 'sh regen_arginfo.sh' -* file has been fixedup for different versions */ + * Stub hash: 58c2f017133dfce616940367bfa2bec55e6d0382 */ #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, image) -#endif + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif @@ -87,106 +35,32 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_trimImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_trimImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amplitude) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, length) -#endif + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amplitude) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, length) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -195,212 +69,66 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, matte) -#endif + ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, gray) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, azimuth) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, elevation) -#endif + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif @@ -410,63 +138,19 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high) -#endif + ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_rounding) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_rounding) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") -#else - ZEND_ARG_INFO(0, stroke_width) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") -#else - ZEND_ARG_INFO(0, displace) -#endif - + ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size_correction, IS_DOUBLE, 0, "-6") ZEND_END_ARG_INFO() #endif @@ -476,19 +160,8 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -497,250 +170,87 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_transformImage, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, crop) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, geometry) -#endif + ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, opacity) -#endif + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, threshold_map) -#endif + ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 0, 4) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, caption) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, format) -#endif + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 && IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif @@ -749,147 +259,54 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_extentImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_extentImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, orientation) -#endif + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion > 0x634 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixel_interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") -#else - ZEND_ARG_INFO(0, include_values) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() #endif @@ -898,55 +315,17 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_distortImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_distortImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, distortion) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, arguments) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, bestfit) -#endif + ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) + ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, format) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") ZEND_END_ARG_INFO() #endif @@ -955,312 +334,111 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, page) -#endif + ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, clip_mask, imagick, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_animateImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_animateImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, x_server) -#endif + ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, matrix) -#endif + ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setFont, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setFont, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, font) -#endif + ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, point_size) -#endif + ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, layermethod) -#endif + ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, alphachannel) -#endif + ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 6, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 0, 6) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, delta_x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, rigidity) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, passphrase) -#endif + ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) ZEND_END_ARG_INFO() #endif @@ -1269,861 +447,268 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setGravity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setGravity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x642 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 2, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference_image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 7, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 0, 7) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, map) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelstorage) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, pixels) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, cluster_threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, smooth_threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, verbose) -#endif - + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, sparsecolormethod) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, arguments) -#endif + ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_remapImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_remapImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, replacement, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dither_method) -#endif + ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if PHP_IMAGICK_HAVE_HOUGHLINE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x646 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 6, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 0, 6) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, map) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelstorage) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_functionImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_functionImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, function) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, parameters) -#endif + ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x651 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x652 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, clut, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, factor, IS_DOUBLE, 0, "1.5") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 1, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x667 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_smushImages, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_smushImages, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, stack) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() #endif ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___construct, 0, 0, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") -#else - ZEND_ARG_INFO(0, files) -#endif - + ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick___toString, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___toString, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 50600 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") -#else - ZEND_ARG_INFO(0, mode) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") ZEND_END_ARG_INFO() #endif #if !(PHP_VERSION_ID >= 50600) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, ImagickPixelIterator, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 4, ImagickPixelIterator, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, filename) -#endif + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, filenames) -#endif + ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, image) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, format) -#endif + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImages, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImages, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, filename) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, adjoin) -#endif + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blurImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blurImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, fill) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageFilename arginfo_class_Imagick___toString @@ -2134,44 +719,20 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageMimeType arginfo_class_Imagick___toString - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_destroy arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_clear arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_clone, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clone, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImagesBlob arginfo_class_Imagick___toString @@ -2190,817 +751,224 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_hasNextImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIndex arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_commentImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_commentImage, 0, 0, 1) -#endif + ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) +ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, comment) -#endif -ZEND_END_ARG_INFO() - - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_labelImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_labelImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, label) -#endif + ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_drawImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_drawImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, drawing, ImagickDraw, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, quality) -#endif + ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompressionQuality arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, compression) -#endif + ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompression arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, text) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_INFO(0, composite_image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, brightness) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, saturation) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, hue) -#endif + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColors arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_montageImage, 0, 5, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_montageImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, tile_geometry) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, thumbnail_geometry) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, monatgemode) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, frame) -#endif + ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, append_raw_output) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, threshold_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_whiteThresholdImage arginfo_class_Imagick_blackThresholdImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_appendImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_appendImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, stack) -#endif + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, levels) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif + ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, raise) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, filter) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, blur) -#endif + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, filter) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, blur) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rollImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rollImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, opacity) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, compose) -#endif + ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, delay) -#endif + ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, iterations) -#endif + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 || MagickLibVersion >= 0x705 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif @@ -3010,168 +978,53 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageProgressMonitor arginfo_class_Imagick_readImage #if MagickLibVersion > 0x653 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) -#else - ZEND_ARG_INFO(0, callback) -#endif + ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_resolution) -#endif + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, scene) -#endif + ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, ticks_per_second) -#endif + ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageType, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageType, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, image_type) -#endif + ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, units) -#endif + ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_sharpenImage arginfo_class_Imagick_blurImage #define arginfo_class_Imagick_shaveImage arginfo_class_Imagick_sampleImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shearImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shearImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_shear) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_shear) -#endif + ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spliceImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_pingImage arginfo_class_Imagick_readImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_displayImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_displayImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, servername) -#endif + ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_displayImages arginfo_class_Imagick_displayImage @@ -3179,508 +1032,160 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spreadImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_stripImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_queryFonts arginfo_class_Imagick_queryFormats - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, text) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") -#else - ZEND_ARG_INFO(0, multiline) -#endif - + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, watermark, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, noise) -#endif + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_ADD_NOISE_WITH_ATTENUATE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, noise) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, attenuate) -#endif + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_morphImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_frames) -#endif + ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_minifyImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_averageImages arginfo_class_Imagick_clone - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 4, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, original_width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, original_height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, desired_width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, desired_height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_chopImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_clipImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pathname) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, inside) -#endif + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pathname) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, inside) -#endif + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_coalesceImages arginfo_class_Imagick_clone #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, colorize_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING|MAY_BE_FALSE, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 3, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImages, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImages, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, sharpen) -#endif + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_combineImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_combineImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, displace) -#endif + ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_deconstructImages arginfo_class_Imagick_clone @@ -3695,42 +1200,15 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_equalizeImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, evaluate) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, constant) -#endif + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, evaluate) -#endif + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -3740,247 +1218,80 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_flopImage arginfo_class_Imagick_removeImage -#if MagickLibVersion >= 0x655 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, magnitude) -#endif +#if MagickLibVersion >= 0x655 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, inner_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, outer_bevel) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 6, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 0, 6) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, inner_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, outer_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_fxImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_fxImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, expression) -#endif + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_gaussianBlurImage arginfo_class_Imagick_blurImage #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageBluePrimary arginfo_class_Imagick_getImageGeometry #define arginfo_class_Imagick_getImageBorderColor arginfo_class_Imagick_getImageBackgroundColor - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 3, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageChannelStatistics arginfo_class_Imagick_getImageGeometry - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 1, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColorspace arginfo_class_Imagick_getImageSize @@ -3991,42 +1302,19 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageDepth arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 2, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImageDispose arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageGreenPrimary arginfo_class_Imagick_getImageGeometry @@ -4040,76 +1328,27 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIterations arginfo_class_Imagick_getImageSize #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImagePage arginfo_class_Imagick_getImageGeometry - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 2, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_SETIMAGEPIXELCOLOR - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 3, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageRedPrimary arginfo_class_Imagick_getImageGeometry @@ -4138,530 +1377,165 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageTotalInkDensity arginfo_class_Imagick_getImageGamma - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 4, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_implodeImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixel_interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x658 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, complement, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, magnitude) -#endif + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_magnifyImage arginfo_class_Imagick_removeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_mapImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mapImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, map, imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_negateImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_negateImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, gray) -#endif + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_previewImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_previewImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, preview) -#endif + ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_profileImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_profileImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, profile) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_colors) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, tree_depth) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, measure_error) -#endif + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_quantizeImages arginfo_class_Imagick_quantizeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_removeImageProfile arginfo_class_Imagick_getImageProfile - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, bias) -#endif + ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, bias) -#endif + ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, z) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if !(MagickLibVersion >= 0x700) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dispose) -#endif + ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageExtent arginfo_class_Imagick_sampleImage @@ -4674,40 +1548,13 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageGreenPrimary arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interlace) -#endif + ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, profile) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -4718,34 +1565,12 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageRedPrimary arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rendering_intent) -#endif + ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -4756,174 +1581,54 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageWhitePoint arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, sharpen) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, beta) -#endif + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, offset_image, Imagick, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_textureImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_textureImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, texture, Imagick, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_tintImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_tintImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, tint_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amount) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImage arginfo_class_Imagick_clone - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImage arginfo_class_Imagick_addImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") -#else - ZEND_ARG_INFO(0, format) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pseudo_format) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getCompression arginfo_class_Imagick_getImageSize @@ -4935,13 +1640,7 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getConfigureOptions arginfo_class_Imagick_queryFormats #if MagickLibVersion > 0x660 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, 0) -#endif - +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) ZEND_END_ARG_INFO() #endif @@ -4953,19 +1652,8 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getInterlaceScheme arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOption, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOption, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getPackageName arginfo_class_Imagick___toString @@ -4982,34 +1670,12 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getReleaseDate arginfo_class_Imagick___toString - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResource, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResource, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 1, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getSamplingFactors arginfo_class_Imagick_getImageGeometry @@ -5030,95 +1696,35 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setInterlaceScheme arginfo_class_Imagick_setImageInterlaceScheme - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOption, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOption, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setPage arginfo_class_Imagick_cropImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, limit) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setResolution arginfo_class_Imagick_setImageResolution - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, factors) -#endif + ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setSize arginfo_class_Imagick_sampleImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setType, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setType, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, imgtype) -#endif + ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion > 0x628 #define arginfo_class_Imagick_key arginfo_class_Imagick_getSizeOffset #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_next, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_next, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_rewind arginfo_class_Imagick_next @@ -5128,141 +1734,49 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_current arginfo_class_Imagick_clone #if MagickLibVersion >= 0x659 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, brightness) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, contrast) -#endif + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x661 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, color_matrix) -#endif + ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x689 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x683 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x652 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") -#else - ZEND_ARG_INFO(0, metric) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") ZEND_END_ARG_INFO() #endif @@ -5272,126 +1786,53 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setRegistry arginfo_class_Imagick_setOption - -#if PHP_VERSION_ID >= 80000 - ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) -#else - ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getRegistry, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_listRegistry arginfo_class_Imagick_getImageGeometry #if MagickLibVersion >= 0x680 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_morphology, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphology, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, morphology) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, iterations) -#endif + ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if defined(IMAGICK_WITH_KERNEL) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_filter, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_filter, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_UNDEFINED") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, antialias) -#endif + ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getAntialias arginfo_class_Imagick_removeImage #if MagickLibVersion > 0x676 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, color_correction_collection) -#endif + ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x687 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x660 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, 0) -#endif - +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, _IS_BOOL, 1) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_ALL") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, 0) -#endif - +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, _IS_BOOL, 1) ZEND_END_ARG_INFO() #endif @@ -5400,716 +1841,248 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite_constant) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x693 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, strength) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 1, Imagick, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelmask) -#endif + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, clip_mask, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelmask) -#endif + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x709 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, lower_percent) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, upper_percent) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SETSEED - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSeed, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSeed, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, seed) -#endif + ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WAVELETDENOISEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, softness) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_MEANSHIFTIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, color_distance) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_KMEANSIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_colors) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, max_iterations) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, tolerance) -#endif + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_RANGETHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low_black) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low_white) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high_white) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high_black) -#endif + ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_AUTOTHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, auto_threshold_method) -#endif + ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_BILATERALBLURIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, intensity_sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, spatial_sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CLAHEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_claheImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_claheImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_bins) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, clip_limit) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CHANNELFXIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, expression) -#endif + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COLORTHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, start_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, stop_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COMPLEXIMAGES - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_complexImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_complexImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, complex_operator) -#endif + ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_INTERPOLATIVERESIZEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIMAGECOLORS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, black_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, white_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIZEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_ORDEREDDITHERIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, dither_format) -#endif + ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WHITEBALANCEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_DELETE_OPTION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, option) -#endif + ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_BACKGROUND_COLOR - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_ARTIFACTS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_KURTOSIS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_MEAN - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_RANGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_INTERPOLATE_METHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_OPTIONS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_ORIENTATION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_RESOLUTION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_TYPE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getType, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getType, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_POLYNOMIAL_IMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, terms) -#endif + ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_DEPTH - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setDepth, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_EXTRACT - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setExtract, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setExtract, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, geometry) -#endif + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_INTERPOLATE_METHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_ORIENTATION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, orientation) -#endif + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -7712,4 +3685,4 @@ static const zend_function_entry class_Imagick_methods[] = { ZEND_ME(Imagick, setOrientation, arginfo_class_Imagick_setOrientation, ZEND_ACC_PUBLIC) #endif ZEND_FE_END -}; \ No newline at end of file +}; diff --git a/tests/263_autoGammaImage.phpt b/tests/263_autoGammaImage.phpt index 5bb10f5b..694fc148 100644 --- a/tests/263_autoGammaImage.phpt +++ b/tests/263_autoGammaImage.phpt @@ -19,4 +19,4 @@ echo "Ok"; ?> --EXPECT-- -Ok \ No newline at end of file +Ok From 529bb5dff8a15e7f69c2e05621205892f849c26c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 12:12:17 +0200 Subject: [PATCH 16/31] Fix Imagick::localContrastImage proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 4921 +++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 4475 insertions(+), 448 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index d43ec26a..2fec3ee7 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1393,7 +1393,7 @@ public function compositeImageGravity(Imagick $image, int $composite_constant, i #endif #if MagickLibVersion >= 0x693 - public function localContrastImage(float $radius, float $strength): void {} + public function localContrastImage(float $radius, float $strength): ?bool {} #endif #if MagickLibVersion >= 0x700 diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index febbe408..9f20fa0e 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -1,32 +1,84 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 58c2f017133dfce616940367bfa2bec55e6d0382 */ +* Stub hash: regen with 'sh regen_arginfo.sh' +* file has been fixedup for different versions */ #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, image) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -35,32 +87,106 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_trimImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_trimImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amplitude) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, length) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amplitude) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, length) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif @@ -69,66 +195,212 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, matte) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, gray) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, azimuth) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, elevation) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif @@ -138,19 +410,63 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_rounding) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_rounding) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") +#else + ZEND_ARG_INFO(0, stroke_width) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") +#else + ZEND_ARG_INFO(0, displace) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size_correction, IS_DOUBLE, 0, "-6") ZEND_END_ARG_INFO() #endif @@ -160,8 +476,19 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #endif @@ -170,87 +497,250 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_transformImage, 0, 2, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, crop) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, geometry) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, opacity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, threshold_map) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 0, 4) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, caption) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, format) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 && IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_END_ARG_INFO() #endif @@ -259,54 +749,147 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_extentImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_extentImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, orientation) +#endif ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion > 0x634 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixel_interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") +#else + ZEND_ARG_INFO(0, include_values) +#endif + ZEND_END_ARG_INFO() #endif @@ -315,17 +898,55 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_distortImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_distortImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, distortion) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, arguments) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, bestfit) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, format) +#endif + ZEND_END_ARG_INFO() #endif @@ -334,111 +955,312 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, page) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, clip_mask, imagick, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_animateImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_animateImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, x_server) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, matrix) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setFont, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setFont, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, font) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, point_size) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, layermethod) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, alphachannel) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 6, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 0, 6) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, delta_x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, rigidity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, passphrase) +#endif ZEND_END_ARG_INFO() #endif @@ -447,268 +1269,861 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setGravity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setGravity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x642 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 2, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference_image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 7, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 0, 7) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, map) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelstorage) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, pixels) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, cluster_threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, smooth_threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, verbose) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, sparsecolormethod) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, arguments) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_remapImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_remapImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, replacement, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, dither_method) +#endif ZEND_END_ARG_INFO() #endif #if PHP_IMAGICK_HAVE_HOUGHLINE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x646 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 6, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 0, 6) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, map) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelstorage) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_functionImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_functionImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, function) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, parameters) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x651 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x652 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, clut, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, factor, IS_DOUBLE, 0, "1.5") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 1, IS_STRING, 1) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x667 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_smushImages, 0, 2, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_smushImages, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, stack) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() #endif ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___construct, 0, 0, 0) - ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") +#else + ZEND_ARG_INFO(0, files) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick___toString, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___toString, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 50600 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") +#else + ZEND_ARG_INFO(0, mode) +#endif + ZEND_END_ARG_INFO() #endif #if !(PHP_VERSION_ID >= 50600) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, ImagickPixelIterator, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 4, ImagickPixelIterator, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, filename) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, filenames) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, image) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, format) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImages, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImages, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, filename) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, adjoin) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blurImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blurImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, fill) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageFilename arginfo_class_Imagick___toString @@ -719,20 +2134,44 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageMimeType arginfo_class_Imagick___toString + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_destroy arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_clear arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_clone, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clone, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImagesBlob arginfo_class_Imagick___toString @@ -751,224 +2190,817 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_hasNextImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIndex arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_commentImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) -ZEND_END_ARG_INFO() +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_commentImage, 0, 0, 1) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, comment) +#endif +ZEND_END_ARG_INFO() + + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_labelImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_labelImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, label) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_drawImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_drawImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, drawing, ImagickDraw, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, quality) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompressionQuality arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, compression) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompression arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, text) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_INFO(0, composite_image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, brightness) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, saturation) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, hue) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColors arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_montageImage, 0, 5, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_montageImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, tile_geometry) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, thumbnail_geometry) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, monatgemode) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, frame) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, append_raw_output) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, threshold_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_whiteThresholdImage arginfo_class_Imagick_blackThresholdImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_appendImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_appendImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, stack) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, levels) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, raise) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, filter) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, blur) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, filter) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, blur) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rollImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rollImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, opacity) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, compose) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, delay) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, iterations) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 || MagickLibVersion >= 0x705 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif @@ -978,53 +3010,168 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageProgressMonitor arginfo_class_Imagick_readImage #if MagickLibVersion > 0x653 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) +#else + ZEND_ARG_INFO(0, callback) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_resolution) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, scene) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, ticks_per_second) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageType, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageType, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, image_type) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, units) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_sharpenImage arginfo_class_Imagick_blurImage #define arginfo_class_Imagick_shaveImage arginfo_class_Imagick_sampleImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shearImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shearImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_shear) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_shear) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spliceImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_pingImage arginfo_class_Imagick_readImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_displayImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_displayImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, servername) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_displayImages arginfo_class_Imagick_displayImage @@ -1032,160 +3179,508 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spreadImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_stripImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_queryFonts arginfo_class_Imagick_queryFormats + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, text) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") +#else + ZEND_ARG_INFO(0, multiline) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 2, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, watermark, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, noise) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_ADD_NOISE_WITH_ATTENUATE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, noise) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, attenuate) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_morphImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_frames) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_minifyImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_averageImages arginfo_class_Imagick_clone + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 4, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, original_width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, original_height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, desired_width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, desired_height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_chopImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_clipImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pathname) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, inside) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 2, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pathname) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, inside) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_coalesceImages arginfo_class_Imagick_clone #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, colorize_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING|MAY_BE_FALSE, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 3, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImages, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImages, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, sharpen) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_combineImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_combineImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, displace) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_deconstructImages arginfo_class_Imagick_clone @@ -1200,15 +3695,42 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_equalizeImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, evaluate) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, constant) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, evaluate) +#endif ZEND_END_ARG_INFO() #endif @@ -1219,79 +3741,246 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_flopImage arginfo_class_Imagick_removeImage #if MagickLibVersion >= 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, magnitude) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, inner_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, outer_bevel) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 6, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 0, 6) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, inner_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, outer_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_fxImage, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_fxImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, expression) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_gaussianBlurImage arginfo_class_Imagick_blurImage #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageBluePrimary arginfo_class_Imagick_getImageGeometry #define arginfo_class_Imagick_getImageBorderColor arginfo_class_Imagick_getImageBackgroundColor + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 3, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageChannelStatistics arginfo_class_Imagick_getImageGeometry + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 1, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColorspace arginfo_class_Imagick_getImageSize @@ -1302,19 +3991,42 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageDepth arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 2, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImageDispose arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageGreenPrimary arginfo_class_Imagick_getImageGeometry @@ -1328,27 +4040,76 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIterations arginfo_class_Imagick_getImageSize #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImagePage arginfo_class_Imagick_getImageGeometry + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 2, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_SETIMAGEPIXELCOLOR + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 3, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageRedPrimary arginfo_class_Imagick_getImageGeometry @@ -1377,165 +4138,530 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageTotalInkDensity arginfo_class_Imagick_getImageGamma + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 4, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_implodeImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixel_interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x658 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, complement, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, magnitude) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_magnifyImage arginfo_class_Imagick_removeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_mapImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mapImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, map, imagick, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_negateImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_negateImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, gray) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_previewImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_previewImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, preview) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_profileImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_profileImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, profile) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_colors) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, tree_depth) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, measure_error) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_quantizeImages arginfo_class_Imagick_quantizeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_removeImageProfile arginfo_class_Imagick_getImageProfile + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, bias) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, bias) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, z) +#endif ZEND_END_ARG_INFO() #endif #if !(MagickLibVersion >= 0x700) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, dispose) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageExtent arginfo_class_Imagick_sampleImage @@ -1548,13 +4674,40 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageGreenPrimary arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interlace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, profile) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -1565,12 +4718,34 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageRedPrimary arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rendering_intent) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -1581,54 +4756,174 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageWhitePoint arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, sharpen) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, beta) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, offset_image, Imagick, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_textureImage, 0, 1, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_textureImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, texture, Imagick, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_tintImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_tintImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, tint_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amount) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImage arginfo_class_Imagick_clone + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImage arginfo_class_Imagick_addImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") +#else + ZEND_ARG_INFO(0, format) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pseudo_format) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getCompression arginfo_class_Imagick_getImageSize @@ -1640,7 +4935,13 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getConfigureOptions arginfo_class_Imagick_queryFormats #if MagickLibVersion > 0x660 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -1652,8 +4953,19 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getInterlaceScheme arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOption, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOption, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getPackageName arginfo_class_Imagick___toString @@ -1670,12 +4982,34 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getReleaseDate arginfo_class_Imagick___toString + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResource, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResource, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 1, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getSamplingFactors arginfo_class_Imagick_getImageGeometry @@ -1696,35 +5030,95 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setInterlaceScheme arginfo_class_Imagick_setImageInterlaceScheme + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOption, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOption, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setPage arginfo_class_Imagick_cropImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, limit) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setResolution arginfo_class_Imagick_setImageResolution + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, factors) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setSize arginfo_class_Imagick_sampleImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setType, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setType, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, imgtype) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion > 0x628 #define arginfo_class_Imagick_key arginfo_class_Imagick_getSizeOffset #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_next, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_next, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_rewind arginfo_class_Imagick_next @@ -1734,49 +5128,141 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_current arginfo_class_Imagick_clone #if MagickLibVersion >= 0x659 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, brightness) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, contrast) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x661 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, color_matrix) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x689 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x683 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x652 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 1, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") +#else + ZEND_ARG_INFO(0, metric) +#endif + ZEND_END_ARG_INFO() #endif @@ -1786,53 +5272,126 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setRegistry arginfo_class_Imagick_setOption -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) +#else + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getRegistry, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_listRegistry arginfo_class_Imagick_getImageGeometry #if MagickLibVersion >= 0x680 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_morphology, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphology, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, morphology) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, iterations) +#endif ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if defined(IMAGICK_WITH_KERNEL) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_filter, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_filter, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_UNDEFINED") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, antialias) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getAntialias arginfo_class_Imagick_removeImage #if MagickLibVersion > 0x676 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, color_correction_collection) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x687 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x660 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_ALL") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -1841,248 +5400,716 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite_constant) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x693 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, strength) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 1, Imagick, 1) - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelmask) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, clip_mask, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelmask) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x709 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, lower_percent) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, upper_percent) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SETSEED + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSeed, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSeed, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, seed) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WAVELETDENOISEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, softness) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_MEANSHIFTIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, color_distance) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_KMEANSIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_colors) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, max_iterations) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, tolerance) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_RANGETHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low_black) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low_white) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high_white) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high_black) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_AUTOTHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, auto_threshold_method) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_BILATERALBLURIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, intensity_sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, spatial_sigma) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CLAHEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_claheImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_claheImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_bins) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, clip_limit) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CHANNELFXIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, expression) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COLORTHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, start_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, stop_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COMPLEXIMAGES + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_complexImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_complexImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, complex_operator) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_INTERPOLATIVERESIZEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIMAGECOLORS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, black_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, white_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIZEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_ORDEREDDITHERIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, dither_format) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WHITEBALANCEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_DELETE_OPTION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, option) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_BACKGROUND_COLOR + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_ARTIFACTS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_KURTOSIS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_MEAN + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_RANGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_INTERPOLATE_METHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_OPTIONS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_ORIENTATION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_RESOLUTION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_TYPE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getType, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getType, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_POLYNOMIAL_IMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, terms) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_DEPTH + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setDepth, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_EXTRACT + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setExtract, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setExtract, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, geometry) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_INTERPOLATE_METHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_ORIENTATION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, orientation) +#endif ZEND_END_ARG_INFO() #endif @@ -3685,4 +7712,4 @@ static const zend_function_entry class_Imagick_methods[] = { ZEND_ME(Imagick, setOrientation, arginfo_class_Imagick_setOrientation, ZEND_ACC_PUBLIC) #endif ZEND_FE_END -}; +}; \ No newline at end of file From a16c885b03012bdc351bd940a4eabfd0f1612bc7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 12:14:09 +0200 Subject: [PATCH 17/31] Fix Imagick::optimizeimagetransparency proto --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 4927 +++------------------------ tests/278_Imagick_optimaze_gif.phpt | 2 +- 3 files changed, 452 insertions(+), 4479 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 2fec3ee7..7f5f14e6 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1374,7 +1374,7 @@ public function colorDecisionListImage(string $color_correction_collection): boo #endif #if MagickLibVersion >= 0x687 - public function optimizeImageTransparency(): void {} + public function optimizeImageTransparency(): ?bool {} #endif #if MagickLibVersion >= 0x660 diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 9f20fa0e..8763c895 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -1,84 +1,32 @@ /* This is a generated file, edit the .stub.php file instead. -* Stub hash: regen with 'sh regen_arginfo.sh' -* file has been fixedup for different versions */ + * Stub hash: ed28a435ee72118f7644e4fd7d699592c1c2551b */ #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, image) -#endif + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif @@ -87,106 +35,32 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_trimImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_trimImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amplitude) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, length) -#endif + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amplitude) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, length) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -195,212 +69,66 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, matte) -#endif + ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, gray) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, azimuth) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, elevation) -#endif + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif @@ -410,63 +138,19 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high) -#endif + ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_rounding) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_rounding) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") -#else - ZEND_ARG_INFO(0, stroke_width) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") -#else - ZEND_ARG_INFO(0, displace) -#endif - + ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size_correction, IS_DOUBLE, 0, "-6") ZEND_END_ARG_INFO() #endif @@ -476,19 +160,8 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -497,250 +170,87 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_transformImage, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, crop) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, geometry) -#endif + ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, opacity) -#endif + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, threshold_map) -#endif + ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 0, 4) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, caption) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, format) -#endif + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 && IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif @@ -749,147 +259,54 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_extentImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_extentImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, orientation) -#endif + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion > 0x634 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixel_interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") -#else - ZEND_ARG_INFO(0, include_values) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") ZEND_END_ARG_INFO() #endif @@ -898,55 +315,17 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_distortImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_distortImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, distortion) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, arguments) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, bestfit) -#endif + ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) + ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, format) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") ZEND_END_ARG_INFO() #endif @@ -955,312 +334,111 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, page) -#endif + ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, clip_mask, imagick, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_animateImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_animateImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, x_server) -#endif + ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, matrix) -#endif + ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setFont, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setFont, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, font) -#endif + ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, point_size) -#endif + ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, layermethod) -#endif + ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, alphachannel) -#endif + ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 6, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 0, 6) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, delta_x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, rigidity) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, passphrase) -#endif + ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) ZEND_END_ARG_INFO() #endif @@ -1269,861 +447,268 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setGravity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setGravity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x642 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 2, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference_image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 7, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 0, 7) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, map) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelstorage) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, pixels) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, cluster_threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, smooth_threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, verbose) -#endif - + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, sparsecolormethod) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, arguments) -#endif + ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_remapImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_remapImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, replacement, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dither_method) -#endif + ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if PHP_IMAGICK_HAVE_HOUGHLINE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x646 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 6, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 0, 6) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, map) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelstorage) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_functionImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_functionImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, function) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, parameters) -#endif + ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x651 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x652 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, clut, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, factor, IS_DOUBLE, 0, "1.5") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 1, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, artifact) -#endif + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x667 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_smushImages, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_smushImages, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, stack) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() #endif ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___construct, 0, 0, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") -#else - ZEND_ARG_INFO(0, files) -#endif - + ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick___toString, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___toString, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 50600 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") -#else - ZEND_ARG_INFO(0, mode) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") ZEND_END_ARG_INFO() #endif #if !(PHP_VERSION_ID >= 50600) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, ImagickPixelIterator, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 4, ImagickPixelIterator, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, filename) -#endif + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, filenames) -#endif + ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, image) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, format) -#endif + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImages, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImages, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, filename) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, adjoin) -#endif + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blurImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blurImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, fill) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageFilename arginfo_class_Imagick___toString @@ -2134,44 +719,20 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageMimeType arginfo_class_Imagick___toString - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_destroy arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_clear arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_clone, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clone, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, IS_STRING, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImagesBlob arginfo_class_Imagick___toString @@ -2190,817 +751,224 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_hasNextImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIndex arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_commentImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_commentImage, 0, 0, 1) -#endif + ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) +ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, comment) -#endif -ZEND_END_ARG_INFO() - - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_labelImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_labelImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, label) -#endif + ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_drawImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_drawImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, drawing, ImagickDraw, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, quality) -#endif + ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompressionQuality arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, compression) -#endif + ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompression arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, text) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 0, 4) -#endif - ZEND_ARG_OBJ_INFO(0, composite_image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, brightness) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, saturation) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, hue) -#endif + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColors arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_montageImage, 0, 5, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_montageImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, tile_geometry) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, thumbnail_geometry) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, monatgemode) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, frame) -#endif + ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, 0) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, append_raw_output) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, threshold_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_whiteThresholdImage arginfo_class_Imagick_blackThresholdImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_appendImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_appendImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, stack) -#endif + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, levels) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif + ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, raise) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, filter) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, blur) -#endif + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, filter) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, blur) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, bestfit) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rollImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rollImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, opacity) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, compose) -#endif + ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, delay) -#endif + ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, iterations) -#endif + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 || MagickLibVersion >= 0x705 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif @@ -3010,168 +978,53 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageProgressMonitor arginfo_class_Imagick_readImage #if MagickLibVersion > 0x653 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) -#else - ZEND_ARG_INFO(0, callback) -#endif + ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_resolution) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_resolution) -#endif + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, scene) -#endif + ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, ticks_per_second) -#endif + ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageType, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageType, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, image_type) -#endif + ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, units) -#endif + ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_sharpenImage arginfo_class_Imagick_blurImage #define arginfo_class_Imagick_shaveImage arginfo_class_Imagick_sampleImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shearImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shearImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x_shear) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y_shear) -#endif + ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spliceImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_pingImage arginfo_class_Imagick_readImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) -#else - ZEND_ARG_INFO(0, filehandle) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") -#else - ZEND_ARG_INFO(0, filename) -#endif - + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_displayImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_displayImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, servername) -#endif + ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_displayImages arginfo_class_Imagick_displayImage @@ -3179,508 +1032,160 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spreadImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, degrees) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_stripImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_queryFonts arginfo_class_Imagick_queryFormats - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, text) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") -#else - ZEND_ARG_INFO(0, multiline) -#endif - + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 2, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, watermark, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, offset) -#endif + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, noise) -#endif + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_ADD_NOISE_WITH_ATTENUATE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, noise) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, attenuate) -#endif + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_morphImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_frames) -#endif + ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_minifyImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_averageImages arginfo_class_Imagick_clone - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 0, 4) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 4, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, original_width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, original_height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, desired_width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, desired_height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_chopImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_clipImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pathname) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, inside) -#endif + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 2, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pathname) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, inside) -#endif + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_coalesceImages arginfo_class_Imagick_clone #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, colorize_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING|MAY_BE_FALSE, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 3, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImages, 0, 2, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImages, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, sharpen) -#endif + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_combineImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_combineImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, displace) -#endif + ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_deconstructImages arginfo_class_Imagick_clone @@ -3695,42 +1200,15 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_equalizeImage arginfo_class_Imagick_removeImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, evaluate) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, constant) -#endif + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, evaluate) -#endif + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -3740,247 +1218,80 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_flopImage arginfo_class_Imagick_removeImage -#if MagickLibVersion >= 0x655 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, magnitude) -#endif +#if MagickLibVersion >= 0x655 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImage, 0, 0, 5) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, inner_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, outer_bevel) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 6, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 0, 6) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, inner_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, outer_bevel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_fxImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_fxImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, expression) -#endif + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_gaussianBlurImage arginfo_class_Imagick_blurImage #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageBluePrimary arginfo_class_Imagick_getImageGeometry #define arginfo_class_Imagick_getImageBorderColor arginfo_class_Imagick_getImageBackgroundColor - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 3, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 1, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageChannelStatistics arginfo_class_Imagick_getImageGeometry - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 1, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColorspace arginfo_class_Imagick_getImageSize @@ -3991,42 +1302,19 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageDepth arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 2, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, metric) -#endif + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImageDispose arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageGreenPrimary arginfo_class_Imagick_getImageGeometry @@ -4040,76 +1328,27 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIterations arginfo_class_Imagick_getImageSize #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImagePage arginfo_class_Imagick_getImageGeometry - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 2, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_SETIMAGEPIXELCOLOR - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 3, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageRedPrimary arginfo_class_Imagick_getImageGeometry @@ -4138,530 +1377,165 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageTotalInkDensity arginfo_class_Imagick_getImageGamma - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 4, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_implodeImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixel_interpolate_method) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x658 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, complement, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, magnitude) -#endif + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_magnifyImage arginfo_class_Imagick_removeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_mapImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mapImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, map, imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_negateImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_negateImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, gray) -#endif + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, fuzz) -#endif + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_previewImages, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_previewImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, preview) -#endif + ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_profileImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_profileImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) -#else - ZEND_ARG_INFO(0, profile) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 5, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 0, 5) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_colors) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, tree_depth) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, dither) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, measure_error) -#endif + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_quantizeImages arginfo_class_Imagick_quantizeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_removeImageProfile arginfo_class_Imagick_getImageProfile - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, bias) -#endif + ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, bias) -#endif + ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, z) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if !(MagickLibVersion >= 0x700) - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, x) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, y) -#endif + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 0, 1) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, channel) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, index) -#endif + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, colorspace) -#endif + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, dispose) -#endif + ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageExtent arginfo_class_Imagick_sampleImage @@ -4674,40 +1548,13 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageGreenPrimary arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interlace) -#endif + ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, name) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, profile) -#endif + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -4718,34 +1565,12 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageRedPrimary arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rendering_intent) -#endif + ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -4756,174 +1581,54 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageWhitePoint arginfo_class_Imagick_setImageBluePrimary #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, sharpen) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, alpha) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, beta) -#endif + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, offset_image, Imagick, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_textureImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_textureImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, texture, Imagick, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_tintImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_tintImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, tint_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") -#else - ZEND_ARG_INFO(0, legacy) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, amount) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImage arginfo_class_Imagick_clone - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addImage, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImage arginfo_class_Imagick_addImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") -#else - ZEND_ARG_INFO(0, format) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, pseudo_format) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getCompression arginfo_class_Imagick_getImageSize @@ -4935,13 +1640,7 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getConfigureOptions arginfo_class_Imagick_queryFormats #if MagickLibVersion > 0x660 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, 0) -#endif - +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) ZEND_END_ARG_INFO() #endif @@ -4953,19 +1652,8 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getInterlaceScheme arginfo_class_Imagick_getImageSize - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOption, 0, 1, IS_STRING, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOption, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getPackageName arginfo_class_Imagick___toString @@ -4982,34 +1670,12 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getReleaseDate arginfo_class_Imagick___toString - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResource, 0, 1, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResource, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) ZEND_END_ARG_INFO() - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 1, IS_DOUBLE, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getSamplingFactors arginfo_class_Imagick_getImageGeometry @@ -5030,95 +1696,35 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setInterlaceScheme arginfo_class_Imagick_setImageInterlaceScheme - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOption, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOption, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, value) -#endif + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setPage arginfo_class_Imagick_cropImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, limit) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setResolution arginfo_class_Imagick_setImageResolution - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, factors) -#endif + ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setSize arginfo_class_Imagick_sampleImage - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setType, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setType, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, imgtype) -#endif + ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) ZEND_END_ARG_INFO() #if MagickLibVersion > 0x628 #define arginfo_class_Imagick_key arginfo_class_Imagick_getSizeOffset #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_next, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_next, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #define arginfo_class_Imagick_rewind arginfo_class_Imagick_next @@ -5128,141 +1734,49 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_current arginfo_class_Imagick_clone #if MagickLibVersion >= 0x659 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, brightness) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, contrast) -#endif + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x661 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, color_matrix) -#endif + ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x689 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, angle) -#endif + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x683 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, type) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x652 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") -#else - ZEND_ARG_INFO(0, metric) -#endif - + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") ZEND_END_ARG_INFO() #endif @@ -5272,126 +1786,53 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setRegistry arginfo_class_Imagick_setOption - -#if PHP_VERSION_ID >= 80000 - ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) -#else - ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getRegistry, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, key) -#endif +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_listRegistry arginfo_class_Imagick_getImageGeometry #if MagickLibVersion >= 0x680 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_morphology, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphology, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, morphology) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, iterations) -#endif + ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if defined(IMAGICK_WITH_KERNEL) && MagickLibVersion < 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_filter, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_filter, 0, 0, 1) -#endif - ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_UNDEFINED") ZEND_END_ARG_INFO() #endif - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, antialias) -#endif + ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getAntialias arginfo_class_Imagick_removeImage #if MagickLibVersion > 0x676 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, color_correction_collection) -#endif + ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x687 - -#if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, 0) -#endif - +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, _IS_BOOL, 1) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x660 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, _IS_BOOL, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_ALL") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, _IS_BOOL, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif @@ -5400,716 +1841,248 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 0, 3) -#endif - ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, composite_constant) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, gravity) -#endif + ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x693 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, _IS_BOOL, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, strength) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 1, Imagick, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelmask) -#endif + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 1) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 0, 2) -#endif - ZEND_ARG_OBJ_INFO(0, clip_mask, Imagick, 0) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, pixelmask) -#endif + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x709 - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, lower_percent) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, upper_percent) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SETSEED - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSeed, 0, 1, IS_VOID, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSeed, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, seed) -#endif + ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WAVELETDENOISEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 0, 2) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, threshold) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, softness) -#endif + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_MEANSHIFTIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, color_distance) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_KMEANSIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_colors) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, max_iterations) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, tolerance) -#endif + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_RANGETHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low_black) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, low_white) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high_white) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, high_black) -#endif + ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_AUTOTHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, auto_threshold_method) -#endif + ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_BILATERALBLURIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, radius) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, intensity_sigma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, spatial_sigma) -#endif + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CLAHEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_claheImage, 0, 4, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_claheImage, 0, 0, 4) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, width) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, height) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, number_bins) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, clip_limit) -#endif + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CHANNELFXIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, expression) -#endif + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COLORTHRESHOLDIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 2, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 0, 2) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, start_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, stop_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COMPLEXIMAGES - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_complexImages, 0, 1, Imagick, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_complexImages, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, complex_operator) -#endif + ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_INTERPOLATIVERESIZEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, columns) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, rows) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, interpolate) -#endif + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) + ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIMAGECOLORS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 0, 3) -#endif - ZEND_ARG_OBJ_TYPE_MASK(0, black_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, white_color, ImagickPixel, MAY_BE_STRING, NULL) - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) -#else - ZEND_ARG_INFO(0, invert) -#endif + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIZEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 3, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 0, 3) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, black_point) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, gamma) -#endif - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) -#else - ZEND_ARG_INFO(0, white_point) -#endif + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_ORDEREDDITHERIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, dither_format) -#endif + ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WHITEBALANCEIMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_DELETE_OPTION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, option) -#endif + ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_BACKGROUND_COLOR - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, ImagickPixel, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_ARTIFACTS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_KURTOSIS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_MEAN - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_RANGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_INTERPOLATE_METHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_OPTIONS - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, 0) -#endif - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_ORIENTATION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_RESOLUTION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, IS_ARRAY, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_TYPE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getType, 0, 0, IS_LONG, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getType, 0, 0, 0) -#endif - ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_POLYNOMIAL_IMAGE - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) -#else - ZEND_ARG_INFO(0, terms) -#endif + ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_DEPTH - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setDepth, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setDepth, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, depth) -#endif + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_EXTRACT - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setExtract, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setExtract, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) -#else - ZEND_ARG_INFO(0, geometry) -#endif + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_INTERPOLATE_METHOD - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, method) -#endif + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_ORIENTATION - -#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 1, _IS_BOOL, 0) -#else -ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 0, 1) -#endif - - -#if PHP_VERSION_ID >= 80000 - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) -#else - ZEND_ARG_INFO(0, orientation) -#endif + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) ZEND_END_ARG_INFO() #endif @@ -7712,4 +3685,4 @@ static const zend_function_entry class_Imagick_methods[] = { ZEND_ME(Imagick, setOrientation, arginfo_class_Imagick_setOrientation, ZEND_ACC_PUBLIC) #endif ZEND_FE_END -}; \ No newline at end of file +}; diff --git a/tests/278_Imagick_optimaze_gif.phpt b/tests/278_Imagick_optimaze_gif.phpt index 1092b1c7..6054e2ff 100644 --- a/tests/278_Imagick_optimaze_gif.phpt +++ b/tests/278_Imagick_optimaze_gif.phpt @@ -83,4 +83,4 @@ Frame: 2 Frame: 3 Frame: 4 Frame: 5 -Ok \ No newline at end of file +Ok From c4aa095e7ef36a7c98072085e641670b901f9159 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 12:24:55 +0200 Subject: [PATCH 18/31] regen --- Imagick.stub.php | 2 +- Imagick_arginfo.h | 4921 +++++++++++++++++++++++++++++--- tests/246_antialias_image.phpt | 2 +- 3 files changed, 4476 insertions(+), 449 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 7f5f14e6..dc832053 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1349,7 +1349,7 @@ public function filter(ImagickKernel $kernel, int $channel = Imagick::CHANNEL_UN #endif #endif - public function setAntialias(bool $antialias): void {} + public function setAntialias(bool $antialias): bool {} public function getAntialias(): bool {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 8763c895..7b86624a 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -1,32 +1,84 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: ed28a435ee72118f7644e4fd7d699592c1c2551b */ +* Stub hash: regen with 'sh regen_arginfo.sh' +* file has been fixedup for different versions */ #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageLayers, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageLayers, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageBlob, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, image) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_pingImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transposeImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -35,32 +87,106 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_trimImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_trimImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amplitude) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, length) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveImageWithMethod, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amplitude, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amplitude) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, length, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, length) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_vignetteImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif @@ -69,66 +195,212 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatte, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatte, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, matte, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, matte) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveResizeImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sketchImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, gray) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, azimuth, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, azimuth) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, elevation, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, elevation) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getSizeOffset, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSizeOffset, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveBlurImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastStretchImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif @@ -138,19 +410,63 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_randomThresholdImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_roundCornersImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_rounding, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_rounding) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_rounding, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_rounding) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, stroke_width, IS_DOUBLE, 0, "10") +#else + ZEND_ARG_INFO(0, stroke_width) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, displace, IS_DOUBLE, 0, "5") +#else + ZEND_ARG_INFO(0, displace) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, size_correction, IS_DOUBLE, 0, "-6") ZEND_END_ARG_INFO() #endif @@ -160,8 +476,19 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setIteratorIndex, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #endif @@ -170,87 +497,250 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x628 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_transformImage, 0, 2, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, crop, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, crop) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, geometry) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOpacity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, opacity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlpha, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x630 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedPosterizeImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold_map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, threshold_map) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidWithTextAndMethod, 0, 0, 4) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, caption, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, caption) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polaroidImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperty, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProperty, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageProperty, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyFormat, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, format) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 && IM_HAVE_IMAGICK_SETIMAGEINTERPOLATEMETHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterpolateMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageInterpolateMethod, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_linearStretchImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_END_ARG_INFO() #endif @@ -259,54 +749,147 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x631 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_extentImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_extentImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageOrientation, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x633 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageOrientation, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, orientation) +#endif ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion > 0x634 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintFloodfillImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clutImageWithInterpolate, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, lookup_table, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixel_interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProperties, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_values, _IS_BOOL, 0, "true") +#else + ZEND_ARG_INFO(0, include_values) +#endif + ZEND_END_ARG_INFO() #endif @@ -315,17 +898,55 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_distortImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_distortImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, distortion, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, distortion) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, arguments) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bestfit, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, bestfit) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, format) +#endif + ZEND_END_ARG_INFO() #endif @@ -334,111 +955,312 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resetImagePage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, page, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, page) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageClipMask, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, clip_mask, imagick, 0) ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageClipMask, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_animateImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_animateImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_server, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, x_server) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x635 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_recolorImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, matrix, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, matrix) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setFont, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setFont, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, font, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, font) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFont, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setPointSize, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, point_size, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, point_size) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPointSize, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x636 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mergeImageLayers, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, layermethod, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, layermethod) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAlphaChannel, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alphachannel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, alphachannel) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 6, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_floodfillPaintImage, 0, 0, 6) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_opaquePaintImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x637 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transparentPaintImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_liquidRescaleImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, delta_x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, delta_x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rigidity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, rigidity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x638 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_encipherImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, passphrase, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, passphrase) +#endif ZEND_END_ARG_INFO() #endif @@ -447,268 +1269,861 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setGravity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setGravity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getGravity, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelRange, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x639 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAlphaChannel, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x642 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 2, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortions, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference_image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGravity, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x643 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGravity, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 7, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_importImagePixels, 0, 0, 7) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, map) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelstorage) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixels, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, pixels) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deskewImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_segmentImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, cluster_threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, cluster_threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, smooth_threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, smooth_threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, verbose, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, verbose) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sparseColorImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sparsecolormethod, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, sparsecolormethod) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, arguments, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, arguments) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x645 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_remapImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_remapImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, replacement, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, dither_method) +#endif ZEND_END_ARG_INFO() #endif #if PHP_IMAGICK_HAVE_HOUGHLINE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_houghLineImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x646 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 6, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_exportImagePixels, 0, 0, 6) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, map, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, map) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelstorage, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelstorage) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelKurtosis, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x648 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_functionImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_functionImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, function, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, function) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, parameters, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, parameters) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x651 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_transformImageColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x652 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_haldClutImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, clut, Imagick, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoLevelImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blueShiftImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, factor, IS_DOUBLE, 0, "1.5") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 1, IS_STRING, 1) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifact, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageArtifact, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteImageArtifact, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, artifact, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, artifact) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getColorspace, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x656 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clampImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x667 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_smushImages, 0, 2, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_smushImages, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, stack) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() #endif ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___construct, 0, 0, 0) - ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, "null") +#else + ZEND_ARG_INFO(0, files) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick___toString, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick___toString, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 50600 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "0") +#else + ZEND_ARG_INFO(0, mode) +#endif + ZEND_END_ARG_INFO() #endif #if !(PHP_VERSION_ID >= 50600) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_count, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_count, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, ImagickPixelIterator, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelIterator, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 4, ImagickPixelIterator, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getPixelRegionIterator, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, filename) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filenames, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, filenames) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageBlob, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, image) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageFormat, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, format) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_scaleImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImage, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_writeImages, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_writeImages, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, filename) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, adjoin, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, adjoin) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blurImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blurImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thumbnailImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 1) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fill, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, fill) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropThumbnailImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageFilename arginfo_class_Imagick___toString @@ -719,20 +2134,44 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageMimeType arginfo_class_Imagick___toString + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_removeImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_destroy arginfo_class_Imagick_removeImage #define arginfo_class_Imagick_clear arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_clone, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clone, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageSize, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBlob, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImagesBlob arginfo_class_Imagick___toString @@ -751,224 +2190,817 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_hasNextImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIndex, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIndex arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_commentImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) -ZEND_END_ARG_INFO() +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_commentImage, 0, 0, 1) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, comment, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, comment) +#endif +ZEND_END_ARG_INFO() + + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cropImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cropImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_labelImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_labelImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, label, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, label) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGeometry, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_drawImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_drawImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, drawing, ImagickDraw, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompressionQuality, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, quality, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, quality) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompressionQuality arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompression, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, compression, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, compression) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageCompression arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_annotateImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, text) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImage, 0, 0, 4) +#endif + ZEND_ARG_OBJ_INFO(0, composite_image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_modulateImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, brightness) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, saturation, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, saturation) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, hue, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, hue) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColors arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_montageImage, 0, 5, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_montageImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tile_geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, tile_geometry) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, thumbnail_geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, thumbnail_geometry) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, monatgemode, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, monatgemode) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, frame, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, frame) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImage, 0, 0, 0) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, append_raw_output, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, append_raw_output) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_thresholdImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_adaptiveThresholdImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_blackThresholdImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, threshold_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_whiteThresholdImage arginfo_class_Imagick_blackThresholdImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_appendImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_appendImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, stack, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, stack) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_charcoalImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_normalizeImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImageWithSigma, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_oilPaintImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_posterizeImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, levels, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, levels) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_radialBlurImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_raiseImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, raise, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, raise) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resampleImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, filter) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, blur) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_resizeImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filter, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, filter) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, blur, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, blur) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, bestfit, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, bestfit) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rollImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rollImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotateImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sampleImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_solarizeImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shadowImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, opacity, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, opacity) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageAttribute, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBackgroundColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelMask, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageCompose, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, compose, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, compose) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDelay, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, delay, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, delay) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageGamma, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageIterations, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, iterations) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 || MagickLibVersion >= 0x705 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMatteColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif @@ -978,53 +3010,168 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageProgressMonitor arginfo_class_Imagick_readImage #if MagickLibVersion > 0x653 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setProgressMonitor, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 0) +#else + ZEND_ARG_INFO(0, callback) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageResolution, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_resolution) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_resolution, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_resolution) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageScene, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, scene, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, scene) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageTicksPerSecond, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, ticks_per_second, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, ticks_per_second) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageType, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageType, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, image_type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, image_type) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageUnits, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, units, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, units) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_sharpenImage arginfo_class_Imagick_blurImage #define arginfo_class_Imagick_shaveImage arginfo_class_Imagick_sampleImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_shearImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_shearImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x_shear, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x_shear) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y_shear, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y_shear) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spliceImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_pingImage arginfo_class_Imagick_readImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_readImageFile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, filehandle, IS_MIXED, 0) +#else + ZEND_ARG_INFO(0, filehandle) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, filename, IS_STRING, 1, "null") +#else + ZEND_ARG_INFO(0, filename) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_displayImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_displayImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, servername, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, servername) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_displayImages arginfo_class_Imagick_displayImage @@ -1032,160 +3179,508 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_spreadImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_spreadImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_swirlImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, degrees, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, degrees) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_stripImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFormats, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_queryFonts arginfo_class_Imagick_queryFormats + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_queryFontMetrics, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) - ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, text) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, multiline, _IS_BOOL, 1, "null") +#else + ZEND_ARG_INFO(0, multiline) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 2, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_steganoImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, watermark, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, offset) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, noise) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_ADD_NOISE_WITH_ATTENUATE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addNoiseImageWithAttenuate, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, noise, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, noise) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, attenuate, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, attenuate) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_motionBlurImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mosaicImages, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_morphImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_frames, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_frames) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_minifyImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_affineTransformImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, settings, ImagickDraw, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_averageImages arginfo_class_Imagick_clone + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 4, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_borderImageWithComposite, 0, 0, 4) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 4, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_calculateCrop, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, original_width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, original_width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, original_height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, original_height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, desired_width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, desired_width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, desired_height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, desired_height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_chopImage arginfo_class_Imagick_cropImage #define arginfo_class_Imagick_clipImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipPathImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pathname) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, inside) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 2, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_clipImagePath, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pathname, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pathname) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inside, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, inside) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_coalesceImages arginfo_class_Imagick_clone #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorFloodfillImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorizeImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, colorize_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING|MAY_BE_FALSE, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 1, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 3, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImageChannels, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compareImages, 0, 2, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compareImages, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_contrastImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, sharpen) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_combineImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_combineImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cycleColormapImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, displace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, displace) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_deconstructImages arginfo_class_Imagick_clone @@ -1200,15 +3695,42 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_equalizeImage arginfo_class_Imagick_removeImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, evaluate) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, constant, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, constant) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_evaluateImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, evaluate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, evaluate) +#endif ZEND_END_ARG_INFO() #endif @@ -1219,79 +3741,246 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_flopImage arginfo_class_Imagick_removeImage #if MagickLibVersion >= 0x655 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_forwardFourierTransformImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, magnitude) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImage, 0, 5, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImage, 0, 0, 5) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, inner_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, outer_bevel) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 6, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_frameImageWithComposite, 0, 0, 6) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, matte_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, inner_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, inner_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, outer_bevel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, outer_bevel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_fxImage, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_fxImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, expression) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_gammaImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_gaussianBlurImage arginfo_class_Imagick_blurImage #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageAttribute, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageBackgroundColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageBluePrimary arginfo_class_Imagick_getImageGeometry #define arginfo_class_Imagick_getImageBorderColor arginfo_class_Imagick_getImageBackgroundColor + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 3, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelDistortion, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelExtrema, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 1, IS_ARRAY, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageChannelMean, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageChannelStatistics arginfo_class_Imagick_getImageGeometry + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 1, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageColormapColor, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageColorspace arginfo_class_Imagick_getImageSize @@ -1302,19 +3991,42 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageDepth arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 2, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageDistortion, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, reference, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, metric, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, metric) +#endif ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageExtrema, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImageDispose arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageGamma, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageGreenPrimary arginfo_class_Imagick_getImageGeometry @@ -1328,27 +4040,76 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageIterations arginfo_class_Imagick_getImageSize #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMatteColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_getImagePage arginfo_class_Imagick_getImageGeometry + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 2, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImagePixelColor, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_SETIMAGEPIXELCOLOR + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 3, ImagickPixel, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImagePixelColor, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageProfile, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageRedPrimary arginfo_class_Imagick_getImageGeometry @@ -1377,165 +4138,530 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImageTotalInkDensity arginfo_class_Imagick_getImageGamma + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 4, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRegion, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_implodeImage arginfo_class_Imagick_oilPaintImage #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_implodeImageWithMethod, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixel_interpolate_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixel_interpolate_method) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x658 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_inverseFourierTransformImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, complement, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, magnitude, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, magnitude) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_magnifyImage arginfo_class_Imagick_removeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_mapImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_mapImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, map, imagick, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_matteFloodfillImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 && !defined(MAGICKCORE_EXCLUDE_DEPRECATED) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_medianFilterImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_negateImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_negateImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gray, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, gray) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintOpaqueImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, fill_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_paintTransparentImage, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, target_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, fuzz, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, fuzz) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_previewImages, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_previewImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, preview, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, preview) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_profileImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_profileImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 1) +#else + ZEND_ARG_INFO(0, profile) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 5, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_quantizeImage, 0, 0, 5) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_colors) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tree_depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, tree_depth) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, dither) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, measure_error, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, measure_error) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_quantizeImages arginfo_class_Imagick_quantizeImage #if !defined(MAGICKCORE_EXCLUDE_DEPRECATED) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_reduceNoiseImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif ZEND_END_ARG_INFO() #endif #define arginfo_class_Imagick_removeImageProfile arginfo_class_Imagick_getImageProfile + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_separateImageChannel, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sepiaToneImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBias, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bias, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, bias) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBiasQuantum, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, bias, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, bias) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, z, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, z) +#endif ZEND_END_ARG_INFO() #endif #if !(MagickLibVersion >= 0x700) + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBluePrimary, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, x, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, x) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, y, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, y) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageBorderColor, 0, 0, 1) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, border_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageChannelDepth, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, channel, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, channel) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColormapColor, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, index, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, index) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageColorspace, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, colorspace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, colorspace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageDispose, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dispose, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, dispose) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageExtent arginfo_class_Imagick_sampleImage @@ -1548,13 +4674,40 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageGreenPrimary arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageInterlaceScheme, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interlace, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interlace) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageProfile, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, name) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, profile, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, profile) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -1565,12 +4718,34 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageRedPrimary arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageRenderingIntent, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rendering_intent, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rendering_intent) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageVirtualPixelMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x700 @@ -1581,54 +4756,174 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImageWhitePoint arginfo_class_Imagick_setImageBluePrimary #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_sigmoidalContrastImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sharpen, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, sharpen) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, alpha, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, alpha) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, beta, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, beta) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_stereoImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, offset_image, Imagick, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_textureImage, 0, 1, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_textureImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, texture, Imagick, 0) ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_tintImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_tintImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, tint_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, opacity_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, legacy, _IS_BOOL, 0, "false") +#else + ZEND_ARG_INFO(0, legacy) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_unsharpMaskImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, amount, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, amount) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getImage arginfo_class_Imagick_clone + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_addImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_addImage, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setImage arginfo_class_Imagick_addImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif ZEND_ARG_OBJ_TYPE_MASK(0, background_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, format, IS_STRING, 0, "null") +#else + ZEND_ARG_INFO(0, format) +#endif + ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_newPseudoImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pseudo_format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, pseudo_format) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getCompression arginfo_class_Imagick_getImageSize @@ -1640,7 +4935,13 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getConfigureOptions arginfo_class_Imagick_queryFormats #if MagickLibVersion > 0x660 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getFeatures, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -1652,8 +4953,19 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getInterlaceScheme arginfo_class_Imagick_getImageSize + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOption, 0, 1, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOption, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getPackageName arginfo_class_Imagick___toString @@ -1670,12 +4982,34 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getReleaseDate arginfo_class_Imagick___toString + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResource, 0, 1, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResource, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif ZEND_END_ARG_INFO() + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 1, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResourceLimit, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getSamplingFactors arginfo_class_Imagick_getImageGeometry @@ -1696,35 +5030,95 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setInterlaceScheme arginfo_class_Imagick_setImageInterlaceScheme + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOption, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) - ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOption, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, value, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, value) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setPage arginfo_class_Imagick_cropImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setResourceLimit, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, limit, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, limit) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setResolution arginfo_class_Imagick_setImageResolution + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSamplingFactors, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, factors, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, factors) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setSize arginfo_class_Imagick_sampleImage + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setType, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setType, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, imgtype, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, imgtype) +#endif ZEND_END_ARG_INFO() #if MagickLibVersion > 0x628 #define arginfo_class_Imagick_key arginfo_class_Imagick_getSizeOffset #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_next, 0, 0, IS_VOID, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_next, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #define arginfo_class_Imagick_rewind arginfo_class_Imagick_next @@ -1734,49 +5128,141 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_current arginfo_class_Imagick_clone #if MagickLibVersion >= 0x659 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_brightnessContrastImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, brightness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, brightness) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, contrast, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, contrast) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion > 0x661 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorMatrixImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_matrix, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, color_matrix) +#endif ZEND_END_ARG_INFO() #endif + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_selectiveBlurImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x689 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rotationalBlurImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, angle, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, angle) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x683 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_statisticImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, type, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, type) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x652 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 1, Imagick, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, metric, IS_LONG, 0, "0") +#else + ZEND_ARG_INFO(0, metric) +#endif + ZEND_END_ARG_INFO() #endif @@ -1786,53 +5272,126 @@ ZEND_END_ARG_INFO() #define arginfo_class_Imagick_setRegistry arginfo_class_Imagick_setOption -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) - ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_Imagick_getRegistry, 0, 1, MAY_BE_FALSE|MAY_BE_STRING) +#else + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getRegistry, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, key, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, key) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_listRegistry arginfo_class_Imagick_getImageGeometry #if MagickLibVersion >= 0x680 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_morphology, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_morphology, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, morphology, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, morphology) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, iterations) +#endif ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() #endif #if defined(IMAGICK_WITH_KERNEL) && MagickLibVersion < 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_filter, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_filter, 0, 0, 1) +#endif + ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_UNDEFINED") ZEND_END_ARG_INFO() #endif -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setAntialias, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, antialias, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, antialias) +#endif ZEND_END_ARG_INFO() #define arginfo_class_Imagick_getAntialias arginfo_class_Imagick_removeImage #if MagickLibVersion > 0x676 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorDecisionListImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_correction_collection, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, color_correction_collection) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x687 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x660 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 1, "Imagick::CHANNEL_ALL") ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif @@ -1841,248 +5400,716 @@ ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x692 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_compositeImageGravity, 0, 0, 3) +#endif + ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, composite_constant, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, composite_constant) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gravity, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, gravity) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x693 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, _IS_BOOL, 1) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, strength, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, strength) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x700 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_identifyImageType, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 1, Imagick, 1) - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMask, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelmask) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GETSETIMAGEMASK + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 1) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 0, 2) +#endif + ZEND_ARG_OBJ_INFO(0, clip_mask, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, pixelmask, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, pixelmask) +#endif ZEND_END_ARG_INFO() #endif #if MagickLibVersion >= 0x709 + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_cannyEdgeImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, lower_percent, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, lower_percent) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, upper_percent, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, upper_percent) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SETSEED + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setSeed, 0, 1, IS_VOID, 0) - ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setSeed, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, seed, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, seed) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WAVELETDENOISEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 2, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_waveletDenoiseImage, 0, 0, 2) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, threshold, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, threshold) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, softness, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, softness) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_MEANSHIFTIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_meanShiftImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, color_distance, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, color_distance) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_KMEANSIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_kmeansImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_colors, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_colors) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, max_iterations, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, max_iterations) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, tolerance, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, tolerance) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_RANGETHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_rangeThresholdImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low_black, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low_black) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, low_white, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, low_white) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high_white, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high_white) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, high_black, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, high_black) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_AUTOTHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoThresholdImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, auto_threshold_method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, auto_threshold_method) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_BILATERALBLURIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_bilateralBlurImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, radius, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, radius) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, intensity_sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, intensity_sigma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, spatial_sigma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, spatial_sigma) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CLAHEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_claheImage, 0, 4, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_claheImage, 0, 0, 4) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, width) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, height) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, number_bins, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, number_bins) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, clip_limit, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, clip_limit) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_CHANNELFXIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_channelFxImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, expression, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, expression) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COLORTHRESHOLDIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 2, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_colorThresholdImage, 0, 0, 2) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, start_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, stop_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_COMPLEXIMAGES + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_complexImages, 0, 1, Imagick, 0) - ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_complexImages, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, complex_operator, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, complex_operator) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_INTERPOLATIVERESIZEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) - ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_interpolativeResizeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, columns, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, columns) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, rows, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, rows) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, interpolate, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, interpolate) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIMAGECOLORS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 3, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelImageColors, 0, 0, 3) +#endif + ZEND_ARG_OBJ_TYPE_MASK(0, black_color, ImagickPixel, MAY_BE_STRING, NULL) ZEND_ARG_OBJ_TYPE_MASK(0, white_color, ImagickPixel, MAY_BE_STRING, NULL) - ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, invert, _IS_BOOL, 0) +#else + ZEND_ARG_INFO(0, invert) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_LEVELIZEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 3, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) - ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_levelizeImage, 0, 0, 3) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, black_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, black_point) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, gamma, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, gamma) +#endif + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, white_point, IS_DOUBLE, 0) +#else + ZEND_ARG_INFO(0, white_point) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_ORDEREDDITHERIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_orderedDitherImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, dither_format, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, dither_format) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_WHITEBALANCEIMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_whiteBalanceImage, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_DELETE_OPTION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_deleteOption, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, option, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, option) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_BACKGROUND_COLOR + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, ImagickPixel, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getBackgroundColor, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_ARTIFACTS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageArtifacts, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_KURTOSIS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageKurtosis, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_MEAN + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageMean, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_IMAGE_RANGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getImageRange, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_INTERPOLATE_METHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getInterpolateMethod, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_OPTIONS + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOptions, 0, 0, 0) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, pattern, IS_STRING, 0, "\"*\"") ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_ORIENTATION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getOrientation, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_RESOLUTION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getResolution, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_GET_TYPE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_getType, 0, 0, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_getType, 0, 0, 0) +#endif + ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_POLYNOMIAL_IMAGE + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_polynomialImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, terms, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, terms) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_DEPTH + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setDepth, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setDepth, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, depth, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, depth) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_EXTRACT + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setExtract, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setExtract, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, geometry, IS_STRING, 0) +#else + ZEND_ARG_INFO(0, geometry) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_INTERPOLATE_METHOD + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setInterpolateMethod, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, method, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, method) +#endif ZEND_END_ARG_INFO() #endif #if IM_HAVE_IMAGICK_SET_ORIENTATION + +#if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 1, _IS_BOOL, 0) - ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setOrientation, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, orientation, IS_LONG, 0) +#else + ZEND_ARG_INFO(0, orientation) +#endif ZEND_END_ARG_INFO() #endif @@ -3685,4 +7712,4 @@ static const zend_function_entry class_Imagick_methods[] = { ZEND_ME(Imagick, setOrientation, arginfo_class_Imagick_setOrientation, ZEND_ACC_PUBLIC) #endif ZEND_FE_END -}; +}; \ No newline at end of file diff --git a/tests/246_antialias_image.phpt b/tests/246_antialias_image.phpt index b90bbe3d..14cf6753 100644 --- a/tests/246_antialias_image.phpt +++ b/tests/246_antialias_image.phpt @@ -25,4 +25,4 @@ echo PHP_EOL; --EXPECTF-- true false -true \ No newline at end of file +true From 118db29e753f6e79abfb306908d9c5b3323c302c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 13:41:56 +0200 Subject: [PATCH 19/31] remove null case (as exception is raised --- Imagick.stub.php | 12 ++++++------ Imagick_arginfo.h | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index dc832053..93771e18 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -1374,18 +1374,18 @@ public function colorDecisionListImage(string $color_correction_collection): boo #endif #if MagickLibVersion >= 0x687 - public function optimizeImageTransparency(): ?bool {} + public function optimizeImageTransparency(): bool {} #endif #if MagickLibVersion >= 0x660 - public function autoGammaImage(?int $channel = Imagick::CHANNEL_ALL): ?bool {} + public function autoGammaImage(?int $channel = Imagick::CHANNEL_ALL): bool {} #endif #if MagickLibVersion >= 0x692 - public function autoOrient(): ?bool {} + public function autoOrient(): bool {} /** @alias Imagick::autoOrient */ - public function autoOrientate(): ?bool {} + public function autoOrientate(): bool {} // COMPOSITE_* public function compositeImageGravity(Imagick $image, int $composite_constant, int $gravity): bool {} @@ -1393,7 +1393,7 @@ public function compositeImageGravity(Imagick $image, int $composite_constant, i #endif #if MagickLibVersion >= 0x693 - public function localContrastImage(float $radius, float $strength): ?bool {} + public function localContrastImage(float $radius, float $strength): bool {} #endif #if MagickLibVersion >= 0x700 @@ -1407,7 +1407,7 @@ public function identifyImageType(): int {} public function getImageMask(int $pixelmask): ?Imagick {} // PIXELMASK_* - public function setImageMask(Imagick $clip_mask, int $pixelmask): ?bool {} + public function setImageMask(Imagick $clip_mask, int $pixelmask): bool {} #endif diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 7b86624a..f19edc3c 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -5364,7 +5364,7 @@ ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x687 #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, _IS_BOOL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, _IS_BOOL, 0) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_optimizeImageTransparency, 0, 0, 0) #endif @@ -5375,7 +5375,7 @@ ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x660 #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, _IS_BOOL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, _IS_BOOL, 0) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoGammaImage, 0, 0, 0) #endif @@ -5387,7 +5387,7 @@ ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x692 #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, _IS_BOOL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, _IS_BOOL, 0) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_autoOrient, 0, 0, 0) #endif @@ -5426,7 +5426,7 @@ ZEND_END_ARG_INFO() #if MagickLibVersion >= 0x693 #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, _IS_BOOL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 2, _IS_BOOL, 0) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_localContrastImage, 0, 0, 2) #endif @@ -5477,7 +5477,7 @@ ZEND_END_ARG_INFO() #if IM_HAVE_IMAGICK_GETSETIMAGEMASK #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 1) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 2, _IS_BOOL, 0) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_setImageMask, 0, 0, 2) #endif From 2fc846535687bd1497755597a8a716ad73393444 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 14:14:22 +0200 Subject: [PATCH 20/31] fix ImagickDraw - use RETURN_THROWS when possible - fix setFillColor, setStrokeColor, setTextUnderColor and setBorderColor to return FALSE instead of NULL on error - fix getTextEncoding and getClipPath proto (may return false) --- ImagickDraw.stub.php | 4 +- ImagickDraw_arginfo.h | 11 +- imagickdraw_class.c | 357 ++++++++++++++++++++---------------------- 3 files changed, 178 insertions(+), 194 deletions(-) diff --git a/ImagickDraw.stub.php b/ImagickDraw.stub.php index 91946e28..fd5fdbe0 100644 --- a/ImagickDraw.stub.php +++ b/ImagickDraw.stub.php @@ -140,7 +140,7 @@ public function point(float $x, float $y): bool {} public function getTextDecoration(): int {} - public function getTextEncoding(): string {} + public function getTextEncoding(): false|string {} public function getFontStretch(): int {} @@ -180,7 +180,7 @@ public function color(float $x, float $y, int $paint): bool {} public function comment(string $comment): bool {} - public function getClipPath(): string {} + public function getClipPath(): false|string {} public function getClipRule(): int {} diff --git a/ImagickDraw_arginfo.h b/ImagickDraw_arginfo.h index 295d04d8..e77a380b 100644 --- a/ImagickDraw_arginfo.h +++ b/ImagickDraw_arginfo.h @@ -689,7 +689,14 @@ ZEND_END_ARG_INFO() #define arginfo_class_ImagickDraw_getTextDecoration arginfo_class_ImagickDraw_getFontStyle -#define arginfo_class_ImagickDraw_getTextEncoding arginfo_class_ImagickDraw_getFont + +#if PHP_VERSION_ID >= 80000 + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_class_ImagickDraw_getTextEncoding, 0, 0, MAY_BE_FALSE|MAY_BE_STRING) +#else + ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickDraw_getTextEncoding, 0, 0, 0) +#endif + +ZEND_END_ARG_INFO() #define arginfo_class_ImagickDraw_getFontStretch arginfo_class_ImagickDraw_getFontStyle @@ -904,7 +911,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickDraw_comment, 0, 0, 1) #endif ZEND_END_ARG_INFO() -#define arginfo_class_ImagickDraw_getClipPath arginfo_class_ImagickDraw_getFont +#define arginfo_class_ImagickDraw_getClipPath arginfo_class_ImagickDraw_getTextEncoding #define arginfo_class_ImagickDraw_getClipRule arginfo_class_ImagickDraw_getFontStyle diff --git a/imagickdraw_class.c b/imagickdraw_class.c index da00cbba..1703f997 100644 --- a/imagickdraw_class.c +++ b/imagickdraw_class.c @@ -32,7 +32,7 @@ PHP_METHOD(ImagickDraw, resetVectorGraphics) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -51,7 +51,7 @@ PHP_METHOD(ImagickDraw, getTextKerning) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -68,7 +68,7 @@ PHP_METHOD(ImagickDraw, setTextKerning) double kerning; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &kerning) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -85,7 +85,7 @@ PHP_METHOD(ImagickDraw, getTextInterwordSpacing) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -102,7 +102,7 @@ PHP_METHOD(ImagickDraw, setTextInterwordSpacing) double spacing; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &spacing) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -121,7 +121,7 @@ PHP_METHOD(ImagickDraw, getTextInterlineSpacing) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -138,7 +138,7 @@ PHP_METHOD(ImagickDraw, setTextInterlineSpacing) double spacing; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &spacing) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -173,7 +173,7 @@ PHP_METHOD(ImagickDraw, circle) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &ox, &oy, &px, &py) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -193,7 +193,7 @@ PHP_METHOD(ImagickDraw, rectangle) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &x1, &y1, &x2, &y2) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -213,7 +213,7 @@ PHP_METHOD(ImagickDraw, roundRectangle) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddddd", &x1, &y1, &x2, &y2, &rx, &ry) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -233,7 +233,7 @@ PHP_METHOD(ImagickDraw, ellipse) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddddd", &ox, &oy, &rx, &ry, &start, &end) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -253,7 +253,7 @@ PHP_METHOD(ImagickDraw, skewX) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", °rees) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -273,7 +273,7 @@ PHP_METHOD(ImagickDraw, skewY) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", °rees) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -293,7 +293,7 @@ PHP_METHOD(ImagickDraw, translate) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -314,14 +314,14 @@ PHP_METHOD(ImagickDraw, setFillColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; color_wand = php_imagick_zval_to_pixelwand(param, IMAGICKDRAW_CLASS, &allocated TSRMLS_CC); if (!color_wand) - return; + RETURN_FALSE; DrawSetFillColor(internd->drawing_wand, color_wand); if (allocated) @@ -343,7 +343,7 @@ PHP_METHOD(ImagickDraw, setResolution) DrawingWand *d_wand; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -354,7 +354,7 @@ PHP_METHOD(ImagickDraw, setResolution) if (!density) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Failed to allocate memory" TSRMLS_CC); - return; + RETURN_THROWS(); } draw_info = PeekDrawingWand(internd->drawing_wand); @@ -369,7 +369,7 @@ PHP_METHOD(ImagickDraw, setResolution) if (!d_wand) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Failed to allocate new DrawingWand structure" TSRMLS_CC); - return; + RETURN_THROWS(); } php_imagick_replace_drawingwand(internd, d_wand); @@ -388,14 +388,14 @@ PHP_METHOD(ImagickDraw, setStrokeColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; color_wand = php_imagick_zval_to_pixelwand (param, IMAGICKDRAW_CLASS, &allocated TSRMLS_CC); if (!color_wand) - return; + RETURN_FALSE; DrawSetStrokeColor(internd->drawing_wand, color_wand); if (allocated) @@ -416,7 +416,7 @@ PHP_METHOD(ImagickDraw, setFillAlpha) IMAGICK_METHOD_DEPRECATED("ImagickDraw", "setFillAlpha"); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &opacity) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -439,7 +439,7 @@ PHP_METHOD(ImagickDraw, setTextAntialias) zend_bool antialias; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &antialias) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -462,7 +462,7 @@ PHP_METHOD(ImagickDraw, setTextEncoding) IM_LEN_TYPE encoding_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &encoding, &encoding_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -483,7 +483,7 @@ PHP_METHOD(ImagickDraw, setStrokeAlpha) IMAGICK_METHOD_DEPRECATED("ImagickDraw", "setStrokeAlpha"); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &opacity) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -506,7 +506,7 @@ PHP_METHOD(ImagickDraw, setStrokeWidth) double width; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &width) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -529,13 +529,13 @@ PHP_METHOD(ImagickDraw, setFont) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &font, &font_len) == FAILURE) { - return; + RETURN_THROWS(); } /* Check that no empty string is passed */ if (font_len == 0) { php_imagick_throw_exception (IMAGICKDRAW_CLASS, "Can not set empty font" TSRMLS_CC); - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -545,7 +545,7 @@ PHP_METHOD(ImagickDraw, setFont) if ((absolute = expand_filepath(font, NULL TSRMLS_CC)) == NULL) { php_imagick_throw_exception (IMAGICKDRAW_CLASS, "Unable to set font, file path expansion failed" TSRMLS_CC); - return; + RETURN_THROWS(); } /* Do an access check for the font */ @@ -553,7 +553,7 @@ PHP_METHOD(ImagickDraw, setFont) // Failed php_imagick_imagickdraw_rw_fail_to_exception (internd->drawing_wand, rc, absolute TSRMLS_CC); efree(absolute); - return; + RETURN_THROWS(); } status = DrawSetFont(internd->drawing_wand, absolute); efree(absolute); @@ -564,7 +564,7 @@ PHP_METHOD(ImagickDraw, setFont) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to set font" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -583,18 +583,18 @@ PHP_METHOD(ImagickDraw, setFontFamily) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &font_family, &font_family_len) == FAILURE) { - return; + RETURN_THROWS(); } /* Check that no empty string is passed */ if (font_family_len == 0) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Can not set empty font family" TSRMLS_CC); - return; + RETURN_THROWS(); } if (!php_imagick_check_font(font_family, font_family_len TSRMLS_CC )) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Unable to set font family; parameter not found in the list of configured fonts" TSRMLS_CC); - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -602,7 +602,7 @@ PHP_METHOD(ImagickDraw, setFontFamily) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to set font family" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -619,7 +619,7 @@ PHP_METHOD(ImagickDraw, setFontSize) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &font_size) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -639,7 +639,7 @@ PHP_METHOD(ImagickDraw, setFontStyle) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &style_id) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -659,7 +659,7 @@ PHP_METHOD(ImagickDraw, setFontWeight) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &weight) == FAILURE) { - return; + RETURN_THROWS(); } if (weight >= 100 && weight <= 900) { @@ -668,7 +668,6 @@ PHP_METHOD(ImagickDraw, setFontWeight) RETURN_TRUE; } php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Font weight valid range is 100-900" TSRMLS_CC); - return; } /* }}} */ @@ -694,7 +693,7 @@ PHP_METHOD(ImagickDraw, setFontStretch) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &stretch) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -714,7 +713,7 @@ PHP_METHOD(ImagickDraw, setStrokeAntialias) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &antialias) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -735,7 +734,7 @@ PHP_METHOD(ImagickDraw, setTextAlignment) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &align) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -756,7 +755,7 @@ PHP_METHOD(ImagickDraw, setTextDecoration) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &decoration) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -777,14 +776,14 @@ PHP_METHOD(ImagickDraw, setTextUnderColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; color_wand = php_imagick_zval_to_pixelwand (param, IMAGICKDRAW_CLASS, &allocated TSRMLS_CC); if (!color_wand) - return; + RETURN_FALSE; DrawSetTextUnderColor(internd->drawing_wand, color_wand); if (allocated) @@ -804,7 +803,7 @@ PHP_METHOD(ImagickDraw, setViewbox) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &x1, &y1, &x2, &y2) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -822,7 +821,7 @@ PHP_METHOD(ImagickDraw, getFont) char *font; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -834,7 +833,6 @@ PHP_METHOD(ImagickDraw, getFont) } else { IM_ZVAL_STRING(return_value, font); IMAGICK_FREE_MAGICK_MEMORY(font); - return; } } /* }}} */ @@ -848,7 +846,7 @@ PHP_METHOD(ImagickDraw, getFontFamily) char *font_family; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -859,7 +857,6 @@ PHP_METHOD(ImagickDraw, getFontFamily) } else { IM_ZVAL_STRING(return_value, font_family); IMAGICK_FREE_MAGICK_MEMORY(font_family); - return; } } /* }}} */ @@ -873,14 +870,13 @@ PHP_METHOD(ImagickDraw, getFontSize) double font_size; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); font_size = DrawGetFontSize(internd->drawing_wand); ZVAL_DOUBLE(return_value, font_size); - return; } /* }}} */ @@ -893,14 +889,13 @@ PHP_METHOD(ImagickDraw, getFontStyle) long font_style; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); font_style = DrawGetFontStyle(internd->drawing_wand); ZVAL_LONG(return_value, font_style); - return; } /* }}} */ @@ -913,14 +908,13 @@ PHP_METHOD(ImagickDraw, getFontWeight) long weight; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; weight = DrawGetFontWeight(internd->drawing_wand); ZVAL_LONG(return_value, weight); - return; } /* }}} */ @@ -932,7 +926,7 @@ PHP_METHOD(ImagickDraw, clear) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -950,14 +944,13 @@ PHP_METHOD(ImagickDraw, getTextDecoration) long decoration; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; decoration = DrawGetTextDecoration(internd->drawing_wand); ZVAL_LONG(return_value, decoration); - return; } /* }}} */ @@ -970,7 +963,7 @@ PHP_METHOD(ImagickDraw, getTextEncoding) char *encoding; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -981,7 +974,6 @@ PHP_METHOD(ImagickDraw, getTextEncoding) } else { IM_ZVAL_STRING(return_value, encoding); IMAGICK_FREE_MAGICK_MEMORY(encoding); - return; } } /* }}} */ @@ -1001,7 +993,7 @@ PHP_METHOD(ImagickDraw, annotation) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dds", &x, &y, &text, &text_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1011,7 +1003,7 @@ PHP_METHOD(ImagickDraw, annotation) /* Fixes PECL Bug #11328 */ if (!font) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Font needs to be set before annotating an image" TSRMLS_CC); - return; + RETURN_THROWS(); } #endif @@ -1030,7 +1022,7 @@ PHP_METHOD(ImagickDraw, arc) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddddd", &sx, &sy, &ex, &ey, &sd, &ed) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1053,7 +1045,7 @@ PHP_METHOD(ImagickDraw, matte) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddl", &x, &y, &paint_method) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1082,7 +1074,7 @@ PHP_METHOD(ImagickDraw, alpha) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddl", &x, &y, &paint_method) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1107,14 +1099,14 @@ PHP_METHOD(ImagickDraw, polygon) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &coordinate_array) == FAILURE) { - return; + RETURN_THROWS(); } coordinates = php_imagick_zval_to_pointinfo_array(coordinate_array, &num_elements TSRMLS_CC); if (!coordinates) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Unable to read coordinate array" TSRMLS_CC); - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1138,14 +1130,14 @@ PHP_METHOD(ImagickDraw, bezier) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &coordinate_array) == FAILURE) { - return; + RETURN_THROWS(); } coordinates = php_imagick_zval_to_pointinfo_array(coordinate_array, &num_elements TSRMLS_CC); if (!coordinates) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Unable to read coordinate array" TSRMLS_CC); - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1166,7 +1158,7 @@ PHP_METHOD(ImagickDraw, point) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1186,7 +1178,7 @@ PHP_METHOD(ImagickDraw, line) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &sx, &sy, &ex, &ey) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1205,7 +1197,7 @@ PHP_METHOD(ImagickDraw, clone) DrawingWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } IMAGICK_METHOD_DEPRECATED("ImagickDraw", "clone"); @@ -1215,14 +1207,12 @@ PHP_METHOD(ImagickDraw, clone) if (!tmp_wand) { php_imagick_throw_exception (IMAGICK_CLASS, "Failed to allocate DrawingWand structure" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickdraw_sc_entry); intern_return = Z_IMAGICKDRAW_P(return_value); php_imagick_replace_drawingwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -1248,7 +1238,7 @@ PHP_METHOD(ImagickDraw, affine) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &affine_matrix) == FAILURE) { - return; + RETURN_THROWS(); } #if PHP_VERSION_ID < 70000 @@ -1263,11 +1253,11 @@ PHP_METHOD(ImagickDraw, affine) ZVAL_DEREF(pzval); if (pzval == NULL) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "AffineMatrix must contain keys: sx, rx, ry, sy, tx and ty" TSRMLS_CC); - return; + RETURN_THROWS(); #else if (zend_hash_find(affine, matrix_elements[i], 3, (void**)&ppzval) == FAILURE) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "AffineMatrix must contain keys: sx, rx, ry, sy, tx and ty" TSRMLS_CC); - return; + RETURN_THROWS(); #endif } else { @@ -1320,20 +1310,20 @@ PHP_METHOD(ImagickDraw, composite) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lddddO", &compose, &x, &y, &width, &height, &magick_obj, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(magick_obj); if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + RETURN_THROWS(); internd = Z_IMAGICKDRAW_P(getThis()); status = DrawComposite(internd->drawing_wand, compose, x, y, width, height, intern->magick_wand); if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Compositing image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1351,7 +1341,7 @@ PHP_METHOD(ImagickDraw, color) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddl", &x, &y, &paint_method) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1372,7 +1362,7 @@ PHP_METHOD(ImagickDraw, comment) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &comment, &comment_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1391,7 +1381,7 @@ PHP_METHOD(ImagickDraw, getClipPath) char *clip_path; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1402,7 +1392,6 @@ PHP_METHOD(ImagickDraw, getClipPath) } else { IM_ZVAL_STRING(return_value, clip_path); IMAGICK_FREE_MAGICK_MEMORY(clip_path); - return; } } /* }}} */ @@ -1416,7 +1405,7 @@ PHP_METHOD(ImagickDraw, getClipRule) long clip_rule; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1435,7 +1424,7 @@ PHP_METHOD(ImagickDraw, getClipUnits) long units; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1455,7 +1444,7 @@ PHP_METHOD(ImagickDraw, getFillColor) PixelWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1466,8 +1455,6 @@ PHP_METHOD(ImagickDraw, getFillColor) object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ @@ -1480,7 +1467,7 @@ PHP_METHOD(ImagickDraw, getFillOpacity) double opacity; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1499,7 +1486,7 @@ PHP_METHOD(ImagickDraw, getFillRule) long fill_rule; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1518,7 +1505,7 @@ PHP_METHOD(ImagickDraw, getGravity) long gravity; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1537,7 +1524,7 @@ PHP_METHOD(ImagickDraw, getStrokeAntialias) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1561,7 +1548,7 @@ PHP_METHOD(ImagickDraw, getStrokeColor) PixelWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1572,8 +1559,6 @@ PHP_METHOD(ImagickDraw, getStrokeColor) object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ @@ -1588,7 +1573,7 @@ PHP_METHOD(ImagickDraw, getStrokeDashArray) size_t num_elements; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1601,7 +1586,6 @@ PHP_METHOD(ImagickDraw, getStrokeDashArray) } IMAGICK_FREE_MAGICK_MEMORY(stroke_array); - return; } /* }}} */ @@ -1617,7 +1601,7 @@ PHP_METHOD(ImagickDraw, setStrokeDashArray) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a!", ¶m_array) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1631,7 +1615,7 @@ PHP_METHOD(ImagickDraw, setStrokeDashArray) if (!double_array) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Cannot read stroke dash array parameter" TSRMLS_CC); - return; + RETURN_THROWS(); } DrawSetStrokeDashArray(internd->drawing_wand, elements, double_array); @@ -1650,7 +1634,7 @@ PHP_METHOD(ImagickDraw, getStrokeDashOffset) double offset; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1669,7 +1653,7 @@ PHP_METHOD(ImagickDraw, getStrokeLineCap) long line_cap; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1688,7 +1672,7 @@ PHP_METHOD(ImagickDraw, getStrokeLineJoin) long line_join; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1707,7 +1691,7 @@ PHP_METHOD(ImagickDraw, getStrokeMiterLimit) unsigned long miter_limit; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1726,7 +1710,7 @@ PHP_METHOD(ImagickDraw, getStrokeOpacity) double opacity; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1745,7 +1729,7 @@ PHP_METHOD(ImagickDraw, getStrokeWidth) double width; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1764,7 +1748,7 @@ PHP_METHOD(ImagickDraw, getTextAlignment) long align_type; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1783,7 +1767,7 @@ PHP_METHOD(ImagickDraw, getTextAntialias) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1806,7 +1790,7 @@ PHP_METHOD(ImagickDraw, getVectorGraphics) char *vector; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1814,8 +1798,6 @@ PHP_METHOD(ImagickDraw, getVectorGraphics) IM_ZVAL_STRING(return_value, vector); IMAGICK_FREE_MAGICK_MEMORY(vector); - - return; } /* }}} */ @@ -1829,7 +1811,7 @@ PHP_METHOD(ImagickDraw, getTextUnderColor) PixelWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1837,7 +1819,7 @@ PHP_METHOD(ImagickDraw, getTextUnderColor) if (!tmp_wand) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Failed to allocate space for new PixelWand" TSRMLS_CC); - return; + RETURN_THROWS(); } DrawGetTextUnderColor(internd->drawing_wand, tmp_wand); @@ -1845,8 +1827,6 @@ PHP_METHOD(ImagickDraw, getTextUnderColor) object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ @@ -1858,7 +1838,7 @@ PHP_METHOD(ImagickDraw, pathClose) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -1877,7 +1857,7 @@ PHP_METHOD(ImagickDraw, pathCurveToAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddddd", &x1, &y1, &x2, &y2, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1897,7 +1877,7 @@ PHP_METHOD(ImagickDraw, pathCurveToRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddddd", &x1, &y1, &x2, &y2, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1917,7 +1897,7 @@ PHP_METHOD(ImagickDraw, pathCurveToQuadraticBezierAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &x1, &y1, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1937,7 +1917,7 @@ PHP_METHOD(ImagickDraw, pathCurveToQuadraticBezierRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &x1, &y1, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1957,7 +1937,7 @@ PHP_METHOD(ImagickDraw, pathCurveToQuadraticBezierSmoothAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1977,7 +1957,7 @@ PHP_METHOD(ImagickDraw, pathCurveToQuadraticBezierSmoothRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -1997,7 +1977,7 @@ PHP_METHOD(ImagickDraw, pathCurveToSmoothAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &x1, &y1, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2017,7 +1997,7 @@ PHP_METHOD(ImagickDraw, pathCurveToSmoothRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &x1, &y1, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2038,7 +2018,7 @@ PHP_METHOD(ImagickDraw, pathEllipticArcAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddbbdd", &rx, &ry, &x_axis_rotation, &large_arc, &sweep, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2059,7 +2039,7 @@ PHP_METHOD(ImagickDraw, pathEllipticArcRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddbbdd", &rx, &ry, &x_axis_rotation, &large_arc, &sweep, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2077,7 +2057,7 @@ PHP_METHOD(ImagickDraw, pathFinish) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2096,7 +2076,7 @@ PHP_METHOD(ImagickDraw, pathLineToAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2116,7 +2096,7 @@ PHP_METHOD(ImagickDraw, pathLineToRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2136,7 +2116,7 @@ PHP_METHOD(ImagickDraw, pathLineToHorizontalAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2156,7 +2136,7 @@ PHP_METHOD(ImagickDraw, pathLineToHorizontalRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &x) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2176,7 +2156,7 @@ PHP_METHOD(ImagickDraw, pathLineToVerticalAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2196,7 +2176,7 @@ PHP_METHOD(ImagickDraw, pathLineToVerticalRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2216,7 +2196,7 @@ PHP_METHOD(ImagickDraw, pathMoveToAbsolute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2236,7 +2216,7 @@ PHP_METHOD(ImagickDraw, pathMoveToRelative) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2254,7 +2234,7 @@ PHP_METHOD(ImagickDraw, pathStart) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2275,14 +2255,14 @@ PHP_METHOD(ImagickDraw, polyline) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &coordinate_array) == FAILURE) { - return; + RETURN_THROWS(); } coordinates = php_imagick_zval_to_pointinfo_array(coordinate_array, &num_elements TSRMLS_CC); if (!coordinates) { php_imagick_throw_exception(IMAGICKDRAW_CLASS, "Unable to read coordinate array" TSRMLS_CC); - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2302,7 +2282,7 @@ PHP_METHOD(ImagickDraw, popClipPath) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2319,7 +2299,7 @@ PHP_METHOD(ImagickDraw, popDefs) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2337,14 +2317,14 @@ PHP_METHOD(ImagickDraw, popPattern) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; status = DrawPopPattern(internd->drawing_wand); if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to terminate the pattern definition" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2361,7 +2341,7 @@ PHP_METHOD(ImagickDraw, pushClipPath) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &clip_mask, &clip_mask_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2379,7 +2359,7 @@ PHP_METHOD(ImagickDraw, pushDefs) php_imagickdraw_object *internd; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2400,7 +2380,7 @@ PHP_METHOD(ImagickDraw, pushPattern) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sdddd", &pattern_id, &pattern_id_len, &x, &y, &width, &height) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2420,7 +2400,7 @@ PHP_METHOD(ImagickDraw, render) char *old_locale; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2436,7 +2416,7 @@ PHP_METHOD(ImagickDraw, render) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to render the drawing commands" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2452,7 +2432,7 @@ PHP_METHOD(ImagickDraw, rotate) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", °rees) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2472,7 +2452,7 @@ PHP_METHOD(ImagickDraw, scale) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2494,7 +2474,7 @@ PHP_METHOD(ImagickDraw, setClipPath) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &clip_mask, &clip_mask_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2502,7 +2482,7 @@ PHP_METHOD(ImagickDraw, setClipPath) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to set clipping path" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2518,7 +2498,7 @@ PHP_METHOD(ImagickDraw, setClipRule) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &fill_rule) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2538,7 +2518,7 @@ PHP_METHOD(ImagickDraw, setClipUnits) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &units) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2558,7 +2538,7 @@ PHP_METHOD(ImagickDraw, setFillOpacity) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &fillOpacity) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2581,7 +2561,7 @@ PHP_METHOD(ImagickDraw, setFillPatternUrl) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &url, &url_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2589,7 +2569,7 @@ PHP_METHOD(ImagickDraw, setFillPatternUrl) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to set fill pattern URL" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2605,7 +2585,7 @@ PHP_METHOD(ImagickDraw, setFillRule) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &fill_rule) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2625,7 +2605,7 @@ PHP_METHOD(ImagickDraw, setGravity) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &gravity) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2647,7 +2627,7 @@ PHP_METHOD(ImagickDraw, setStrokePatternUrl) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &url, &url_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2655,7 +2635,7 @@ PHP_METHOD(ImagickDraw, setStrokePatternUrl) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to set stroke pattern URL" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2671,7 +2651,7 @@ PHP_METHOD(ImagickDraw, setStrokeDashOffset) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &offset) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2691,7 +2671,7 @@ PHP_METHOD(ImagickDraw, setStrokeLineCap) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &line_cap) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2711,7 +2691,7 @@ PHP_METHOD(ImagickDraw, setStrokeLineJoin) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &line_join) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2731,7 +2711,7 @@ PHP_METHOD(ImagickDraw, setStrokeMiterLimit) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &miter_limit) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2751,7 +2731,7 @@ PHP_METHOD(ImagickDraw, setStrokeOpacity) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &opacity) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2773,7 +2753,7 @@ PHP_METHOD(ImagickDraw, setVectorGraphics) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &vector, &vector_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2781,7 +2761,7 @@ PHP_METHOD(ImagickDraw, setVectorGraphics) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to set the vector graphics" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2796,7 +2776,7 @@ PHP_METHOD(ImagickDraw, pop) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2804,7 +2784,7 @@ PHP_METHOD(ImagickDraw, pop) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to pop the current ImagickDraw object" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2819,7 +2799,7 @@ PHP_METHOD(ImagickDraw, push) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2827,7 +2807,7 @@ PHP_METHOD(ImagickDraw, push) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to push the current ImagickDraw object" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2843,7 +2823,7 @@ PHP_METHOD(ImagickDraw, getOpacity) double opacity; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2862,7 +2842,7 @@ PHP_METHOD(ImagickDraw, setOpacity) double opacity; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &opacity) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; @@ -2884,7 +2864,7 @@ PHP_METHOD(ImagickDraw, getFontResolution) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2892,14 +2872,12 @@ PHP_METHOD(ImagickDraw, getFontResolution) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to push the current ImagickDraw object" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "x", x); add_assoc_double(return_value, "y", y); - - return; } /* }}} */ #endif //#if MagickLibVersion >= 0x675 @@ -2917,14 +2895,14 @@ PHP_METHOD(ImagickDraw, setFontResolution) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; status = DrawSetFontResolution(internd->drawing_wand, x, y); if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to push the current ImagickDraw object" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2944,7 +2922,7 @@ PHP_METHOD(ImagickDraw, getBorderColor) PixelWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -2955,7 +2933,6 @@ PHP_METHOD(ImagickDraw, getBorderColor) object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - return; } /* }}} */ #endif //#if MagickLibVersion >= 0x675 @@ -2974,14 +2951,14 @@ PHP_METHOD(ImagickDraw, setBorderColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis());; color_wand = php_imagick_zval_to_pixelwand(param, IMAGICKDRAW_CLASS, &allocated TSRMLS_CC); if (!color_wand) - return; + RETURN_FALSE; DrawSetBorderColor(internd->drawing_wand, color_wand); if (allocated) @@ -3002,7 +2979,7 @@ PHP_METHOD(ImagickDraw, getTextDirection) im_long direction; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -3024,7 +3001,7 @@ PHP_METHOD(ImagickDraw, setTextDirection) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &direction) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -3047,7 +3024,7 @@ PHP_METHOD(ImagickDraw, setDensity) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &density, &density_len) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); @@ -3055,7 +3032,7 @@ PHP_METHOD(ImagickDraw, setDensity) if (status == MagickFalse) { php_imagick_convert_imagickdraw_exception (internd->drawing_wand, "Unable to setdensity for ImagickDraw object" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3072,7 +3049,7 @@ PHP_METHOD(ImagickDraw, getDensity) char *density; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(getThis()); From 91c60923a17e7355169b0c52067157b693254264 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 14:28:36 +0200 Subject: [PATCH 21/31] handle ZEND_ARG_INFO_WITH_DEFAULT_VALUE in regen script --- Imagick_arginfo.h | 16 ++++++++++++++-- util/fixup_arginfo.php | 11 +++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index f19edc3c..33e7a661 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -5253,8 +5253,20 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_subimageMatch, 0, 0, 1) #endif ZEND_ARG_OBJ_INFO(0, image, Imagick, 0) - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") - ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, offset, "null") +#else + ZEND_ARG_INFO(1, offset) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, similarity, "null") +#else + ZEND_ARG_INFO(1, similarity) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, threshold, IS_DOUBLE, 0, "0.0") #if PHP_VERSION_ID >= 80000 diff --git a/util/fixup_arginfo.php b/util/fixup_arginfo.php index 6e39b190..0ab2d41b 100644 --- a/util/fixup_arginfo.php +++ b/util/fixup_arginfo.php @@ -125,6 +125,17 @@ #endif "; +// ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, filename, "null") +$search[] = "#.*ZEND_ARG_INFO_WITH_DEFAULT_VALUE\((\w*), (\w*), ([\w\"]*)\)#iu"; +$replace[] = " +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_INFO_WITH_DEFAULT_VALUE($1, $2, $3) +#else + ZEND_ARG_INFO($1, $2) +#endif +"; + + //#if PHP_VERSION_ID >= 80000 //ZEND_ARG_TYPE_MASK(0, files, MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_NULL, NULL) From af1dcbd2d8b47ac1a105f4f84b498a336919dd38 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 14:56:50 +0200 Subject: [PATCH 22/31] try to fix -Werror=unused-parameter --- imagick_class.c | 6 ++++-- imagickpixeliterator_class.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/imagick_class.c b/imagick_class.c index 84e56691..252b94b1 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -8330,7 +8330,7 @@ PHP_METHOD(Imagick, resetIterator) } /* }}} */ -/* {{{ proto bool Imagick::rewind() +/* {{{ proto void Imagick::rewind() Sets the wand iterator to the first image. */ PHP_METHOD(Imagick, rewind) @@ -8341,6 +8341,7 @@ PHP_METHOD(Imagick, rewind) if (zend_parse_parameters_none() == FAILURE) { return; } + (void)return_value; // fix -Werror=unused-parameter /* No magick is going to happen */ if (intern->magick_wand == NULL) { @@ -8420,7 +8421,7 @@ PHP_METHOD(Imagick, previousImage) } /* }}} */ -/* {{{ proto bool Imagick::next() +/* {{{ proto void Imagick::next() Associates the next image in the image list with an Imagick object. */ PHP_METHOD(Imagick, next) @@ -8431,6 +8432,7 @@ PHP_METHOD(Imagick, next) if (zend_parse_parameters_none() == FAILURE) { return; } + (void)return_value; // fix -Werror=unused-parameter intern = Z_IMAGICK_P(getThis()); status = MagickNextImage(intern->magick_wand); diff --git a/imagickpixeliterator_class.c b/imagickpixeliterator_class.c index ecc163e4..2989ddcb 100644 --- a/imagickpixeliterator_class.c +++ b/imagickpixeliterator_class.c @@ -104,6 +104,7 @@ PHP_METHOD(ImagickPixelIterator, rewind) if (zend_parse_parameters_none() == FAILURE) { return; } + (void)return_value; // fix -Werror=unused-parameter internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); @@ -577,6 +578,7 @@ PHP_METHOD(ImagickPixelIterator, next) if (zend_parse_parameters_none() == FAILURE) { return; } + (void)return_value; // fix -Werror=unused-parameter internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); From 3bd35eacc4722743c4079b59a7295b4851381863 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 15:07:47 +0200 Subject: [PATCH 23/31] fix [-Wunused-but-set-variable] --- imagickpixeliterator_class.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/imagickpixeliterator_class.c b/imagickpixeliterator_class.c index 2989ddcb..337e8d64 100644 --- a/imagickpixeliterator_class.c +++ b/imagickpixeliterator_class.c @@ -572,7 +572,6 @@ PHP_METHOD(ImagickPixelIterator, getCurrentIteratorRow) PHP_METHOD(ImagickPixelIterator, next) { php_imagickpixeliterator_object *internpix; - PixelWand **wand_array; size_t num_wands; if (zend_parse_parameters_none() == FAILURE) { @@ -587,7 +586,7 @@ PHP_METHOD(ImagickPixelIterator, next) return; } - wand_array = PixelGetNextIteratorRow(internpix->pixel_iterator, &num_wands); + PixelGetNextIteratorRow(internpix->pixel_iterator, &num_wands); #if MagickLibVersion <= 0x628 internpix->iterator_position++; From 3cbbc56856bf8075b5c716f5ed33c71efbf6de5e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 31 May 2023 15:55:48 +0200 Subject: [PATCH 24/31] fix Imagick::convolveImage() proto for IM6 --- Imagick.stub.php | 6 +++++- Imagick_arginfo.h | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/Imagick.stub.php b/Imagick.stub.php index 93771e18..ce79b537 100644 --- a/Imagick.stub.php +++ b/Imagick.stub.php @@ -809,8 +809,12 @@ public function contrastImage(bool $sharpen): bool {} public function combineImages(int $colorspace): Imagick {} - // kernel is a 2d array of float values +#if MagickLibVersion >= 0x700 public function convolveImage(ImagickKernel $kernel, int $channel = Imagick::CHANNEL_DEFAULT): bool {} +#else + // kernel is a 2d array of float values + public function convolveImage(array $kernel, int $channel = Imagick::CHANNEL_DEFAULT): bool {} +#endif public function cycleColormapImage(int $displace): bool {} diff --git a/Imagick_arginfo.h b/Imagick_arginfo.h index 33e7a661..228039f0 100644 --- a/Imagick_arginfo.h +++ b/Imagick_arginfo.h @@ -3657,6 +3657,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_combineImages, 0, 0, 1) #endif ZEND_END_ARG_INFO() +#if MagickLibVersion >= 0x700 #if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) @@ -3667,6 +3668,25 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) ZEND_ARG_OBJ_INFO(0, kernel, ImagickKernel, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") ZEND_END_ARG_INFO() +#endif + +#if !(MagickLibVersion >= 0x700) + +#if PHP_VERSION_ID >= 80000 +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 1, _IS_BOOL, 0) +#else +ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Imagick_convolveImage, 0, 0, 1) +#endif + + +#if PHP_VERSION_ID >= 80000 + ZEND_ARG_TYPE_INFO(0, kernel, IS_ARRAY, 0) +#else + ZEND_ARG_INFO(0, kernel) +#endif + ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, channel, IS_LONG, 0, "Imagick::CHANNEL_DEFAULT") +ZEND_END_ARG_INFO() +#endif #if PHP_VERSION_ID >= 80000 @@ -6560,7 +6580,12 @@ ZEND_METHOD(Imagick, compareImageChannels); ZEND_METHOD(Imagick, compareImages); ZEND_METHOD(Imagick, contrastImage); ZEND_METHOD(Imagick, combineImages); +#if MagickLibVersion >= 0x700 +ZEND_METHOD(Imagick, convolveImage); +#endif +#if !(MagickLibVersion >= 0x700) ZEND_METHOD(Imagick, convolveImage); +#endif ZEND_METHOD(Imagick, cycleColormapImage); ZEND_METHOD(Imagick, deconstructImages); ZEND_METHOD(Imagick, despeckleImage); @@ -7358,7 +7383,12 @@ static const zend_function_entry class_Imagick_methods[] = { ZEND_ME(Imagick, compareImages, arginfo_class_Imagick_compareImages, ZEND_ACC_PUBLIC) ZEND_ME(Imagick, contrastImage, arginfo_class_Imagick_contrastImage, ZEND_ACC_PUBLIC) ZEND_ME(Imagick, combineImages, arginfo_class_Imagick_combineImages, ZEND_ACC_PUBLIC) +#if MagickLibVersion >= 0x700 ZEND_ME(Imagick, convolveImage, arginfo_class_Imagick_convolveImage, ZEND_ACC_PUBLIC) +#endif +#if !(MagickLibVersion >= 0x700) + ZEND_ME(Imagick, convolveImage, arginfo_class_Imagick_convolveImage, ZEND_ACC_PUBLIC) +#endif ZEND_ME(Imagick, cycleColormapImage, arginfo_class_Imagick_cycleColormapImage, ZEND_ACC_PUBLIC) ZEND_ME(Imagick, deconstructImages, arginfo_class_Imagick_deconstructImages, ZEND_ACC_PUBLIC) ZEND_ME(Imagick, despeckleImage, arginfo_class_Imagick_despeckleImage, ZEND_ACC_PUBLIC) From b4ede5d6c05cd302438dd045ba1bed40ebfdc817 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Jun 2023 13:56:22 +0200 Subject: [PATCH 25/31] add IMAGICK_NOT_EMPTY macro --- imagickdraw_class.c | 3 +-- php_imagick_macros.h | 8 +++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/imagickdraw_class.c b/imagickdraw_class.c index 1703f997..de7ec060 100644 --- a/imagickdraw_class.c +++ b/imagickdraw_class.c @@ -1315,8 +1315,7 @@ PHP_METHOD(ImagickDraw, composite) intern = Z_IMAGICK_P(magick_obj); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - RETURN_THROWS(); + IMAGICK_NOT_EMPTY(intern); internd = Z_IMAGICKDRAW_P(getThis()); status = DrawComposite(internd->drawing_wand, compose, x, y, width, height, intern->magick_wand); diff --git a/php_imagick_macros.h b/php_imagick_macros.h index 229888f6..dd687382 100644 --- a/php_imagick_macros.h +++ b/php_imagick_macros.h @@ -43,7 +43,13 @@ #define IMAGICK_KERNEL_NOT_NULL_EMPTY(kernel) \ if (kernel->kernel_info == NULL) { \ zend_throw_exception(php_imagickkernel_exception_class_entry, "ImagickKernel is empty, cannot be used", (long)0 TSRMLS_CC); \ - RETURN_NULL(); \ + RETURN_THROWS(); \ } +#define IMAGICK_NOT_EMPTY(wand) \ + if (php_imagick_ensure_not_empty (wand->magick_wand) == 0) { \ + RETURN_THROWS(); \ + } + + #endif /* PHP_IMAGICK_MACROS_H */ From d9bf7286d1e260048c8e909302c75fada391e9f6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Jun 2023 14:11:09 +0200 Subject: [PATCH 26/31] Fix MagickPixel - use RETURN_THROWS after zpp and exception - use new IMAGICK_PIXEL_NOT_EMPTY macro - fix isPixelSimilar and isPixelSimilarQuantum proto (may return null) --- ImagickPixel.stub.php | 6 +- ImagickPixel_arginfo.h | 4 +- imagickpixel_class.c | 139 ++++++++++++++--------------------------- php_imagick_macros.h | 7 ++- 4 files changed, 59 insertions(+), 97 deletions(-) diff --git a/ImagickPixel.stub.php b/ImagickPixel.stub.php index e217747e..339bd564 100644 --- a/ImagickPixel.stub.php +++ b/ImagickPixel.stub.php @@ -34,12 +34,12 @@ public function getHSL(): array {} public function getIndex(): int {} - public function isPixelSimilar(ImagickPixel|string $color, float $fuzz): bool {} + public function isPixelSimilar(ImagickPixel|string $color, float $fuzz): ?bool {} // The fuzz value should be in the range 0-QuantumRange. The maximum value // represents the longest possible distance in the colorspace. e.g. from // RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace - public function isPixelSimilarQuantum(ImagickPixel|string $color, float $fuzz_quantum_range_scaled_by_square_root_of_three): bool {} + public function isPixelSimilarQuantum(ImagickPixel|string $color, float $fuzz_quantum_range_scaled_by_square_root_of_three): ?bool {} /** @alias ImagickPixel::isPixelSimilarQuantum */ @@ -47,7 +47,7 @@ public function isSimilar( ImagickPixel|string $color, // Feel free to not use named params for this. float $fuzz_quantum_range_scaled_by_square_root_of_three - ): bool{} + ): ?bool{} public function setColor(string $color): bool {} diff --git a/ImagickPixel_arginfo.h b/ImagickPixel_arginfo.h index 951841af..24ffa722 100644 --- a/ImagickPixel_arginfo.h +++ b/ImagickPixel_arginfo.h @@ -114,7 +114,7 @@ ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixel_isPixelSimilar, 0, 2, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixel_isPixelSimilar, 0, 2, _IS_BOOL, 1) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixel_isPixelSimilar, 0, 0, 2) #endif @@ -130,7 +130,7 @@ ZEND_END_ARG_INFO() #if PHP_VERSION_ID >= 80000 -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixel_isPixelSimilarQuantum, 0, 2, _IS_BOOL, 0) +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_ImagickPixel_isPixelSimilarQuantum, 0, 2, _IS_BOOL, 1) #else ZEND_BEGIN_ARG_INFO_EX(arginfo_class_ImagickPixel_isPixelSimilarQuantum, 0, 0, 2) #endif diff --git a/imagickpixel_class.c b/imagickpixel_class.c index c268de1d..09d93f7d 100644 --- a/imagickpixel_class.c +++ b/imagickpixel_class.c @@ -33,13 +33,11 @@ PHP_METHOD(ImagickPixel, getHSL) double hue, saturation, luminosity; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); PixelGetHSL(internp->pixel_wand, &hue, &saturation, &luminosity); @@ -47,7 +45,6 @@ PHP_METHOD(ImagickPixel, getHSL) add_assoc_double(return_value, "hue", hue); add_assoc_double(return_value, "saturation", saturation); add_assoc_double(return_value, "luminosity", luminosity); - return; } /* }}} */ @@ -61,13 +58,11 @@ PHP_METHOD(ImagickPixel, setHSL) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd", &hue, &saturation, &luminosity) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); PixelSetHSL(internp->pixel_wand, hue, saturation, luminosity); RETURN_TRUE; @@ -86,13 +81,11 @@ PHP_METHOD(ImagickPixel, getColorValueQuantum) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &color) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); switch (color) { @@ -136,7 +129,7 @@ PHP_METHOD(ImagickPixel, getColorValueQuantum) default: php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Unknown color type" TSRMLS_CC); - return; + RETURN_THROWS(); break; } @@ -160,20 +153,18 @@ PHP_METHOD(ImagickPixel, setColorValueQuantum) double color_value; /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ld", &color, &color_value) == FAILURE) { - return; + RETURN_THROWS(); } #else im_long color_value; /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &color, &color_value) == FAILURE) { - return; + RETURN_THROWS(); } #endif internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); switch (color) { @@ -217,7 +208,7 @@ PHP_METHOD(ImagickPixel, setColorValueQuantum) default: php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Unknown color type" TSRMLS_CC); - return; + RETURN_THROWS(); break; } RETVAL_TRUE; @@ -232,13 +223,11 @@ PHP_METHOD(ImagickPixel, getIndex) php_imagickpixel_object *internp; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); RETVAL_LONG(PixelGetIndex(internp->pixel_wand)); } @@ -261,13 +250,11 @@ PHP_METHOD(ImagickPixel, setIndex) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index) == FAILURE) { #endif - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); PixelSetIndex(internp->pixel_wand, index); RETURN_TRUE; @@ -288,7 +275,7 @@ PHP_METHOD(ImagickPixel, __construct) (void)return_value; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &color_name, &color_name_len) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); @@ -301,14 +288,14 @@ PHP_METHOD(ImagickPixel, __construct) if (!internp->pixel_wand) { php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Failed to allocate PixelWand structure" TSRMLS_CC); - return; + RETURN_THROWS(); } /* If color was given as parameter, set it here.*/ if (color_name && color_name_len) { if (PixelSetColor(internp->pixel_wand, color_name) == MagickFalse) { php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Unable to construct ImagickPixel" TSRMLS_CC); - return; + RETURN_THROWS(); } } } @@ -327,19 +314,17 @@ PHP_METHOD(ImagickPixel, setColor) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &color_name, &color_name_len) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); status = PixelSetColor(internp->pixel_wand, color_name); if (status == MagickFalse) { php_imagick_convert_imagickpixel_exception (internp->pixel_wand, "Unable to set ImagickPixel color" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -354,13 +339,11 @@ PHP_METHOD(ImagickPixel, clear) php_imagickpixel_object *internp; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); ClearPixelWand(internp->pixel_wand); RETURN_TRUE; @@ -382,13 +365,11 @@ void s_is_pixelwand_similar(INTERNAL_FUNCTION_PARAMETERS, zend_bool use_quantum) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zd", ¶m, &fuzz) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICKPIXEL_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -442,17 +423,15 @@ PHP_METHOD(ImagickPixel, getColorValue) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &color) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); if (color <= PHP_IMAGICK_COLOR_MIN || color >= PHP_IMAGICK_COLOR_MAX) { php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Unknown color type" TSRMLS_CC); - return; + RETURN_THROWS(); } color_enum = color; @@ -505,7 +484,7 @@ PHP_METHOD(ImagickPixel, getColorValue) default: php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Unknown color type" TSRMLS_CC); - return; + RETURN_THROWS(); break; } RETVAL_DOUBLE(color_value); @@ -524,17 +503,15 @@ PHP_METHOD(ImagickPixel, setColorValue) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ld", &color, &color_value) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); if (color <= PHP_IMAGICK_COLOR_MIN || color >= PHP_IMAGICK_COLOR_MAX) { php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Unknown color type" TSRMLS_CC); - return; + RETURN_THROWS(); } color_enum = color; @@ -587,7 +564,7 @@ PHP_METHOD(ImagickPixel, setColorValue) default: php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Unknown color type" TSRMLS_CC); - return; + RETURN_THROWS(); break; } RETVAL_TRUE; @@ -610,13 +587,11 @@ PHP_METHOD(ImagickPixel, getColor) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &normalization) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); array_init(return_value); red = PixelGetRed(internp->pixel_wand); @@ -664,8 +639,6 @@ PHP_METHOD(ImagickPixel, getColor) break; } } - - return; } /* }}} */ @@ -680,13 +653,11 @@ PHP_METHOD(ImagickPixel, getColorQuantum) Quantum red, green, blue, alpha; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); array_init(return_value); red = PixelGetRedQuantum(internp->pixel_wand); @@ -706,8 +677,6 @@ PHP_METHOD(ImagickPixel, getColorQuantum) add_assoc_long(return_value, "b", (long)blue); add_assoc_long(return_value, "a", (long)alpha); #endif - - return; } /* }}} */ @@ -720,19 +689,16 @@ PHP_METHOD(ImagickPixel, getColorAsString) char *color_string; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); color_string = PixelGetColorAsString(internp->pixel_wand); IM_ZVAL_STRING(return_value, color_string); IMAGICK_FREE_MAGICK_MEMORY(color_string); - return; } /* }}} */ @@ -746,7 +712,7 @@ PHP_METHOD(ImagickPixel, clone) PixelWand *pixel_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } IMAGICK_METHOD_DEPRECATED("ImagickPixel", "clone"); @@ -756,14 +722,13 @@ PHP_METHOD(ImagickPixel, clone) pixel_wand = php_imagick_clone_pixelwand (internp->pixel_wand); if (!pixel_wand) { php_imagick_throw_exception (IMAGICKPIXEL_CLASS, "Failed to allocate" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickpixel_sc_entry); intern_return = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(intern_return, pixel_wand); - return; } /* }}} */ @@ -775,13 +740,11 @@ PHP_METHOD(ImagickPixel, getColorCount) php_imagickpixel_object *internp; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); RETVAL_LONG(PixelGetColorCount(internp->pixel_wand)); } @@ -797,13 +760,11 @@ PHP_METHOD(ImagickPixel, setColorCount) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &color_count) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); PixelSetColorCount(internp->pixel_wand, color_count); RETVAL_TRUE; @@ -820,17 +781,13 @@ PHP_METHOD(ImagickPixel, setColorFromPixel) zval *objvar; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &objvar, php_imagickpixel_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKPIXEL_P(getThis()); - if (php_imagickpixel_ensure_not_null(internp->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(internp); src_pixel = Z_IMAGICKPIXEL_P(objvar); - if (php_imagickpixel_ensure_not_null(src_pixel->pixel_wand) == 0) { - return; - } + IMAGICK_PIXEL_NOT_EMPTY(src_pixel); PixelSetColorFromWand(internp->pixel_wand, src_pixel->pixel_wand); diff --git a/php_imagick_macros.h b/php_imagick_macros.h index dd687382..c63b62a8 100644 --- a/php_imagick_macros.h +++ b/php_imagick_macros.h @@ -47,7 +47,12 @@ } #define IMAGICK_NOT_EMPTY(wand) \ - if (php_imagick_ensure_not_empty (wand->magick_wand) == 0) { \ + if (php_imagick_ensure_not_empty(wand->magick_wand) == 0) { \ + RETURN_THROWS(); \ + } + +#define IMAGICK_PIXEL_NOT_EMPTY(pixel) \ + if (php_imagickpixel_ensure_not_null(pixel->pixel_wand) == 0) { \ RETURN_THROWS(); \ } From dc300a2def092d334cd384742a321e409e2be761 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Jun 2023 14:17:25 +0200 Subject: [PATCH 27/31] Fix ImagickPixelIterator - use RETURN_THROWS after zpp and exception - use IMAGICK_NOT_EMPTY macro --- imagickpixeliterator_class.c | 99 ++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 55 deletions(-) diff --git a/imagickpixeliterator_class.c b/imagickpixeliterator_class.c index 337e8d64..d40e241b 100644 --- a/imagickpixeliterator_class.c +++ b/imagickpixeliterator_class.c @@ -64,7 +64,7 @@ PHP_METHOD(ImagickPixelIterator, __construct) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|llll", &magick_object, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); @@ -72,17 +72,16 @@ PHP_METHOD(ImagickPixelIterator, __construct) if (!intern->magick_wand) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Invalid Imagick object passed" TSRMLS_CC); - return; + RETURN_THROWS(); } - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); internpix->pixel_iterator = NewPixelIterator(intern->magick_wand); if (!internpix->pixel_iterator) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Can not allocate ImagickPixelIterator" TSRMLS_CC); - return; + RETURN_THROWS(); } #if MagickLibVersion <= 0x628 @@ -102,7 +101,7 @@ PHP_METHOD(ImagickPixelIterator, rewind) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } (void)return_value; // fix -Werror=unused-parameter @@ -128,7 +127,7 @@ PHP_METHOD(ImagickPixelIterator, resetIterator) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); @@ -154,14 +153,14 @@ PHP_METHOD(ImagickPixelIterator, syncIterator) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } PixelSyncIterator(internpix->pixel_iterator); @@ -177,14 +176,14 @@ PHP_METHOD(ImagickPixelIterator, setIteratorFirstRow) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } PixelSetFirstIteratorRow(internpix->pixel_iterator); @@ -203,14 +202,14 @@ PHP_METHOD(ImagickPixelIterator, setIteratorLastRow) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } PixelSetLastIteratorRow(internpix->pixel_iterator); @@ -233,27 +232,25 @@ PHP_METHOD(ImagickPixelIterator, getPixelIterator) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &magick_object, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(magick_object); if (!intern->magick_wand) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Invalid Imagick object passed" TSRMLS_CC); - return; + RETURN_THROWS(); } - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); pixel_it = NewPixelIterator (intern->magick_wand); if (!pixel_it) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Can not allocate ImagickPixelIterator" TSRMLS_CC); - return; + RETURN_THROWS(); } php_imagick_pixel_iterator_new (pixel_it, return_value TSRMLS_CC); - return; } /* }}} */ @@ -269,7 +266,7 @@ PHP_METHOD(ImagickPixelIterator, newPixelIterator) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &magick_object, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } IMAGICK_METHOD_DEPRECATED_USE_INSTEAD("ImagickPixelIterator", "newPixelIterator", "ImagickPixelIterator", "getPixelIterator"); @@ -279,17 +276,16 @@ PHP_METHOD(ImagickPixelIterator, newPixelIterator) if (!intern->magick_wand) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Invalid Imagick object passed" TSRMLS_CC); - return; + RETURN_THROWS(); } - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); pixel_it = NewPixelIterator(intern->magick_wand); if (!pixel_it) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Can not allocate ImagickPixelIterator" TSRMLS_CC); - return; + RETURN_THROWS(); } if (internpix->initialized && internpix->pixel_iterator) @@ -318,27 +314,25 @@ PHP_METHOD(ImagickPixelIterator, getPixelRegionIterator) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ollll", &magick_object, php_imagick_sc_entry, &x, &y, &columns, &rows) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(magick_object); if (!intern->magick_wand) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Invalid Imagick object passed" TSRMLS_CC); - return; + RETURN_THROWS(); } - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); pixel_it = NewPixelRegionIterator(intern->magick_wand, x, y, columns, rows); if (!pixel_it) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Can not allocate ImagickPixelIterator" TSRMLS_CC); - return; + RETURN_THROWS(); } php_imagick_pixel_iterator_new (pixel_it, return_value TSRMLS_CC); - return; } /* }}} */ @@ -355,7 +349,7 @@ PHP_METHOD(ImagickPixelIterator, newPixelRegionIterator) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ollll", &magick_object, php_imagick_sc_entry, &x, &y, &columns, &rows) == FAILURE) { - return; + RETURN_THROWS(); } IMAGICK_METHOD_DEPRECATED_USE_INSTEAD("ImagickPixelIterator", "newPixelRegionIterator", "ImagickPixelIterator", "getPixelRegionIterator"); @@ -365,17 +359,16 @@ PHP_METHOD(ImagickPixelIterator, newPixelRegionIterator) if (!intern->magick_wand) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Invalid Imagick object passed" TSRMLS_CC); - return; + RETURN_THROWS(); } - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); pixel_it = NewPixelRegionIterator(intern->magick_wand, x, y, columns, rows); if (!pixel_it) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Can not allocate ImagickPixelIterator" TSRMLS_CC); - return; + RETURN_THROWS(); } if (internpix->initialized && internpix->pixel_iterator) @@ -399,13 +392,13 @@ PHP_METHOD(ImagickPixelIterator, getIteratorRow) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } #if MagickLibVersion <= 0x628 @@ -413,7 +406,6 @@ PHP_METHOD(ImagickPixelIterator, getIteratorRow) #else ZVAL_LONG(return_value, (long) PixelGetIteratorRow(internpix->pixel_iterator)); #endif - return; } /* }}} */ @@ -428,21 +420,21 @@ PHP_METHOD(ImagickPixelIterator, setIteratorRow) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &row) == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } status = PixelSetIteratorRow(internpix->pixel_iterator, row); if (status == MagickFalse) { php_imagick_convert_imagickpixeliterator_exception(internpix->pixel_iterator, "Unable to set iterator row" TSRMLS_CC); - return; + RETURN_THROWS(); } #if MagickLibVersion <= 0x628 internpix->iterator_position = row; @@ -497,14 +489,14 @@ PHP_METHOD(ImagickPixelIterator, getPreviousIteratorRow) size_t num_wands; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } wand_array = PixelGetPreviousIteratorRow(internpix->pixel_iterator, &num_wands); @@ -520,7 +512,6 @@ PHP_METHOD(ImagickPixelIterator, getPreviousIteratorRow) } s_pixelwands_to_zval (wand_array, num_wands, return_value TSRMLS_CC); - return; } /* }}} */ @@ -535,7 +526,7 @@ PHP_METHOD(ImagickPixelIterator, getCurrentIteratorRow) size_t num_wands; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); @@ -562,7 +553,6 @@ PHP_METHOD(ImagickPixelIterator, getCurrentIteratorRow) } s_pixelwands_to_zval (wand_array, num_wands, return_value TSRMLS_CC); - return; } /* }}} */ @@ -575,7 +565,7 @@ PHP_METHOD(ImagickPixelIterator, next) size_t num_wands; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } (void)return_value; // fix -Werror=unused-parameter @@ -583,7 +573,7 @@ PHP_METHOD(ImagickPixelIterator, next) if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } PixelGetNextIteratorRow(internpix->pixel_iterator, &num_wands); @@ -604,14 +594,14 @@ PHP_METHOD(ImagickPixelIterator, getNextIteratorRow) size_t num_wands; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } wand_array = PixelGetNextIteratorRow(internpix->pixel_iterator, &num_wands); @@ -625,7 +615,6 @@ PHP_METHOD(ImagickPixelIterator, getNextIteratorRow) } s_pixelwands_to_zval (wand_array, num_wands, return_value TSRMLS_CC); - return; } /* }}} */ @@ -637,13 +626,13 @@ PHP_METHOD(ImagickPixelIterator, clear) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } /* Assertion failure with earlier versions */ #if MagickLibVersion <= 0x628 @@ -663,14 +652,14 @@ PHP_METHOD(ImagickPixelIterator, valid) php_imagickpixeliterator_object *internpix; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internpix = Z_IMAGICKPIXELITERATOR_P(getThis()); if (!internpix->initialized) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "ImagickPixelIterator is not initialized correctly" TSRMLS_CC); - return; + RETURN_THROWS(); } #if MagickLibVersion <= 0x628 if (internpix->iterator_position < internpix->rows) { From c70071d0ceccd073042cb516736b5b9cea28b208 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Jun 2023 14:23:03 +0200 Subject: [PATCH 28/31] Fix ImagickKernel - use RETURN_THROWS after zpp and exception --- imagickkernel_class.c | 36 +++++++++++------------------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/imagickkernel_class.c b/imagickkernel_class.c index 662f2d84..a0e82e89 100644 --- a/imagickkernel_class.c +++ b/imagickkernel_class.c @@ -148,8 +148,6 @@ static void im_CalcKernelMetaData(KernelInfo *kernel) { kernel->maximum = kernel->values[i]; } } - - return; } @@ -216,7 +214,7 @@ PHP_METHOD(ImagickKernel, __construct) (void)return_value; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } // this method is private. } @@ -260,7 +258,7 @@ PHP_METHOD(ImagickKernel, fromMatrix) origin_array = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|a", &kernel_array, &origin_array) == FAILURE) { - return; + RETURN_THROWS(); } num_rows = zend_hash_num_elements(Z_ARRVAL_P(kernel_array)); @@ -268,7 +266,7 @@ PHP_METHOD(ImagickKernel, fromMatrix) if (num_rows == 0) { //error - array has zero elements. php_imagick_throw_exception(IMAGICKKERNEL_CLASS, MATRIX_ERROR_EMPTY TSRMLS_CC); - return; + RETURN_THROWS(); } @@ -435,7 +433,7 @@ PHP_METHOD(ImagickKernel, fromMatrix) origin_array = NULL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|a", &kernel_array, &origin_array) == FAILURE) { - return; + RETURN_THROWS(); } num_rows = zend_hash_num_elements(Z_ARRVAL_P(kernel_array)); @@ -443,7 +441,7 @@ PHP_METHOD(ImagickKernel, fromMatrix) if (num_rows == 0) { //error - array has zero elements. php_imagick_throw_exception(IMAGICKKERNEL_CLASS, MATRIX_ERROR_EMPTY TSRMLS_CC); - return; + RETURN_THROWS(); } for (row=0 ; rowkernel_info); kernel_info_target->next = kernel_info_add_clone; - - return; } /* }}} */ @@ -743,7 +737,7 @@ PHP_METHOD(ImagickKernel, separate) #endif if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKKERNEL_P(getThis()); @@ -775,8 +769,6 @@ PHP_METHOD(ImagickKernel, separate) #endif kernel_info = kernel_info->next; } - - return; } /* }}} */ @@ -790,7 +782,7 @@ PHP_METHOD(ImagickKernel, getMatrix) php_imagickkernel_object *internp; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKKERNEL_P(getThis()); @@ -798,8 +790,6 @@ PHP_METHOD(ImagickKernel, getMatrix) array_init(return_value); php_imagickkernelvalues_to_zval(return_value, internp->kernel_info); - - return; } /* }}} */ @@ -824,14 +814,12 @@ PHP_METHOD(ImagickKernel, scale) im_long normalize_flag = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d|l", &scale, &normalize_flag) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKKERNEL_P(getThis()); IMAGICK_KERNEL_NOT_NULL_EMPTY(internp); ScaleKernelInfo(internp->kernel_info, scale, normalize_flag); - - return; } /* }}} */ @@ -850,14 +838,12 @@ PHP_METHOD(ImagickKernel, addUnityKernel) double scale; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &scale) == FAILURE) { - return; + RETURN_THROWS(); } internp = Z_IMAGICKKERNEL_P(getThis()); IMAGICK_KERNEL_NOT_NULL_EMPTY(internp); UnityAddKernelInfo(internp->kernel_info, scale); - - return; } /* }}} */ From ce164ce2beeefbd26216a046687b0ca2ff7fd6b8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Jun 2023 14:54:28 +0200 Subject: [PATCH 29/31] use IMAGICK_NOT_EMPTY for Imagick class --- imagick_class.c | 999 ++++++++++++++++-------------------------------- 1 file changed, 327 insertions(+), 672 deletions(-) diff --git a/imagick_class.c b/imagick_class.c index 252b94b1..90bf1d39 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -117,8 +117,7 @@ PHP_METHOD(Imagick, vignetteImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickVignetteImage(intern->magick_wand, black_point, white_point, x, y); @@ -145,8 +144,7 @@ PHP_METHOD(Imagick, transposeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickTransposeImage(intern->magick_wand); @@ -173,8 +171,7 @@ PHP_METHOD(Imagick, transverseImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickTransverseImage(intern->magick_wand); @@ -204,8 +201,7 @@ PHP_METHOD(Imagick, adaptiveBlurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickAdaptiveBlurImageChannel(intern->magick_wand, channel, radius, sigma); @@ -232,8 +228,7 @@ PHP_METHOD(Imagick, uniqueImageColors) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickUniqueImageColors(intern->magick_wand); @@ -262,8 +257,7 @@ PHP_METHOD(Imagick, contrastStretchImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickContrastStretchImageChannel(intern->magick_wand, channel, black_point, white_point); @@ -294,8 +288,7 @@ PHP_METHOD(Imagick, getImageMatte) IMAGICK_METHOD_DEPRECATED ("Imagick", "getImageMatte"); intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); matte = MagickGetImageMatte(intern->magick_wand); @@ -324,8 +317,7 @@ PHP_METHOD(Imagick, setImageMatte) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageMatte(intern->magick_wand, matte); @@ -358,8 +350,7 @@ PHP_METHOD(Imagick, adaptiveResizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (!php_imagick_thumbnail_dimensions(intern->magick_wand, bestfit, width, height, &new_width, &new_height, legacy)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid image geometry" TSRMLS_CC); @@ -391,8 +382,7 @@ PHP_METHOD(Imagick, sketchImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSketchImage(intern->magick_wand, sigma, radius, angle); @@ -421,8 +411,7 @@ PHP_METHOD(Imagick, shadeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickShadeImage(intern->magick_wand, gray, azimuth, elevation); @@ -502,8 +491,7 @@ PHP_METHOD(Imagick, adaptiveSharpenImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickAdaptiveSharpenImageChannel(intern->magick_wand, channel, radius, sigma); @@ -532,8 +520,7 @@ PHP_METHOD(Imagick, randomThresholdImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickRandomThresholdImageChannel(intern->magick_wand, channel, low, high); @@ -569,8 +556,7 @@ PHP_METHOD(Imagick, roundCornersImage) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); image_width = MagickGetImageWidth(intern->magick_wand); image_height = MagickGetImageHeight(intern->magick_wand); @@ -752,8 +738,7 @@ PHP_METHOD(Imagick, transformImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); transformed = MagickTransformImage(intern->magick_wand, crop, geometry); @@ -790,8 +775,7 @@ PHP_METHOD(Imagick, setImageOpacity) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageOpacity(intern->magick_wand, opacity); @@ -824,8 +808,7 @@ PHP_METHOD(Imagick, setImageAlpha) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageAlpha(intern->magick_wand, alpha); @@ -859,8 +842,7 @@ PHP_METHOD(Imagick, orderedPosterizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickOrderedPosterizeImageChannel(intern->magick_wand, channel, map); @@ -895,8 +877,7 @@ PHP_METHOD(Imagick, polaroidWithTextAndMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); internd = Z_IMAGICKDRAW_P(objvar); @@ -937,8 +918,7 @@ PHP_METHOD(Imagick, polaroidImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); internd = Z_IMAGICKDRAW_P(objvar); #if MagickLibVersion >= 0x700 @@ -975,8 +955,7 @@ PHP_METHOD(Imagick, getImageProperty) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); value = MagickGetImageProperty(intern->magick_wand, name); @@ -1004,9 +983,8 @@ PHP_METHOD(Imagick, setImageProperty) } intern = Z_IMAGICK_P(getThis()); + IMAGICK_NOT_EMPTY(intern); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; status = MagickSetImageProperty(intern->magick_wand, name, value); /* No magick is going to happen */ @@ -1037,8 +1015,7 @@ PHP_METHOD(Imagick, deleteImageProperty) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); image = GetImageFromMagickWand(intern->magick_wand); status = DeleteImageProperty(image, name); @@ -1071,9 +1048,7 @@ PHP_METHOD(Imagick, identifyFormat) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) { - return; - } + IMAGICK_NOT_EMPTY(intern); image_info = AcquireImageInfo(); image = GetImageFromMagickWand(intern->magick_wand); @@ -1117,8 +1092,7 @@ PHP_METHOD(Imagick, getImageInterpolateMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); interpolate = MagickGetImageInterpolateMethod(intern->magick_wand); RETVAL_LONG(interpolate); @@ -1141,8 +1115,7 @@ PHP_METHOD(Imagick, setImageInterpolateMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageInterpolateMethod(intern->magick_wand, interpolate); @@ -1171,8 +1144,7 @@ PHP_METHOD(Imagick, linearStretchImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickLinearStretchImage(intern->magick_wand, blackPoint, whitePoint); @@ -1199,8 +1171,7 @@ PHP_METHOD(Imagick, getImageLength) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGetImageLength(intern->magick_wand, &length); @@ -1229,8 +1200,7 @@ PHP_METHOD(Imagick, extentImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickExtentImage(intern->magick_wand, width, height, x, y); @@ -1257,8 +1227,7 @@ PHP_METHOD(Imagick, getImageOrientation) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); RETVAL_LONG(MagickGetImageOrientation(intern->magick_wand)); } @@ -1279,8 +1248,7 @@ PHP_METHOD(Imagick, setImageOrientation) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageOrientation(intern->magick_wand, orientation); @@ -1319,8 +1287,7 @@ PHP_METHOD(Imagick, paintFloodfillImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); fill_wand = php_imagick_zval_to_pixelwand (fill_param, IMAGICK_CLASS, &fill_allocated TSRMLS_CC); if (!fill_wand) @@ -1373,12 +1340,10 @@ PHP_METHOD(Imagick, clutImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); lookup = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (lookup->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(lookup); status = MagickClutImageChannel(intern->magick_wand, channel, lookup->magick_wand); @@ -1410,12 +1375,10 @@ PHP_METHOD(Imagick, clutImageWithInterpolate) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); lookup = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (lookup->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(lookup); status = MagickClutImage(intern->magick_wand, lookup->magick_wand, interpolate_method); @@ -1451,8 +1414,7 @@ PHP_METHOD(Imagick, getImageProperties) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); properties = MagickGetImageProperties(intern->magick_wand, pattern, &properties_count); @@ -1501,8 +1463,7 @@ PHP_METHOD(Imagick, getImageProfiles) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); profiles = MagickGetImageProfiles(intern->magick_wand, pattern, &profiles_count); @@ -1557,8 +1518,7 @@ PHP_METHOD(Imagick, distortImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); arguments = php_imagick_zval_to_double_array(arg_array, &elements TSRMLS_CC); @@ -1599,8 +1559,7 @@ PHP_METHOD(Imagick, writeImageFile) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); // Get the current name if (format) { @@ -1654,8 +1613,7 @@ PHP_METHOD(Imagick, writeImagesFile) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); // Get the current name if (format) { @@ -1705,8 +1663,7 @@ PHP_METHOD(Imagick, resetImagePage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickResetImagePage(intern->magick_wand, page); @@ -1735,8 +1692,7 @@ PHP_METHOD(Imagick, getImageClipMask) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickGetImageClipMask(intern->magick_wand); @@ -1771,12 +1727,10 @@ PHP_METHOD(Imagick, setImageClipMask) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); clip_mask = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (clip_mask->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(clip_mask); status = MagickSetImageClipMask(intern->magick_wand, clip_mask->magick_wand); @@ -1804,9 +1758,7 @@ PHP_METHOD(Imagick, animateImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; - + IMAGICK_NOT_EMPTY(intern); /* TODO: should this call be there? Not sure */ (void)MagickSetFirstIterator(intern->magick_wand); status = MagickAnimateImages(intern->magick_wand, server_name); @@ -1840,8 +1792,7 @@ PHP_METHOD(Imagick, recolorImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); array = php_imagick_zval_to_double_array(matrix, &num_elements TSRMLS_CC); @@ -1990,8 +1941,7 @@ PHP_METHOD(Imagick, mergeImageLayers) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); /* TODO: SHOULD THIS BE HERE? Reset the iterator */ @@ -2034,8 +1984,7 @@ PHP_METHOD(Imagick, floodfillPaintImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); fill_wand = php_imagick_zval_to_pixelwand (fill_param, IMAGICK_CLASS, &fill_allocated TSRMLS_CC); if (!fill_wand) @@ -2089,8 +2038,7 @@ PHP_METHOD(Imagick, opaquePaintImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); fill_wand = php_imagick_zval_to_pixelwand (fill_param, IMAGICK_CLASS, &fill_allocated TSRMLS_CC); if (!fill_wand) @@ -2138,8 +2086,7 @@ PHP_METHOD(Imagick, transparentPaintImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); target_wand = php_imagick_zval_to_pixelwand (target_param, IMAGICK_CLASS, &target_allocated TSRMLS_CC); if (!target_wand) @@ -2173,8 +2120,7 @@ PHP_METHOD(Imagick, setImageAlphaChannel) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); // TODO - allegedly only // ActivateAlphaChannel, DeactivateAlphaChannel, OpaqueAlphaChannel, or SetAlphaChannel. @@ -2205,8 +2151,7 @@ PHP_METHOD(Imagick, liquidRescaleImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickLiquidRescaleImage(intern->magick_wand, cols, rows, delta_x, rigidity); @@ -2234,8 +2179,7 @@ PHP_METHOD(Imagick, decipherImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickDecipherImage(intern->magick_wand, passphrase); @@ -2262,8 +2206,7 @@ PHP_METHOD(Imagick, encipherImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickEncipherImage(intern->magick_wand, passphrase); @@ -2359,8 +2302,7 @@ PHP_METHOD(Imagick, getImageAlphaChannel) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); RETVAL_BOOL(MagickGetImageAlphaChannel(intern->magick_wand)); } @@ -2385,12 +2327,10 @@ PHP_METHOD(Imagick, getImageChannelDistortions) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_reference = Z_IMAGICK_P(reference_param); - if (php_imagick_ensure_not_empty (intern_reference->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_reference); status = MagickGetImageChannelDistortion(intern->magick_wand, intern_reference->magick_wand, channel, metric, &distortion); @@ -2417,8 +2357,7 @@ PHP_METHOD(Imagick, getImageGravity) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); RETVAL_LONG(MagickGetImageGravity(intern->magick_wand)); } @@ -2438,8 +2377,7 @@ PHP_METHOD(Imagick, setImageGravity) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageGravity(intern->magick_wand, gravity); @@ -2478,8 +2416,7 @@ PHP_METHOD(Imagick, importImagePixels) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (x < 0 || y < 0) { php_imagick_throw_exception (IMAGICK_CLASS, "The coordinates must be non-negative" TSRMLS_CC); @@ -2575,8 +2512,7 @@ PHP_METHOD(Imagick, deskewImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickDeskewImage(intern->magick_wand, threshold); if (status == MagickFalse) { @@ -2604,8 +2540,7 @@ PHP_METHOD(Imagick, houghLineImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickHoughLineImage(intern->magick_wand, width, height, threshold); if (status == MagickFalse) { @@ -2630,8 +2565,7 @@ PHP_METHOD(Imagick, segmentImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSegmentImage(intern->magick_wand, colorspace, verbose, cluster_threshold, smooth_threshold); @@ -2655,8 +2589,7 @@ PHP_METHOD(Imagick, sparseColorImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); double_array = php_imagick_zval_to_double_array(arguments, &num_elements TSRMLS_CC); @@ -2696,12 +2629,10 @@ PHP_METHOD(Imagick, remapImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_remap = Z_IMAGICK_P(remap_param); - if (php_imagick_ensure_not_empty (intern_remap->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_remap); status = MagickRemapImage(intern->magick_wand, intern_remap->magick_wand, dither_method); @@ -2775,8 +2706,7 @@ PHP_METHOD(Imagick, exportImagePixels) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); map_size = (map_len * width * height); @@ -2924,8 +2854,7 @@ PHP_METHOD(Imagick, getImageChannelKurtosis) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGetImageChannelKurtosis(intern->magick_wand, channel, &kurtosis, &skewness); @@ -2957,8 +2886,7 @@ PHP_METHOD(Imagick, functionImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); array = php_imagick_zval_to_double_array(arguments, &num_elements TSRMLS_CC); @@ -2996,8 +2924,7 @@ PHP_METHOD(Imagick, transformImageColorspace) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickTransformImageColorspace(intern->magick_wand, colorspace); @@ -3028,12 +2955,10 @@ PHP_METHOD(Imagick, haldClutImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); hald = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (hald->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(hald); status = MagickHaldClutImageChannel(intern->magick_wand, channel, hald->magick_wand); @@ -3062,8 +2987,7 @@ PHP_METHOD(Imagick, autoLevelImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickAutoLevelImageChannel(intern->magick_wand, channel); if (status == MagickFalse) { @@ -3088,8 +3012,7 @@ PHP_METHOD(Imagick, blueShiftImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickBlueShiftImage(intern->magick_wand, factor); if (status == MagickFalse) { @@ -3114,8 +3037,7 @@ PHP_METHOD(Imagick, setImageArtifact) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageArtifact(intern->magick_wand, artifact, value); if (status == MagickFalse) { @@ -3137,8 +3059,7 @@ PHP_METHOD(Imagick, getImageArtifact) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); value = MagickGetImageArtifact(intern->magick_wand, artifact); @@ -3172,8 +3093,7 @@ PHP_METHOD(Imagick, deleteImageArtifact) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickDeleteImageArtifact(intern->magick_wand, artifact); @@ -3236,8 +3156,7 @@ PHP_METHOD(Imagick, clampImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickClampImageChannel(intern->magick_wand, channel); @@ -3268,8 +3187,7 @@ PHP_METHOD(Imagick, smushImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); retwand = MagickSmushImages(intern->magick_wand, (stack ? MagickTrue : MagickFalse), offset); @@ -3669,8 +3587,7 @@ PHP_METHOD(Imagick, valid) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (intern->next_out_of_bound) { RETURN_FALSE; @@ -3900,8 +3817,7 @@ PHP_METHOD(Imagick, displayImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickDisplayImage(intern->magick_wand, server_name); @@ -3931,8 +3847,7 @@ PHP_METHOD(Imagick, displayImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickDisplayImages(intern->magick_wand, server_name); @@ -4001,8 +3916,7 @@ PHP_METHOD(Imagick, blurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickBlurImageChannel(intern->magick_wand, channel, radius, sigma); @@ -4031,8 +3945,7 @@ PHP_METHOD(Imagick, waveImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 { @@ -4073,8 +3986,7 @@ PHP_METHOD(Imagick, waveImageWithMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickWaveImage(intern->magick_wand, amplitude, wave_length, method); @@ -4133,8 +4045,7 @@ PHP_METHOD(Imagick, scaleImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (!php_imagick_thumbnail_dimensions(intern->magick_wand, bestfit, width, height, &new_width, &new_height, legacy)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid image geometry" TSRMLS_CC); @@ -4168,8 +4079,7 @@ PHP_METHOD(Imagick, cropImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickCropImage(intern->magick_wand, width, height, x, y); @@ -4198,8 +4108,7 @@ PHP_METHOD(Imagick, spreadImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 { @@ -4238,8 +4147,7 @@ PHP_METHOD(Imagick, spreadImageWithMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSpreadImage(intern->magick_wand, radius, method); @@ -4269,8 +4177,7 @@ PHP_METHOD(Imagick, swirlImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 { @@ -4310,8 +4217,7 @@ PHP_METHOD(Imagick, swirlImageWithMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSwirlImage(intern->magick_wand, degrees, method); @@ -4340,8 +4246,7 @@ PHP_METHOD(Imagick, stripImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickStripImage(intern->magick_wand); @@ -4370,8 +4275,7 @@ PHP_METHOD(Imagick, trimImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickTrimImage(intern->magick_wand, fuzz); @@ -4400,8 +4304,7 @@ PHP_METHOD(Imagick, chopImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickChopImage(intern->magick_wand, width, height, x, y); @@ -4429,9 +4332,8 @@ PHP_METHOD(Imagick, clipImage) } intern = Z_IMAGICK_P(getThis()); + IMAGICK_NOT_EMPTY(intern); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; status = MagickClipImage(intern->magick_wand); /* No magick is going to happen */ @@ -4460,8 +4362,7 @@ PHP_METHOD(Imagick, clipPathImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion > 0x636 status = MagickClipImagePath(intern->magick_wand, clip_path, inside); #else @@ -4492,8 +4393,7 @@ PHP_METHOD(Imagick, coalesceImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickCoalesceImages(intern->magick_wand); @@ -4534,8 +4434,7 @@ PHP_METHOD(Imagick, colorFloodfillImage) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); fill_wand = php_imagick_zval_to_pixelwand (fill_param, IMAGICK_CLASS, &fill_allocated TSRMLS_CC); if (!fill_wand) @@ -4586,8 +4485,7 @@ PHP_METHOD(Imagick, combineImages) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickCombineImages(intern->magick_wand, channel_type); if (tmp_wand == NULL) { @@ -4618,12 +4516,10 @@ PHP_METHOD(Imagick, setImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); replace = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (replace->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(replace); status = MagickSetImage(intern->magick_wand, replace->magick_wand); @@ -4650,8 +4546,7 @@ PHP_METHOD(Imagick, getImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickGetImage(intern->magick_wand); @@ -4685,8 +4580,7 @@ PHP_METHOD(Imagick, addImage) intern = Z_IMAGICK_P(getThis()); intern_add = Z_IMAGICK_P(add_obj); - if (php_imagick_ensure_not_empty (intern_add->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_add); status = MagickAddImage(intern->magick_wand, intern_add->magick_wand); @@ -4835,8 +4729,7 @@ PHP_METHOD(Imagick, getImageTotalInkDensity) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); ink_density = MagickGetImageTotalInkDensity(intern->magick_wand); RETVAL_DOUBLE(ink_density); @@ -4858,8 +4751,7 @@ PHP_METHOD(Imagick, implodeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 { @@ -4897,8 +4789,7 @@ PHP_METHOD(Imagick, implodeImageWithMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickImplodeImage(intern->magick_wand, radius, method); @@ -4932,8 +4823,7 @@ PHP_METHOD(Imagick, inverseFourierTransformImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_complement = Z_IMAGICK_P(complement_obj); status = MagickInverseFourierTransformImage(intern->magick_wand, intern_complement->magick_wand, magnitude); @@ -4964,8 +4854,7 @@ PHP_METHOD(Imagick, levelImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickLevelImageChannel(intern->magick_wand, channel, black_point, gamma, white_point); @@ -4991,8 +4880,7 @@ PHP_METHOD(Imagick, magnifyImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickMagnifyImage(intern->magick_wand); @@ -5025,8 +4913,7 @@ PHP_METHOD(Imagick, mapImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_map = Z_IMAGICK_P(map_obj); status = MagickMapImage(intern->magick_wand, intern_map->magick_wand, dither); @@ -5063,8 +4950,7 @@ PHP_METHOD(Imagick, matteFloodfillImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -5105,8 +4991,7 @@ PHP_METHOD(Imagick, medianFilterImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickMedianFilterImage(intern->magick_wand, radius); @@ -5137,8 +5022,7 @@ PHP_METHOD(Imagick, negateImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickNegateImageChannel(intern->magick_wand, channel, gray); @@ -5175,8 +5059,7 @@ PHP_METHOD(Imagick, paintOpaqueImage) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); target_wand = php_imagick_zval_to_pixelwand (target_param, IMAGICK_CLASS, &target_allocated TSRMLS_CC); if (!target_wand) @@ -5226,8 +5109,7 @@ PHP_METHOD(Imagick, optimizeImageLayers) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickOptimizeImageLayers(intern->magick_wand); @@ -5266,8 +5148,7 @@ PHP_METHOD(Imagick, paintTransparentImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -5306,8 +5187,7 @@ PHP_METHOD(Imagick, previewImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickPreviewImages(intern->magick_wand, preview); @@ -5339,8 +5219,7 @@ PHP_METHOD(Imagick, profileImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickProfileImage(intern->magick_wand, name, profile, profile_len); @@ -5370,8 +5249,7 @@ PHP_METHOD(Imagick, quantizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickQuantizeImage(intern->magick_wand, number_colors, colorspace, tree_depth, dither, measure_error); @@ -5401,8 +5279,7 @@ PHP_METHOD(Imagick, quantizeImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickQuantizeImages(intern->magick_wand, number_colors, colorspace, tree_depth, dither, measure_error); @@ -5434,8 +5311,7 @@ PHP_METHOD(Imagick, reduceNoiseImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickReduceNoiseImage(intern->magick_wand, radius); @@ -5471,8 +5347,7 @@ PHP_METHOD(Imagick, removeImageProfile) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); profile = MagickRemoveImageProfile(intern->magick_wand, name, &profile_len); @@ -5502,8 +5377,7 @@ PHP_METHOD(Imagick, separateImageChannel) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickSeparateImage(intern->magick_wand, channel); @@ -5538,8 +5412,7 @@ PHP_METHOD(Imagick, sepiaToneImage) c_opacity = (threshold * QuantumRange) / 100; intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSepiaToneImage(intern->magick_wand, c_opacity); @@ -5569,8 +5442,7 @@ void s_set_image_bias(INTERNAL_FUNCTION_PARAMETERS, zend_bool use_quantum) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (use_quantum) { bias *= QuantumRange; @@ -5640,8 +5512,7 @@ PHP_METHOD(Imagick, setImageBluePrimary) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickSetImageBluePrimary(intern->magick_wand, x, y, z); @@ -5675,8 +5546,7 @@ PHP_METHOD(Imagick, setImageBorderColor) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -5711,8 +5581,7 @@ PHP_METHOD(Imagick, setImageChannelDepth) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageChannelDepth(intern->magick_wand, channel_type, depth); @@ -5743,8 +5612,7 @@ PHP_METHOD(Imagick, setImageColormapColor) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -5780,8 +5648,7 @@ PHP_METHOD(Imagick, setImageColorspace) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageColorspace(intern->magick_wand, colorspace); @@ -5809,8 +5676,7 @@ PHP_METHOD(Imagick, setImageDispose) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageDispose(intern->magick_wand, dispose); @@ -5838,8 +5704,7 @@ PHP_METHOD(Imagick, setImageExtent) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageExtent(intern->magick_wand, rows, columns); @@ -5877,8 +5742,7 @@ PHP_METHOD(Imagick, setImageGreenPrimary) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickSetImageGreenPrimary(intern->magick_wand, x, y, z); @@ -5910,8 +5774,7 @@ PHP_METHOD(Imagick, setImageInterlaceScheme) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageInterlaceScheme(intern->magick_wand, interlace); @@ -5940,8 +5803,7 @@ PHP_METHOD(Imagick, setImageProfile) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageProfile(intern->magick_wand, name, profile, profile_len); @@ -5979,8 +5841,7 @@ PHP_METHOD(Imagick, setImageRedPrimary) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickSetImageRedPrimary(intern->magick_wand, x, y, z); @@ -6012,8 +5873,7 @@ PHP_METHOD(Imagick, setImageRenderingIntent) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageRenderingIntent(intern->magick_wand, rendering_intent); @@ -6040,8 +5900,7 @@ PHP_METHOD(Imagick, setImageVirtualPixelMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); MagickSetImageVirtualPixelMethod(intern->magick_wand, virtual_pixel); RETURN_TRUE; @@ -6074,8 +5933,7 @@ PHP_METHOD(Imagick, setImageWhitePoint) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickSetImageWhitePoint(intern->magick_wand, x, y, z); @@ -6109,8 +5967,7 @@ PHP_METHOD(Imagick, sigmoidalContrastImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSigmoidalContrastImageChannel(intern->magick_wand, channel, sharpen, contrast, midpoint); @@ -6138,12 +5995,10 @@ PHP_METHOD(Imagick, stereoImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(magick_object); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); tmp_wand = MagickStereoImage(intern->magick_wand, intern_second->magick_wand); @@ -6175,12 +6030,10 @@ PHP_METHOD(Imagick, textureImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(magick_object); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); tmp_wand = MagickTextureImage(intern->magick_wand, intern_second->magick_wand); @@ -6217,8 +6070,7 @@ PHP_METHOD(Imagick, tintImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tint_wand = php_imagick_zval_to_pixelwand (tint_param, IMAGICK_CLASS, &tint_allocated TSRMLS_CC); if (!tint_wand) @@ -6271,8 +6123,7 @@ PHP_METHOD(Imagick, unsharpMaskImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - RETURN_THROWS(); + IMAGICK_NOT_EMPTY(intern); status = MagickUnsharpMaskImageChannel(intern->magick_wand, channel, radius, sigma, amount, threshold); @@ -6341,8 +6192,7 @@ PHP_METHOD(Imagick, convolveImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - RETURN_THROWS(); + IMAGICK_NOT_EMPTY(intern); kernel = php_imagick_zval_to_double_array(kernel_array, &num_elements TSRMLS_CC); @@ -6381,8 +6231,7 @@ PHP_METHOD(Imagick, cycleColormapImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - RETURN_THROWS(); + IMAGICK_NOT_EMPTY(intern); status = MagickCycleColormapImage(intern->magick_wand, displace); @@ -6409,8 +6258,7 @@ PHP_METHOD(Imagick, deconstructImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickDeconstructImages(intern->magick_wand); @@ -6442,8 +6290,7 @@ PHP_METHOD(Imagick, getImageRegion) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickGetImageRegion(intern->magick_wand, width, height, x, y); @@ -6474,8 +6321,7 @@ PHP_METHOD(Imagick, despeckleImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickDespeckleImage(intern->magick_wand); @@ -6504,8 +6350,7 @@ PHP_METHOD(Imagick, edgeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickEdgeImage(intern->magick_wand, radius); @@ -6535,8 +6380,7 @@ PHP_METHOD(Imagick, embossImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickEmbossImage(intern->magick_wand, radius, sigma); @@ -6563,8 +6407,7 @@ PHP_METHOD(Imagick, enhanceImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickEnhanceImage(intern->magick_wand); @@ -6591,8 +6434,7 @@ PHP_METHOD(Imagick, equalizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickEqualizeImage(intern->magick_wand); @@ -6623,8 +6465,7 @@ PHP_METHOD(Imagick, evaluateImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickEvaluateImageChannel(intern->magick_wand, channel, evaluate_operator, constant); @@ -6657,8 +6498,7 @@ PHP_METHOD(Imagick, evaluateImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - RETURN_THROWS(); + IMAGICK_NOT_EMPTY(intern); // MagickEvaluateImages appears to crash if index is not zero. #if MagickLibVersion > 0x628 @@ -6703,8 +6543,7 @@ PHP_METHOD(Imagick, forwardFourierTransformImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickForwardFourierTransformImage(intern->magick_wand, magnitude); @@ -6734,8 +6573,7 @@ PHP_METHOD(Imagick, getImageGeometry) intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); width = MagickGetImageWidth(intern->magick_wand); height = MagickGetImageHeight(intern->magick_wand); @@ -6797,8 +6635,7 @@ PHP_METHOD(Imagick, getImageBackgroundColor) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = NewPixelWand(); status = MagickGetImageBackgroundColor(intern->magick_wand, tmp_wand); @@ -6840,8 +6677,7 @@ PHP_METHOD(Imagick, getImageBluePrimary) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickGetImageBluePrimary(intern->magick_wand, &x, &y, &z); @@ -6880,8 +6716,7 @@ PHP_METHOD(Imagick, getImageBorderColor) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = NewPixelWand(); status = MagickGetImageBorderColor(intern->magick_wand, tmp_wand); @@ -6919,8 +6754,7 @@ PHP_METHOD(Imagick, getImageChannelDepth) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); channel_depth = MagickGetImageChannelDepth(intern->magick_wand, channel_type); RETVAL_LONG(channel_depth); @@ -6943,12 +6777,10 @@ PHP_METHOD(Imagick, getImageChannelDistortion) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); status = MagickGetImageChannelDistortion(intern->magick_wand, intern_second->magick_wand, channel_type, metric_type, &distortion); @@ -6981,8 +6813,7 @@ PHP_METHOD(Imagick, getImageChannelExtrema) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGetImageChannelExtrema(intern->magick_wand, channel_type, &minima, &maxima); @@ -7016,8 +6847,7 @@ PHP_METHOD(Imagick, getImageChannelMean) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGetImageChannelMean(intern->magick_wand, channel_type, &mean, &standard_deviation); @@ -7065,8 +6895,7 @@ PHP_METHOD(Imagick, getImageChannelStatistics) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 statistics = MagickGetImageStatistics(intern->magick_wand); @@ -7159,8 +6988,7 @@ PHP_METHOD(Imagick, getImageColormapColor) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = NewPixelWand(); status = MagickGetImageColormapColor(intern->magick_wand, index , tmp_wand); @@ -7197,8 +7025,7 @@ PHP_METHOD(Imagick, getImageColorspace) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); colorSpace = MagickGetImageColorspace(intern->magick_wand); RETVAL_LONG(colorSpace); @@ -7218,8 +7045,7 @@ PHP_METHOD(Imagick, getImageCompose) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); composite = MagickGetImageCompose(intern->magick_wand); RETVAL_LONG(composite); @@ -7239,8 +7065,7 @@ PHP_METHOD(Imagick, getImageDelay) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); delay = MagickGetImageDelay(intern->magick_wand); RETVAL_LONG(delay); @@ -7260,8 +7085,7 @@ PHP_METHOD(Imagick, getImageDepth) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); depth = MagickGetImageDepth(intern->magick_wand); RETVAL_LONG(depth); @@ -7284,12 +7108,10 @@ PHP_METHOD(Imagick, getImageDistortion) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); status = MagickGetImageDistortion(intern->magick_wand, intern_second->magick_wand, metric_type, &distortion); @@ -7320,8 +7142,7 @@ PHP_METHOD(Imagick, getImageExtrema) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGetImageExtrema(intern->magick_wand, &min, &max); @@ -7353,8 +7174,7 @@ PHP_METHOD(Imagick, getImageDispose) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); dispose = MagickGetImageDispose(intern->magick_wand); RETVAL_LONG(dispose); @@ -7374,8 +7194,7 @@ PHP_METHOD(Imagick, getImageGamma) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); gamma = MagickGetImageGamma(intern->magick_wand); RETVAL_DOUBLE(gamma); @@ -7400,8 +7219,7 @@ PHP_METHOD(Imagick, getImageGreenPrimary) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickGetImageGreenPrimary(intern->magick_wand, &x, &y, &z); @@ -7438,8 +7256,7 @@ PHP_METHOD(Imagick, getImageHeight) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); height = MagickGetImageHeight(intern->magick_wand); RETVAL_LONG(height); @@ -7468,8 +7285,7 @@ PHP_METHOD(Imagick, getImageHistogram) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); wand_array = MagickGetImageHistogram(intern->magick_wand, &colors); array_init(return_value); @@ -7509,8 +7325,7 @@ PHP_METHOD(Imagick, getImageInterlaceScheme) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); interlace = MagickGetImageInterlaceScheme(intern->magick_wand); RETVAL_LONG(interlace); @@ -7530,8 +7345,7 @@ PHP_METHOD(Imagick, getImageIterations) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); iterations = MagickGetImageIterations(intern->magick_wand); RETVAL_LONG(iterations); @@ -7554,8 +7368,7 @@ PHP_METHOD(Imagick, getImageMatteColor) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = NewPixelWand(); status = MagickGetImageMatteColor(intern->magick_wand, tmp_wand); @@ -7595,8 +7408,7 @@ PHP_METHOD(Imagick, getImagePage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGetImagePage(intern->magick_wand, &width, &height, &x, &y); @@ -7632,8 +7444,7 @@ PHP_METHOD(Imagick, getImagePixelColor) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = NewPixelWand(); @@ -7681,8 +7492,7 @@ PHP_METHOD(Imagick, setImagePixelColor) return; intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImagePixelColor(intern->magick_wand, x, y , color_wand); @@ -7718,8 +7528,7 @@ PHP_METHOD(Imagick, getImageProfile) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); profile = (char *)MagickGetImageProfile(intern->magick_wand, name, &length); @@ -7752,8 +7561,7 @@ PHP_METHOD(Imagick, getImageRedPrimary) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickGetImageRedPrimary(intern->magick_wand, &x, &y, &z); @@ -7790,8 +7598,7 @@ PHP_METHOD(Imagick, getImageRenderingIntent) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); renderingIntent = MagickGetImageRenderingIntent(intern->magick_wand); RETVAL_LONG(renderingIntent); @@ -7812,8 +7619,7 @@ PHP_METHOD(Imagick, getImageResolution) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGetImageResolution(intern->magick_wand, &x, &y); @@ -7843,8 +7649,7 @@ PHP_METHOD(Imagick, getImageScene) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); scene = MagickGetImageScene(intern->magick_wand); RETVAL_LONG(scene); @@ -7864,8 +7669,7 @@ PHP_METHOD(Imagick, getImageSignature) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); signature = MagickGetImageSignature(intern->magick_wand); IM_ZVAL_STRING(return_value, signature); @@ -7887,8 +7691,7 @@ PHP_METHOD(Imagick, getImageTicksPerSecond) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); ticks = MagickGetImageTicksPerSecond(intern->magick_wand); RETVAL_LONG(ticks); @@ -7908,8 +7711,7 @@ PHP_METHOD(Imagick, getImageType) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); imageType = MagickGetImageType(intern->magick_wand); RETVAL_LONG(imageType); @@ -7929,8 +7731,7 @@ PHP_METHOD(Imagick, getImageUnits) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); resolutionType = MagickGetImageUnits(intern->magick_wand); RETVAL_LONG(resolutionType); @@ -7950,8 +7751,7 @@ PHP_METHOD(Imagick, getImageVirtualPixelMethod) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); pixelMethod = MagickGetImageVirtualPixelMethod(intern->magick_wand); RETVAL_LONG(pixelMethod); @@ -7976,8 +7776,7 @@ PHP_METHOD(Imagick, getImageWhitePoint) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickGetImageWhitePoint(intern->magick_wand, &x, &y, &z); @@ -8014,8 +7813,7 @@ PHP_METHOD(Imagick, getImageWidth) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); width = MagickGetImageWidth(intern->magick_wand); RETVAL_LONG(width); @@ -8115,8 +7913,7 @@ PHP_METHOD(Imagick, thumbnailImage) #endif intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (bestfit && fill) { #if MagickLibVersion > 0x631 @@ -8295,8 +8092,7 @@ PHP_METHOD(Imagick, cropThumbnailImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); /* The world collapses.. */ if (!s_crop_thumbnail_image(intern->magick_wand, crop_width, crop_height, legacy TSRMLS_CC)) { @@ -8589,8 +8385,7 @@ PHP_METHOD(Imagick, removeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickRemoveImage(intern->magick_wand); @@ -8618,8 +8413,7 @@ PHP_METHOD(Imagick, getImageFilename) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); filename = MagickGetImageFilename(intern->magick_wand); @@ -8644,8 +8438,7 @@ PHP_METHOD(Imagick, getImageSize) MagickBooleanType status; #endif intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickGetImageLength(intern->magick_wand, &length); @@ -8689,8 +8482,7 @@ PHP_METHOD(Imagick, getImageBlob) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (!s_image_has_format (intern->magick_wand)) { php_imagick_throw_exception(IMAGICK_CLASS, "Image has no format" TSRMLS_CC); @@ -8724,8 +8516,7 @@ PHP_METHOD(Imagick, getImagesBlob) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion > 0x628 /* Get the current iterator position */ @@ -8783,8 +8574,7 @@ PHP_METHOD(Imagick, getImageFormat) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (!s_image_has_format (intern->magick_wand)) { php_imagick_throw_exception(IMAGICK_CLASS, "Image has no format" TSRMLS_CC); return; @@ -8810,9 +8600,8 @@ PHP_METHOD(Imagick, getImageMimeType) } intern = Z_IMAGICK_P(getThis()); + IMAGICK_NOT_EMPTY(intern); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; if (!s_image_has_format (intern->magick_wand)) { php_imagick_throw_exception(IMAGICK_CLASS, "Image has no format" TSRMLS_CC); return; @@ -8945,8 +8734,7 @@ PHP_METHOD(Imagick, identifyImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); // This is to parse some string options, ugly hack but easier than using CommandOptionToMNemonic // or MagickOptionToMnemonic and FormatMagickSize, which have changed names and signatures between @@ -9036,8 +8824,7 @@ PHP_METHOD(Imagick, getImageColors) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); ZVAL_LONG(return_value, (long)MagickGetImageColors(intern->magick_wand)); return; @@ -9060,9 +8847,7 @@ PHP_METHOD(Imagick, commentImage) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickCommentImage(intern->magick_wand, comment); @@ -9092,8 +8877,7 @@ PHP_METHOD(Imagick, setImageFilename) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageFilename(intern->magick_wand, filename); @@ -9126,8 +8910,7 @@ PHP_METHOD(Imagick, setImageAttribute) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageAttribute(intern->magick_wand, key, attribute); @@ -9157,9 +8940,7 @@ PHP_METHOD(Imagick, setImageBackgroundColor) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -9196,8 +8977,7 @@ PHP_METHOD(Imagick, setImageChannelMask) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); previous_channel_type = MagickSetImageChannelMask(intern->magick_wand, channel); @@ -9222,8 +9002,7 @@ PHP_METHOD(Imagick, setImageCompose) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageCompose(intern->magick_wand, compose); @@ -9267,9 +9046,7 @@ PHP_METHOD(Imagick, setImageCompression) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageCompression(intern->magick_wand, compression); @@ -9297,8 +9074,7 @@ PHP_METHOD(Imagick, setImageDelay) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageDelay(intern->magick_wand, delay); @@ -9333,8 +9109,7 @@ PHP_METHOD(Imagick, colorizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (color_param, IMAGICK_CLASS, &color_allocated TSRMLS_CC); if (!color_wand) @@ -9410,12 +9185,10 @@ PHP_METHOD(Imagick, compareImageChannels) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); tmp_wand = MagickCompareImageChannels(intern->magick_wand, intern_second->magick_wand, channel_type, metric_type, &distortion); @@ -9457,8 +9230,7 @@ PHP_METHOD(Imagick, compareImageLayers) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 tmp_wand = (MagickWand *)MagickCompareImagesLayers(intern->magick_wand, compare_method); @@ -9493,8 +9265,7 @@ PHP_METHOD(Imagick, flattenImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); /* TODO: SHOULD THIS BE HERE? */ (void)MagickSetFirstIterator(intern->magick_wand); @@ -9532,8 +9303,7 @@ PHP_METHOD(Imagick, flipImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickFlipImage(intern->magick_wand); @@ -9559,8 +9329,7 @@ PHP_METHOD(Imagick, flopImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickFlopImage(intern->magick_wand); @@ -9590,9 +9359,7 @@ PHP_METHOD(Imagick, frameImage) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -9644,9 +9411,7 @@ PHP_METHOD(Imagick, frameImageWithComposite) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -9697,8 +9462,7 @@ PHP_METHOD(Imagick, fxImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickFxImageChannel(intern->magick_wand, channel, expression); @@ -9730,8 +9494,7 @@ PHP_METHOD(Imagick, gammaImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGammaImageChannel(intern->magick_wand, channel, gamma); @@ -9760,8 +9523,7 @@ PHP_METHOD(Imagick, gaussianBlurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickGaussianBlurImageChannel(intern->magick_wand, channel, radius, sigma); @@ -9798,12 +9560,10 @@ PHP_METHOD(Imagick, compareImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); #if PHP_VERSION_ID >= 70000 pNewWand = &new_wand; @@ -9846,8 +9606,7 @@ PHP_METHOD(Imagick, contrastImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickContrastImage(intern->magick_wand, contrast); @@ -9875,8 +9634,7 @@ PHP_METHOD(Imagick, setImageDepth) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageDepth(intern->magick_wand, depth); @@ -9904,8 +9662,7 @@ PHP_METHOD(Imagick, setImageGamma) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageGamma(intern->magick_wand, gamma); @@ -9933,8 +9690,7 @@ PHP_METHOD(Imagick, setImageIterations) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageIterations(intern->magick_wand, iterations); @@ -9964,9 +9720,7 @@ PHP_METHOD(Imagick, setImageMatteColor) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -10003,8 +9757,7 @@ PHP_METHOD(Imagick, setImagePage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImagePage(intern->magick_wand, width, height, x, y); @@ -10032,8 +9785,7 @@ PHP_METHOD(Imagick, setImageResolution) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageResolution(intern->magick_wand, x_res, y_res); @@ -10061,8 +9813,7 @@ PHP_METHOD(Imagick, setImageScene) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageScene(intern->magick_wand, scene); @@ -10090,8 +9841,7 @@ PHP_METHOD(Imagick, setImageTicksPerSecond) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageTicksPerSecond(intern->magick_wand, ticks_per_second); @@ -10119,8 +9869,7 @@ PHP_METHOD(Imagick, setImageType) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageType(intern->magick_wand, image_type); @@ -10148,9 +9897,7 @@ PHP_METHOD(Imagick, setImageUnits) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageUnits(intern->magick_wand, units); @@ -10179,8 +9926,7 @@ PHP_METHOD(Imagick, setImageFormat) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageFormat(intern->magick_wand, format); @@ -10209,8 +9955,7 @@ PHP_METHOD(Imagick, charcoalImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickCharcoalImage(intern->magick_wand, sigma, radius); @@ -10240,8 +9985,7 @@ PHP_METHOD(Imagick, oilPaintImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 status = MagickOilPaintImage(intern->magick_wand, radius, sigma); @@ -10275,8 +10019,7 @@ PHP_METHOD(Imagick, oilPaintImageWithSigma) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickOilPaintImage(intern->magick_wand, radius, sigma); @@ -10306,8 +10049,7 @@ PHP_METHOD(Imagick, normalizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion > 0x628 status = MagickNormalizeImageChannel(intern->magick_wand, channel); @@ -10339,9 +10081,8 @@ PHP_METHOD(Imagick, labelImage) } intern = Z_IMAGICK_P(getThis()); + IMAGICK_NOT_EMPTY(intern); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; status = MagickLabelImage(intern->magick_wand, label); /* No magick is going to happen */ @@ -10371,8 +10112,7 @@ PHP_METHOD(Imagick, writeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (!filename) { filename = MagickGetImageFilename(intern->magick_wand); @@ -10429,8 +10169,7 @@ PHP_METHOD(Imagick, writeImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (!filename_len) { php_imagick_convert_imagick_exception(intern->magick_wand, "Can not use empty string as a filename" TSRMLS_CC); @@ -10465,9 +10204,7 @@ PHP_METHOD(Imagick, drawImage) char *old_locale; intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &objvar, php_imagickdraw_sc_entry) == FAILURE) { return; @@ -10515,8 +10252,7 @@ PHP_METHOD(Imagick, annotateImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); internd = Z_IMAGICKDRAW_P(objvar); @@ -10572,8 +10308,7 @@ PHP_METHOD(Imagick, setImageCompressionQuality) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetImageCompressionQuality(intern->magick_wand, quality); @@ -10605,12 +10340,10 @@ PHP_METHOD(Imagick, compositeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); #if MagickLibVersion > 0x628 MagickCompositeImageChannel(intern->magick_wand, channel, intern_second->magick_wand, composite_id, x, y); @@ -10636,8 +10369,7 @@ PHP_METHOD(Imagick, modulateImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickModulateImage(intern->magick_wand, brightness, saturation, hue); @@ -10665,9 +10397,7 @@ PHP_METHOD(Imagick, addNoiseImage) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion > 0x628 status = MagickAddNoiseImageChannel(intern->magick_wand, channel, noise); @@ -10702,10 +10432,7 @@ PHP_METHOD(Imagick, addNoiseImageWithAttenuate) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; - + IMAGICK_NOT_EMPTY(intern); status = MagickAddNoiseImageChannelWithAttenuate( intern->magick_wand, @@ -10748,9 +10475,8 @@ PHP_METHOD(Imagick, montageImage) } intern = Z_IMAGICK_P(getThis()); + IMAGICK_NOT_EMPTY(intern); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; internd = Z_IMAGICKDRAW_P(objvar); tmp_wand = MagickMontageImage(intern->magick_wand, internd->drawing_wand, tile_geometry, thumbnail_geometry, montage_mode, frame); @@ -10783,8 +10509,7 @@ PHP_METHOD(Imagick, affineTransformImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); internd = Z_IMAGICKDRAW_P(objvar); status = MagickAffineTransformImage(intern->magick_wand, internd->drawing_wand); @@ -10815,8 +10540,7 @@ PHP_METHOD(Imagick, averageImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion > 0x700 // MagickEvaluateImages appears to crash if index is not zero. @@ -10863,9 +10587,7 @@ PHP_METHOD(Imagick, borderImage) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -10912,9 +10634,7 @@ PHP_METHOD(Imagick, borderImageWithComposite) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -10952,9 +10672,7 @@ PHP_METHOD(Imagick, thresholdImage) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickThresholdImageChannel(intern->magick_wand, channel, threshold); @@ -10982,8 +10700,7 @@ PHP_METHOD(Imagick, adaptiveThresholdImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickAdaptiveThresholdImage(intern->magick_wand, width, height, offset); @@ -11013,8 +10730,7 @@ PHP_METHOD(Imagick, sharpenImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSharpenImageChannel(intern->magick_wand, channel, radius, sigma); @@ -11041,8 +10757,7 @@ PHP_METHOD(Imagick, shaveImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickShaveImage(intern->magick_wand, columns, rows); @@ -11073,8 +10788,7 @@ PHP_METHOD(Imagick, shearImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -11110,8 +10824,7 @@ PHP_METHOD(Imagick, spliceImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSpliceImage(intern->magick_wand, width, height, x, y); @@ -11140,12 +10853,10 @@ PHP_METHOD(Imagick, steganoImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); intern_second = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (intern_second->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern_second); tmp_wand = MagickSteganoImage(intern->magick_wand, intern_second->magick_wand, offset); @@ -11206,8 +10917,7 @@ PHP_METHOD(Imagick, rotateImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -11242,8 +10952,7 @@ PHP_METHOD(Imagick, sampleImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSampleImage(intern->magick_wand, columns, rows); @@ -11271,8 +10980,7 @@ PHP_METHOD(Imagick, solarizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSolarizeImage(intern->magick_wand, threshold); @@ -11302,8 +11010,7 @@ PHP_METHOD(Imagick, shadowImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickShadowImage(intern->magick_wand, opacity, sigma, x, y); @@ -11332,8 +11039,7 @@ PHP_METHOD(Imagick, motionBlurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion > 0x643 status = MagickMotionBlurImageChannel(intern->magick_wand, channel, radius, sigma, angle); @@ -11370,8 +11076,7 @@ PHP_METHOD(Imagick, mosaicImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); /* TODO: should this be here? */ MagickSetFirstIterator(intern->magick_wand); @@ -11406,8 +11111,7 @@ PHP_METHOD(Imagick, morphImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickMorphImages(intern->magick_wand, frames); @@ -11438,8 +11142,7 @@ PHP_METHOD(Imagick, minifyImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickMinifyImage(intern->magick_wand); @@ -11469,8 +11172,7 @@ PHP_METHOD(Imagick, posterizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickPosterizeImage(intern->magick_wand, levels, dither); @@ -11502,8 +11204,7 @@ PHP_METHOD(Imagick, radialBlurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickRadialBlurImageChannel(intern->magick_wand, channel, angle); @@ -11534,8 +11235,7 @@ PHP_METHOD(Imagick, raiseImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickRaiseImage(intern->magick_wand, width, height, x, y, raise); @@ -11565,8 +11265,7 @@ PHP_METHOD(Imagick, blackThresholdImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -11602,8 +11301,7 @@ PHP_METHOD(Imagick, resampleImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 //TODO - allow filter to be set. @@ -11643,8 +11341,7 @@ PHP_METHOD(Imagick, resizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); if (!php_imagick_thumbnail_dimensions(intern->magick_wand, bestfit, width, height, &new_width, &new_height, legacy)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid image geometry" TSRMLS_CC); @@ -11682,8 +11379,7 @@ PHP_METHOD(Imagick, rollImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickRollImage(intern->magick_wand, x, y); /* No magick is going to happen */ @@ -11710,9 +11406,8 @@ PHP_METHOD(Imagick, appendImages) } intern = Z_IMAGICK_P(getThis()); + IMAGICK_NOT_EMPTY(intern); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; tmp_wand = MagickAppendImages(intern->magick_wand, stack); if (!tmp_wand) { @@ -11743,8 +11438,7 @@ PHP_METHOD(Imagick, whiteThresholdImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); if (!color_wand) @@ -11778,9 +11472,7 @@ PHP_METHOD(Imagick, getPixelIterator) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); pixel_it = NewPixelIterator(intern->magick_wand); @@ -11809,9 +11501,7 @@ PHP_METHOD(Imagick, getPixelRegionIterator) } intern = Z_IMAGICK_P(getThis()); - - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); pixel_it = NewPixelRegionIterator(intern->magick_wand, x, y, columns, rows); @@ -12757,8 +12447,7 @@ PHP_METHOD(Imagick, brightnessContrastImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickBrightnessContrastImageChannel(intern->magick_wand, channel, brightness, contrast); @@ -12829,8 +12518,7 @@ PHP_METHOD(Imagick, colorMatrixImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); colors = php_imagick_zval_to_double_array(color_matrix_array, &num_elements TSRMLS_CC); @@ -12893,8 +12581,7 @@ PHP_METHOD(Imagick, selectiveBlurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSelectiveBlurImageChannel(intern->magick_wand, channel, brightness, contrast, threshold); @@ -12926,8 +12613,7 @@ PHP_METHOD(Imagick, rotationalBlurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickRotationalBlurImageChannel(intern->magick_wand, channel, angle); @@ -12968,8 +12654,7 @@ PHP_METHOD(Imagick, statisticImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickStatisticImageChannel(intern->magick_wand, channel, type, width, height); @@ -13028,8 +12713,7 @@ PHP_METHOD(Imagick, subimageMatch) reference_intern = Z_IMAGICK_P(reference_obj); intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); #if MagickLibVersion >= 0x700 new_wand = MagickSimilarityImage(intern->magick_wand, reference_intern->magick_wand, @@ -13338,8 +13022,7 @@ PHP_METHOD(Imagick, optimizeImageTransparency) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickOptimizeImageTransparency(intern->magick_wand); @@ -13369,8 +13052,7 @@ PHP_METHOD(Imagick, autoGammaImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickAutoGammaImageChannel(intern->magick_wand, channel); @@ -13399,8 +13081,7 @@ PHP_METHOD(Imagick, autoOrient) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickAutoOrientImage(intern->magick_wand); @@ -13432,12 +13113,10 @@ PHP_METHOD(Imagick, compositeImageGravity) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); image_to_composite = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (image_to_composite->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(image_to_composite); status = MagickCompositeImageGravity(intern->magick_wand, image_to_composite->magick_wand, composite, gravity); @@ -13470,8 +13149,7 @@ PHP_METHOD(Imagick, localContrastImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickLocalContrastImage(intern->magick_wand, radius, strength); @@ -13501,8 +13179,7 @@ PHP_METHOD(Imagick, identifyImageType) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); imageType = MagickIdentifyImageType(intern->magick_wand); @@ -13528,8 +13205,7 @@ PHP_METHOD(Imagick, getImageMask) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); tmp_wand = MagickGetImageMask(intern->magick_wand, pixelmask_type); @@ -13564,12 +13240,10 @@ PHP_METHOD(Imagick, setImageMask) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); clip_mask = Z_IMAGICK_P(objvar); - if (php_imagick_ensure_not_empty (clip_mask->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(clip_mask); MagickSetImageMask( intern->magick_wand, @@ -13605,8 +13279,7 @@ PHP_METHOD(Imagick, cannyEdgeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickCannyEdgeImage( intern->magick_wand, @@ -13661,8 +13334,7 @@ PHP_METHOD(Imagick, waveletDenoiseImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickWaveletDenoiseImage( intern->magick_wand, @@ -13697,8 +13369,7 @@ PHP_METHOD(Imagick, meanShiftImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickMeanShiftImage( intern->magick_wand, @@ -13734,8 +13405,7 @@ PHP_METHOD(Imagick, kmeansImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickKmeansImage( intern->magick_wand, @@ -13770,8 +13440,7 @@ PHP_METHOD(Imagick, rangeThresholdImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickRangeThresholdImage( intern->magick_wand, @@ -13807,8 +13476,7 @@ PHP_METHOD(Imagick, autoThresholdImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickAutoThresholdImage( intern->magick_wand, @@ -13841,8 +13509,7 @@ PHP_METHOD(Imagick, bilateralBlurImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickBilateralBlurImage( intern->magick_wand, @@ -13879,8 +13546,7 @@ PHP_METHOD(Imagick, claheImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickCLAHEImage( intern->magick_wand, @@ -13952,8 +13618,7 @@ PHP_METHOD(Imagick, colorThresholdImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); start_color_wand = php_imagick_zval_to_pixelwand (start_color_param, IMAGICK_CLASS, &start_color_allocated TSRMLS_CC); if (!start_color_wand) @@ -14004,8 +13669,7 @@ PHP_METHOD(Imagick, complexImages) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetIteratorIndex(intern->magick_wand, 0); if (status == MagickFalse) { @@ -14048,8 +13712,7 @@ PHP_METHOD(Imagick, interpolativeResizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickInterpolativeResizeImage( intern->magick_wand, @@ -14088,8 +13751,7 @@ PHP_METHOD(Imagick, levelImageColors) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); black_color_wand = php_imagick_zval_to_pixelwand (black_color_param, IMAGICK_CLASS, &black_color_allocated TSRMLS_CC); if (!black_color_wand) @@ -14140,8 +13802,7 @@ PHP_METHOD(Imagick, levelizeImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickLevelizeImage( intern->magick_wand, @@ -14178,8 +13839,7 @@ PHP_METHOD(Imagick, orderedDitherImage) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickOrderedDitherImage( intern->magick_wand, @@ -14232,8 +13892,7 @@ PHP_METHOD(Imagick, deleteOption) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickDeleteOption(intern->magick_wand, option); @@ -14578,8 +14237,7 @@ PHP_METHOD(Imagick, polynomialImage) terms_double_array = php_imagick_zval_to_double_array(terms, &terms_count TSRMLS_CC); intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetIteratorIndex(intern->magick_wand, 0); if (status == MagickFalse) { @@ -14654,8 +14312,7 @@ PHP_METHOD(Imagick, setExtract) } intern = Z_IMAGICK_P(getThis()); -// if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) -// return; +// IMAGICK_NOT_EMPTY(intern); status = MagickSetExtract(intern->magick_wand, geometry_string); @@ -14685,8 +14342,7 @@ PHP_METHOD(Imagick, setInterpolateMethod) } intern = Z_IMAGICK_P(getThis()); -// if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) -// return; +// IMAGICK_NOT_EMPTY(intern); status = MagickSetInterpolateMethod(intern->magick_wand, interpolate); @@ -14715,8 +14371,7 @@ PHP_METHOD(Imagick, setOrientation) } intern = Z_IMAGICK_P(getThis()); - if (php_imagick_ensure_not_empty (intern->magick_wand) == 0) - return; + IMAGICK_NOT_EMPTY(intern); status = MagickSetOrientation(intern->magick_wand, orientation_type); From 797b71c166bae0a6684856c52eeb6c9ee8b77437 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Jun 2023 15:53:05 +0200 Subject: [PATCH 30/31] Fix Imagick class: use RETURN_THROWS after zpp and exception --- imagick_class.c | 1770 ++++++++++++++++++++++------------------------- 1 file changed, 812 insertions(+), 958 deletions(-) diff --git a/imagick_class.c b/imagick_class.c index 90bf1d39..abfd36fb 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -40,7 +40,7 @@ PHP_METHOD(Imagick, pingImageFile) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|s!", &zstream, &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -56,7 +56,7 @@ PHP_METHOD(Imagick, pingImageFile) if (!EG(exception)) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to ping image from the filehandle" TSRMLS_CC); } - return; + RETURN_THROWS(); } if (filename) { @@ -80,12 +80,12 @@ PHP_METHOD(Imagick, pingImageBlob) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &image_string, &image_string_len) == FAILURE) { - return; + RETURN_THROWS(); } if (image_string_len == 0) { php_imagick_throw_exception(IMAGICK_CLASS, "Empty image string passed" TSRMLS_CC); - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -94,7 +94,7 @@ PHP_METHOD(Imagick, pingImageBlob) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to ping image blob" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -113,7 +113,7 @@ PHP_METHOD(Imagick, vignetteImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddll", &black_point, &white_point, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -124,7 +124,7 @@ PHP_METHOD(Imagick, vignetteImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to apply vignette filter" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -140,7 +140,7 @@ PHP_METHOD(Imagick, transposeImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -151,7 +151,7 @@ PHP_METHOD(Imagick, transposeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to transpose image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -167,7 +167,7 @@ PHP_METHOD(Imagick, transverseImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -178,7 +178,7 @@ PHP_METHOD(Imagick, transverseImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to transverse image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -197,7 +197,7 @@ PHP_METHOD(Imagick, adaptiveBlurImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &radius, &sigma, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -208,7 +208,7 @@ PHP_METHOD(Imagick, adaptiveBlurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to adaptive blur image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -224,7 +224,7 @@ PHP_METHOD(Imagick, uniqueImageColors) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -235,7 +235,7 @@ PHP_METHOD(Imagick, uniqueImageColors) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get unique image colors" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -253,7 +253,7 @@ PHP_METHOD(Imagick, contrastStretchImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &black_point, &white_point, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -264,7 +264,7 @@ PHP_METHOD(Imagick, contrastStretchImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to contrast strech image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -282,7 +282,7 @@ PHP_METHOD(Imagick, getImageMatte) MagickBooleanType matte; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } IMAGICK_METHOD_DEPRECATED ("Imagick", "getImageMatte"); @@ -313,7 +313,7 @@ PHP_METHOD(Imagick, setImageMatte) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &matte) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -324,7 +324,7 @@ PHP_METHOD(Imagick, setImageMatte) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image matte" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -346,7 +346,7 @@ PHP_METHOD(Imagick, adaptiveResizeImage) zend_bool legacy = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll|bb", &width, &height, &bestfit, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -354,14 +354,14 @@ PHP_METHOD(Imagick, adaptiveResizeImage) if (!php_imagick_thumbnail_dimensions(intern->magick_wand, bestfit, width, height, &new_width, &new_height, legacy)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid image geometry" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickAdaptiveResizeImage(intern->magick_wand, new_width, new_height); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to adaptive resize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -378,7 +378,7 @@ PHP_METHOD(Imagick, sketchImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd", &radius, &sigma, &angle) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -389,7 +389,7 @@ PHP_METHOD(Imagick, sketchImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to sketch image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -407,7 +407,7 @@ PHP_METHOD(Imagick, shadeImage) zend_bool gray; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "bdd", &gray, &azimuth, &elevation) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -418,7 +418,7 @@ PHP_METHOD(Imagick, shadeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to shade image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -435,7 +435,7 @@ PHP_METHOD(Imagick, getSizeOffset) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -443,7 +443,7 @@ PHP_METHOD(Imagick, getSizeOffset) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get size offset" TSRMLS_CC); - return; + RETURN_THROWS(); } RETVAL_LONG(offset); @@ -461,7 +461,7 @@ PHP_METHOD(Imagick, setSizeOffset) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", &columns, &rows, &offset) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -470,7 +470,7 @@ PHP_METHOD(Imagick, setSizeOffset) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set size offset" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -487,7 +487,7 @@ PHP_METHOD(Imagick, adaptiveSharpenImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &radius, &sigma, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -497,7 +497,7 @@ PHP_METHOD(Imagick, adaptiveSharpenImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to adaptive sharpen image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -516,7 +516,7 @@ PHP_METHOD(Imagick, randomThresholdImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &low, &high, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -527,7 +527,7 @@ PHP_METHOD(Imagick, randomThresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to random threshold image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -551,7 +551,7 @@ PHP_METHOD(Imagick, roundCornersImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|ddd", &x_rounding, &y_rounding, &stroke_width, &displace, &correction) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -563,28 +563,28 @@ PHP_METHOD(Imagick, roundCornersImage) if (!image_width || !image_height) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to round corners on empty image" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickSetImageMatte(intern->magick_wand, MagickTrue); if (status == MagickFalse) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to set image matte" TSRMLS_CC); - return; + RETURN_THROWS(); } /* Here we go.. */ color = NewPixelWand(); if (!color) { php_imagick_throw_exception (IMAGICK_CLASS, "Failed to allocate PixelWand structure" TSRMLS_CC); - return; + RETURN_THROWS(); } draw = NewDrawingWand(); if (!draw) { DestroyPixelWand (color); php_imagick_throw_exception (IMAGICK_CLASS, "Failed to allocate DrawingWand structure" TSRMLS_CC); - return; + RETURN_THROWS(); } mask_image = NewMagickWand(); @@ -592,7 +592,7 @@ PHP_METHOD(Imagick, roundCornersImage) DestroyPixelWand (color); DestroyDrawingWand (draw); php_imagick_throw_exception (IMAGICK_CLASS, "Failed to allocate MagickWand structure" TSRMLS_CC); - return; + RETURN_THROWS(); } @@ -606,7 +606,7 @@ PHP_METHOD(Imagick, roundCornersImage) if (status == MagickFalse) { exit_cleanup(); php_imagick_throw_exception(IMAGICK_CLASS, "Unable to set pixel color" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickNewImage(mask_image, image_width, image_height, color); @@ -614,7 +614,7 @@ PHP_METHOD(Imagick, roundCornersImage) if (status == MagickFalse) { exit_cleanup(); php_imagick_throw_exception(IMAGICK_CLASS, "Unable to allocate mask image" TSRMLS_CC); - return; + RETURN_THROWS(); } MagickSetImageBackgroundColor(mask_image, color); @@ -623,7 +623,7 @@ PHP_METHOD(Imagick, roundCornersImage) if (status == MagickFalse) { exit_cleanup(); php_imagick_throw_exception(IMAGICK_CLASS, "Unable to set pixel color" TSRMLS_CC); - return; + RETURN_THROWS(); } DrawSetFillColor(draw, color); @@ -632,7 +632,7 @@ PHP_METHOD(Imagick, roundCornersImage) if (status == MagickFalse) { exit_cleanup(); php_imagick_throw_exception(IMAGICK_CLASS, "Unable to set pixel color" TSRMLS_CC); - return; + RETURN_THROWS(); } DrawSetStrokeColor(draw, color); @@ -651,7 +651,7 @@ PHP_METHOD(Imagick, roundCornersImage) if (status == MagickFalse) { exit_cleanup(); php_imagick_throw_exception(IMAGICK_CLASS, "Unable to draw on image" TSRMLS_CC); - return; + RETURN_THROWS(); } @@ -664,7 +664,7 @@ PHP_METHOD(Imagick, roundCornersImage) if (status == MagickFalse) { exit_cleanup(); php_imagick_throw_exception(IMAGICK_CLASS, "Unable to composite image" TSRMLS_CC); - return; + RETURN_THROWS(); } exit_cleanup(); @@ -682,14 +682,13 @@ PHP_METHOD(Imagick, getIteratorIndex) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); status = MagickGetIteratorIndex(intern->magick_wand); ZVAL_LONG(return_value, (long)status); - return; } /* }}} */ @@ -704,7 +703,7 @@ PHP_METHOD(Imagick, setIteratorIndex) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -713,7 +712,7 @@ PHP_METHOD(Imagick, setIteratorIndex) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set iterator index" TSRMLS_CC); - return; + RETURN_THROWS(); } intern->next_out_of_bound = 0; @@ -734,7 +733,7 @@ PHP_METHOD(Imagick, transformImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &crop, &crop_len, &geometry, &geometry_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -744,14 +743,13 @@ PHP_METHOD(Imagick, transformImage) if (!transformed) { php_imagick_convert_imagick_exception(intern->magick_wand, "Transforming image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, transformed); - return; } #endif //#if MagickLibVersion < 0x700 @@ -771,7 +769,7 @@ PHP_METHOD(Imagick, setImageOpacity) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &opacity) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -782,7 +780,7 @@ PHP_METHOD(Imagick, setImageOpacity) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image opacity" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -804,7 +802,7 @@ PHP_METHOD(Imagick, setImageAlpha) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &alpha) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -815,7 +813,7 @@ PHP_METHOD(Imagick, setImageAlpha) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image alpha" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -838,7 +836,7 @@ PHP_METHOD(Imagick, orderedPosterizeImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &map, &map_len, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -848,7 +846,7 @@ PHP_METHOD(Imagick, orderedPosterizeImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to posterize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -873,7 +871,7 @@ PHP_METHOD(Imagick, polaroidWithTextAndMethod) im_long method; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Odsl", &objvar, php_imagickdraw_sc_entry, &angle, &caption, &caption_len, &method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -892,7 +890,7 @@ PHP_METHOD(Imagick, polaroidWithTextAndMethod) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to polaroidWithTextAndMethod image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -914,7 +912,7 @@ PHP_METHOD(Imagick, polaroidImage) double angle; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Od", &objvar, php_imagickdraw_sc_entry, &angle) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -934,7 +932,7 @@ PHP_METHOD(Imagick, polaroidImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to polaroid image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -951,7 +949,7 @@ PHP_METHOD(Imagick, getImageProperty) IM_LEN_TYPE name_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -979,7 +977,7 @@ PHP_METHOD(Imagick, setImageProperty) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &name, &name_len, &value, &value_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -990,7 +988,7 @@ PHP_METHOD(Imagick, setImageProperty) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image property" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1010,7 +1008,7 @@ PHP_METHOD(Imagick, deleteImageProperty) Image *image; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1043,7 +1041,7 @@ PHP_METHOD(Imagick, identifyFormat) Image *image; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &embedText, &embedText_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1088,7 +1086,7 @@ PHP_METHOD(Imagick, getImageInterpolateMethod) long interpolate; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1111,7 +1109,7 @@ PHP_METHOD(Imagick, setImageInterpolateMethod) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &interpolate) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1122,7 +1120,7 @@ PHP_METHOD(Imagick, setImageInterpolateMethod) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set the image interpolate method" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -1140,7 +1138,7 @@ PHP_METHOD(Imagick, linearStretchImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &blackPoint, &whitePoint) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1151,7 +1149,7 @@ PHP_METHOD(Imagick, linearStretchImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to linear strech image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -1167,7 +1165,7 @@ PHP_METHOD(Imagick, getImageLength) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1177,7 +1175,7 @@ PHP_METHOD(Imagick, getImageLength) if (status == MagickFalse) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to acquire image length" TSRMLS_CC); - return; + RETURN_THROWS(); } RETVAL_LONG(length); @@ -1196,7 +1194,7 @@ PHP_METHOD(Imagick, extentImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &width, &height, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1206,7 +1204,7 @@ PHP_METHOD(Imagick, extentImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to extent image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1223,7 +1221,7 @@ PHP_METHOD(Imagick, getImageOrientation) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1244,7 +1242,7 @@ PHP_METHOD(Imagick, setImageOrientation) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &orientation) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1255,7 +1253,7 @@ PHP_METHOD(Imagick, setImageOrientation) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image orientation" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1283,7 +1281,7 @@ PHP_METHOD(Imagick, paintFloodfillImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zdzll|l", &fill_param, &fuzz, &border_param, &x, &y, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1314,7 +1312,7 @@ PHP_METHOD(Imagick, paintFloodfillImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to paint floodfill image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -1336,7 +1334,7 @@ PHP_METHOD(Imagick, clutImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|l", &objvar, php_imagick_sc_entry, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1350,7 +1348,7 @@ PHP_METHOD(Imagick, clutImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to replace colors in the image from a color lookup table" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1371,7 +1369,7 @@ PHP_METHOD(Imagick, clutImageWithInterpolate) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &objvar, php_imagick_sc_entry, &interpolate_method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1388,7 +1386,7 @@ PHP_METHOD(Imagick, clutImageWithInterpolate) intern->magick_wand, "Unable to replace colors in the image from a color lookup table" TSRMLS_CC ); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1410,7 +1408,7 @@ PHP_METHOD(Imagick, getImageProperties) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sb", &pattern, &pattern_len, &values) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1420,7 +1418,7 @@ PHP_METHOD(Imagick, getImageProperties) if (!properties) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to get image properties" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -1441,7 +1439,6 @@ PHP_METHOD(Imagick, getImageProperties) } IMAGICK_FREE_MAGICK_MEMORY(properties); - return; } /* }}} */ @@ -1459,7 +1456,7 @@ PHP_METHOD(Imagick, getImageProfiles) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sb", &pattern, &pattern_len, &values) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1469,7 +1466,7 @@ PHP_METHOD(Imagick, getImageProfiles) if (!profiles) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to get image profiles" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -1495,7 +1492,6 @@ PHP_METHOD(Imagick, getImageProfiles) } IMAGICK_FREE_MAGICK_MEMORY(profiles); - return; } /* }}} */ #endif @@ -1514,7 +1510,7 @@ PHP_METHOD(Imagick, distortImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lab", &distort_method, &arg_array, &bestfit) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1524,7 +1520,7 @@ PHP_METHOD(Imagick, distortImage) if (!arguments) { php_imagick_throw_exception (IMAGICK_CLASS, "Can't read argument array" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickDistortImage(intern->magick_wand, distort_method, elements, arguments, bestfit); @@ -1533,7 +1529,7 @@ PHP_METHOD(Imagick, distortImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to distort the image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1555,7 +1551,7 @@ PHP_METHOD(Imagick, writeImageFile) char *orig_name = NULL, *buffer; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|s!", &zstream, &format, &format_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1587,9 +1583,8 @@ PHP_METHOD(Imagick, writeImageFile) /* php_stream_cast returns warning on some streams but still does not return FAILURE */ if (!EG(exception)) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to write image to the filehandle" TSRMLS_CC); - return; } - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -1609,7 +1604,7 @@ PHP_METHOD(Imagick, writeImagesFile) char *orig_name = NULL, *buffer; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|s!", &zstream, &format, &format_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1640,9 +1635,8 @@ PHP_METHOD(Imagick, writeImagesFile) if (result == 0) { if (!EG(exception)) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to write images to the filehandle" TSRMLS_CC); - return; } - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -1659,7 +1653,7 @@ PHP_METHOD(Imagick, resetImagePage) IM_LEN_TYPE page_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &page, &page_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1669,7 +1663,7 @@ PHP_METHOD(Imagick, resetImagePage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to reset image page" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1688,7 +1682,7 @@ PHP_METHOD(Imagick, getImageClipMask) php_imagick_object *intern_return; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1699,14 +1693,13 @@ PHP_METHOD(Imagick, getImageClipMask) /* No magick is going to happen */ if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image clip mask" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; } #endif /* }}} */ @@ -1723,7 +1716,7 @@ PHP_METHOD(Imagick, setImageClipMask) zval *objvar; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &objvar, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1736,7 +1729,7 @@ PHP_METHOD(Imagick, setImageClipMask) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image clip mask" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -1754,7 +1747,7 @@ PHP_METHOD(Imagick, animateImages) IM_LEN_TYPE server_name_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &server_name, &server_name_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1765,7 +1758,7 @@ PHP_METHOD(Imagick, animateImages) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to animate images" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -1788,7 +1781,7 @@ PHP_METHOD(Imagick, recolorImage) IMAGICK_METHOD_DEPRECATED ("Imagick", "recolorImage"); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &matrix) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1798,7 +1791,7 @@ PHP_METHOD(Imagick, recolorImage) if (!array) { php_imagick_throw_exception (IMAGICK_CLASS, "The map contains disallowed characters" TSRMLS_CC); - return; + RETURN_THROWS(); } order = (unsigned long)sqrt(num_elements); @@ -1806,7 +1799,7 @@ PHP_METHOD(Imagick, recolorImage) if ((order * order) != num_elements) { efree(array); php_imagick_throw_exception(IMAGICK_CLASS, "The color matrix must contain a square number of elements" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickRecolorImage(intern->magick_wand, order, array); @@ -1814,7 +1807,7 @@ PHP_METHOD(Imagick, recolorImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to recolor image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1835,13 +1828,13 @@ PHP_METHOD(Imagick, setFont) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &font, &font_len) == FAILURE) { - return; + RETURN_THROWS(); } /* Check that no empty string is passed */ if (font_len == 0) { php_imagick_throw_exception(IMAGICK_CLASS, "Can not set empty font" TSRMLS_CC); - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1851,13 +1844,13 @@ PHP_METHOD(Imagick, setFont) if (!(absolute = expand_filepath(font, NULL TSRMLS_CC))) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to set font" TSRMLS_CC); - return; + RETURN_THROWS(); } if ((rc = php_imagick_file_access_check (absolute TSRMLS_CC)) != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, absolute TSRMLS_CC); efree(absolute); - return; + RETURN_THROWS(); } status = MagickSetFont(intern->magick_wand, absolute); efree(absolute); @@ -1868,7 +1861,7 @@ PHP_METHOD(Imagick, setFont) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set font" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1880,7 +1873,7 @@ PHP_METHOD(Imagick, getFont) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1902,7 +1895,7 @@ PHP_METHOD(Imagick, setPointSize) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &point_size) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1911,7 +1904,7 @@ PHP_METHOD(Imagick, setPointSize) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set point size" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -1922,7 +1915,7 @@ PHP_METHOD(Imagick, getPointSize) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1937,7 +1930,7 @@ PHP_METHOD(Imagick, mergeImageLayers) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &layer_method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -1952,14 +1945,13 @@ PHP_METHOD(Imagick, mergeImageLayers) /* No magick is going to happen */ if (!merged) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to merge image layers" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, merged); - return; } #endif @@ -1980,7 +1972,7 @@ PHP_METHOD(Imagick, floodfillPaintImage) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zdzllb|l", &fill_param, &fuzz, &border_param, &x, &y, &invert, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2012,7 +2004,7 @@ PHP_METHOD(Imagick, floodfillPaintImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception (intern->magick_wand, "Unable to floodfill paint image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2034,7 +2026,7 @@ PHP_METHOD(Imagick, opaquePaintImage) zend_bool fill_allocated = 0, target_allocated = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zzdb|l", &fill_param, &target_param, &fuzz, &invert, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2061,7 +2053,7 @@ PHP_METHOD(Imagick, opaquePaintImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to opaque paint image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2082,7 +2074,7 @@ PHP_METHOD(Imagick, transparentPaintImage) zend_bool target_allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zddb", &target_param, &alpha, &fuzz, &invert) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2099,7 +2091,7 @@ PHP_METHOD(Imagick, transparentPaintImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to paint transparent image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2116,7 +2108,7 @@ PHP_METHOD(Imagick, setImageAlphaChannel) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &alpha_channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2129,7 +2121,7 @@ PHP_METHOD(Imagick, setImageAlphaChannel) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image alpha channel" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2147,7 +2139,7 @@ PHP_METHOD(Imagick, liquidRescaleImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lldd", &cols, &rows, &delta_x, &rigidity) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2157,7 +2149,7 @@ PHP_METHOD(Imagick, liquidRescaleImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to liquid rescale image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2175,7 +2167,7 @@ PHP_METHOD(Imagick, decipherImage) IM_LEN_TYPE passphrase_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &passphrase, &passphrase_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2185,7 +2177,7 @@ PHP_METHOD(Imagick, decipherImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to decipher image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2202,7 +2194,7 @@ PHP_METHOD(Imagick, encipherImage) IM_LEN_TYPE passphrase_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &passphrase, &passphrase_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2212,7 +2204,7 @@ PHP_METHOD(Imagick, encipherImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to encipher image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2229,14 +2221,14 @@ PHP_METHOD(Imagick, setGravity) im_long gravity; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &gravity) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); if (MagickSetGravity(intern->magick_wand, gravity) == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set gravity" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2251,7 +2243,7 @@ PHP_METHOD(Imagick, getGravity) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2270,22 +2262,20 @@ PHP_METHOD(Imagick, getImageChannelRange) double maxima, minima; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); if (MagickGetImageChannelRange(intern->magick_wand, channel, &minima, &maxima) == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get channel range" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "minima", minima); add_assoc_double(return_value, "maxima", maxima); - - return; } /* }}} */ @@ -2298,7 +2288,7 @@ PHP_METHOD(Imagick, getImageAlphaChannel) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2323,7 +2313,7 @@ PHP_METHOD(Imagick, getImageChannelDistortions) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol|l", &reference_param, php_imagick_sc_entry, &metric, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2336,7 +2326,7 @@ PHP_METHOD(Imagick, getImageChannelDistortions) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image channel distortion metrics" TSRMLS_CC); - return; + RETURN_THROWS(); } RETVAL_DOUBLE(distortion); @@ -2353,7 +2343,7 @@ PHP_METHOD(Imagick, getImageGravity) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2373,7 +2363,7 @@ PHP_METHOD(Imagick, setImageGravity) im_long gravity; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &gravity) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2383,7 +2373,7 @@ PHP_METHOD(Imagick, setImageGravity) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image gravity" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2412,7 +2402,7 @@ PHP_METHOD(Imagick, importImagePixels) HashTable *array; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llllsla", &x, &y, &width, &height, &map, &map_len, &storage, &pixels) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2420,12 +2410,12 @@ PHP_METHOD(Imagick, importImagePixels) if (x < 0 || y < 0) { php_imagick_throw_exception (IMAGICK_CLASS, "The coordinates must be non-negative" TSRMLS_CC); - return; + RETURN_THROWS(); } if (width <= 0 || height <= 0) { php_imagick_throw_exception(IMAGICK_CLASS, "The width and height must be greater than zero" TSRMLS_CC); - return; + RETURN_THROWS(); } array = Z_ARRVAL_P(pixels); @@ -2439,11 +2429,11 @@ PHP_METHOD(Imagick, importImagePixels) zend_hash_num_elements(array) ); - return; + RETURN_THROWS(); } else { if (!php_imagick_validate_map(map TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "The map contains disallowed characters" TSRMLS_CC); - return; + RETURN_THROWS(); } } @@ -2455,7 +2445,7 @@ PHP_METHOD(Imagick, importImagePixels) double_array = php_imagick_zval_to_double_array(pixels, &num_elements TSRMLS_CC); if (!double_array) { php_imagick_throw_exception(IMAGICK_CLASS, "The map must contain only numeric values" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickImportImagePixels(intern->magick_wand, x, y, width, height, map, storage, double_array); efree(double_array); @@ -2471,7 +2461,7 @@ PHP_METHOD(Imagick, importImagePixels) long_array = php_imagick_zval_to_long_array(pixels, &num_elements TSRMLS_CC); if (!long_array) { php_imagick_throw_exception(IMAGICK_CLASS, "The map must contain only numeric values" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickImportImagePixels(intern->magick_wand, x, y, width, height, map, storage, long_array); efree(long_array); @@ -2481,7 +2471,7 @@ PHP_METHOD(Imagick, importImagePixels) char_array = php_imagick_zval_to_char_array(pixels, &num_elements TSRMLS_CC); if (!char_array) { php_imagick_throw_exception(IMAGICK_CLASS, "The character array contains incorrect values" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickImportImagePixels(intern->magick_wand, x, y, width, height, map, storage, char_array); efree(char_array); @@ -2489,13 +2479,13 @@ PHP_METHOD(Imagick, importImagePixels) default: php_imagick_throw_exception(IMAGICK_CLASS, "Unknown storage format" TSRMLS_CC); - return; + RETURN_THROWS(); break; } if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to import image pixels" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2508,7 +2498,7 @@ PHP_METHOD(Imagick, deskewImage) double threshold; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &threshold) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2517,7 +2507,7 @@ PHP_METHOD(Imagick, deskewImage) status = MagickDeskewImage(intern->magick_wand, threshold); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to deskew image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2536,7 +2526,7 @@ PHP_METHOD(Imagick, houghLineImage) im_long width, height; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lld", &width, &height, &threshold) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2545,7 +2535,7 @@ PHP_METHOD(Imagick, houghLineImage) status = MagickHoughLineImage(intern->magick_wand, width, height, threshold); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to Hough line image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2561,7 +2551,7 @@ PHP_METHOD(Imagick, segmentImage) double cluster_threshold, smooth_threshold; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ldd|b", &colorspace, &cluster_threshold, &smooth_threshold, &verbose) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2571,7 +2561,7 @@ PHP_METHOD(Imagick, segmentImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to segment image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2585,7 +2575,7 @@ PHP_METHOD(Imagick, sparseColorImage) double *double_array; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "la|l", &sparse_method, &arguments, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2595,7 +2585,7 @@ PHP_METHOD(Imagick, sparseColorImage) if (!double_array) { php_imagick_throw_exception(IMAGICK_CLASS, "The map must contain only numeric values" TSRMLS_CC); - return; + RETURN_THROWS(); } #if MagickLibVersion >= 0x700 @@ -2608,7 +2598,7 @@ PHP_METHOD(Imagick, sparseColorImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to sparse color image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2625,7 +2615,7 @@ PHP_METHOD(Imagick, remapImage) zval *remap_param; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &remap_param, php_imagick_sc_entry, &dither_method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2638,7 +2628,7 @@ PHP_METHOD(Imagick, remapImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to remap image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2687,22 +2677,22 @@ PHP_METHOD(Imagick, exportImagePixels) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llllsl", &x, &y, &width, &height, &map, &map_len, &storage) == FAILURE) { - return; + RETURN_THROWS(); } if ((x < 0) || (y < 0)) { php_imagick_throw_exception(IMAGICK_CLASS, "The coordinates must be non-negative" TSRMLS_CC); - return; + RETURN_THROWS(); } if (width <= 0 || height <= 0) { php_imagick_throw_exception(IMAGICK_CLASS, "The width and height must be greater than zero" TSRMLS_CC); - return; + RETURN_THROWS(); } if (!php_imagick_validate_map(map TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "The map contains disallowed characters" TSRMLS_CC); - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2825,15 +2815,14 @@ PHP_METHOD(Imagick, exportImagePixels) default: php_imagick_throw_exception(IMAGICK_CLASS, "Unknown pixel type " TSRMLS_CC); - return; + RETURN_THROWS(); break; } if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to export image pixels" TSRMLS_CC); - return; + RETURN_THROWS(); } - return; } /* }}} */ #endif @@ -2850,7 +2839,7 @@ PHP_METHOD(Imagick, getImageChannelKurtosis) im_long channel = DefaultChannels; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2860,13 +2849,12 @@ PHP_METHOD(Imagick, getImageChannelKurtosis) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image channel kurtosis" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "kurtosis", kurtosis); add_assoc_double(return_value, "skewness", skewness); - return; } /* }}} */ @@ -2882,7 +2870,7 @@ PHP_METHOD(Imagick, functionImage) double *array; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "la|l", &func, &arguments, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2892,7 +2880,7 @@ PHP_METHOD(Imagick, functionImage) if (!array) { php_imagick_throw_exception(IMAGICK_CLASS, "The arguments array contains disallowed characters or is empty." TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickFunctionImageChannel(intern->magick_wand, channel, func, num_elements, array); @@ -2900,7 +2888,7 @@ PHP_METHOD(Imagick, functionImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to execute function on the image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -2920,7 +2908,7 @@ PHP_METHOD(Imagick, transformImageColorspace) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &colorspace) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2931,7 +2919,7 @@ PHP_METHOD(Imagick, transformImageColorspace) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to transform image colorspace" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2951,7 +2939,7 @@ PHP_METHOD(Imagick, haldClutImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|l", &objvar, php_imagick_sc_entry, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2965,7 +2953,7 @@ PHP_METHOD(Imagick, haldClutImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to hald clut image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -2983,7 +2971,7 @@ PHP_METHOD(Imagick, autoLevelImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -2992,7 +2980,7 @@ PHP_METHOD(Imagick, autoLevelImage) status = MagickAutoLevelImageChannel(intern->magick_wand, channel); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to autolevel image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -3008,7 +2996,7 @@ PHP_METHOD(Imagick, blueShiftImage) double factor = 1.5; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|d", &factor) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3017,7 +3005,7 @@ PHP_METHOD(Imagick, blueShiftImage) status = MagickBlueShiftImage(intern->magick_wand, factor); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to blue shift image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -3033,7 +3021,7 @@ PHP_METHOD(Imagick, setImageArtifact) IM_LEN_TYPE artifact_len, value_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss!", &artifact, &artifact_len, &value, &value_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3042,7 +3030,7 @@ PHP_METHOD(Imagick, setImageArtifact) status = MagickSetImageArtifact(intern->magick_wand, artifact, value); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image artifact" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -3055,7 +3043,7 @@ PHP_METHOD(Imagick, getImageArtifact) IM_LEN_TYPE artifact_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &artifact, &artifact_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3074,8 +3062,6 @@ PHP_METHOD(Imagick, getImageArtifact) #endif IMAGICK_FREE_MAGICK_MEMORY(value); } - - return; } /* {{{ proto boolean Imagick::deleteImageArtifact(string $artifact) @@ -3089,7 +3075,7 @@ PHP_METHOD(Imagick, deleteImageArtifact) IM_LEN_TYPE artifact_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &artifact, &artifact_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3099,7 +3085,7 @@ PHP_METHOD(Imagick, deleteImageArtifact) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to delete image artifact" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3114,7 +3100,7 @@ PHP_METHOD(Imagick, getColorspace) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3132,7 +3118,7 @@ PHP_METHOD(Imagick, setColorspace) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &colorspace) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3152,7 +3138,7 @@ PHP_METHOD(Imagick, clampImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3162,7 +3148,7 @@ PHP_METHOD(Imagick, clampImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to clamp image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3183,7 +3169,7 @@ PHP_METHOD(Imagick, smushImages) MagickWand *retwand; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "bl", &stack, &offset) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3193,13 +3179,12 @@ PHP_METHOD(Imagick, smushImages) if (!retwand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to smush images" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, retwand); - return; } /* }}} */ #endif @@ -3217,7 +3202,7 @@ PHP_METHOD(Imagick, __construct) php_imagick_rw_result_t rc; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z!/", &files) == FAILURE) { - return; + RETURN_THROWS(); } /* No files given.. or null passed */ @@ -3236,14 +3221,14 @@ PHP_METHOD(Imagick, __construct) if (!php_imagick_file_init(&file, Z_STRVAL_P(files), Z_STRLEN_P(files) TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); php_imagick_file_deinit(&file); if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, Z_STRVAL_P(files) TSRMLS_CC); - return; + RETURN_THROWS(); } } @@ -3256,7 +3241,7 @@ PHP_METHOD(Imagick, __construct) if (!php_imagick_file_init(&file, Z_STRVAL_P(pzval), Z_STRLEN_P(pzval) TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); @@ -3264,7 +3249,7 @@ PHP_METHOD(Imagick, __construct) if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, Z_STRVAL_P(pzval) TSRMLS_CC); - return; + RETURN_THROWS(); } } ZEND_HASH_FOREACH_END(); } @@ -3283,7 +3268,7 @@ PHP_METHOD(Imagick, __construct) php_imagick_rw_result_t rc; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|z!/", &files) == FAILURE) { - return; + RETURN_THROWS(); } /* No files given.. or null passed */ @@ -3302,14 +3287,14 @@ PHP_METHOD(Imagick, __construct) if (!php_imagick_file_init(&file, Z_STRVAL_P(files), Z_STRLEN_P(files) TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); php_imagick_file_deinit(&file); if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, Z_STRVAL_P(files) TSRMLS_CC); - return; + RETURN_THROWS(); } } @@ -3329,7 +3314,7 @@ PHP_METHOD(Imagick, __construct) if (!php_imagick_file_init(&file, Z_STRVAL_PP(ppzval), Z_STRLEN_PP(ppzval) TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); @@ -3337,7 +3322,7 @@ PHP_METHOD(Imagick, __construct) if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, Z_STRVAL_PP(ppzval) TSRMLS_CC); - return; + RETURN_THROWS(); } } } @@ -3362,7 +3347,7 @@ PHP_METHOD(Imagick, __toString) size_t image_size; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3384,7 +3369,6 @@ PHP_METHOD(Imagick, __toString) image = MagickGetImageBlob(intern->magick_wand, &image_size); IM_ZVAL_STRINGL(return_value, (char *)image, image_size); IMAGICK_FREE_MAGICK_MEMORY(image); - return; } /* }}} */ @@ -3397,7 +3381,7 @@ PHP_METHOD(Imagick, count) im_long mode = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &mode) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3417,7 +3401,7 @@ PHP_METHOD(Imagick, queryFormats) size_t num_formats = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &pattern, &pattern_len) == FAILURE) { - return; + RETURN_THROWS(); } supported_formats = (char **) MagickQueryFormats(pattern, &num_formats); @@ -3429,7 +3413,6 @@ PHP_METHOD(Imagick, queryFormats) } IMAGICK_FREE_MAGICK_MEMORY(supported_formats); - return; } /* }}} */ @@ -3445,7 +3428,7 @@ PHP_METHOD(Imagick, queryFonts) size_t num_fonts; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &pattern, &pattern_len) == FAILURE) { - return; + RETURN_THROWS(); } fonts = (char **) MagickQueryFonts(pattern, &num_fonts); @@ -3457,7 +3440,6 @@ PHP_METHOD(Imagick, queryFonts) } IMAGICK_FREE_MAGICK_MEMORY(fonts); - return; } /* }}} */ @@ -3479,7 +3461,7 @@ PHP_METHOD(Imagick, queryFontMetrics) query_multiline = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os|z!", &objvar, php_imagickdraw_sc_entry, &text, &text_len, &multiline) == FAILURE) { - return; + RETURN_THROWS(); } /* No parameter passed, this means we should autodetect */ @@ -3512,7 +3494,7 @@ PHP_METHOD(Imagick, queryFontMetrics) if (!pixel_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to allocate background color for the temporary canvas" TSRMLS_CC); - return; + RETURN_THROWS(); } /* 1x1 should be enough to get the metrics */ @@ -3521,7 +3503,7 @@ PHP_METHOD(Imagick, queryFontMetrics) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to allocate temporary canvas" TSRMLS_CC); - return; + RETURN_THROWS(); } remove_canvas = 1; } @@ -3540,7 +3522,7 @@ PHP_METHOD(Imagick, queryFontMetrics) if (!metrics) { php_imagick_convert_imagick_exception(intern->magick_wand, "Failed to query the font metrics" TSRMLS_CC); - return; + RETURN_THROWS(); } else { zval *pbounding; #if PHP_VERSION_ID >= 70000 @@ -3582,7 +3564,7 @@ PHP_METHOD(Imagick, valid) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3602,7 +3584,7 @@ PHP_METHOD(Imagick, valid) PHP_METHOD(Imagick, current) { if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } RETURN_ZVAL(getThis(), 1, 0); @@ -3622,14 +3604,14 @@ PHP_METHOD(Imagick, readImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); if (!php_imagick_file_init(&file, filename, filename_len TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); @@ -3637,7 +3619,7 @@ PHP_METHOD(Imagick, readImage) if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, filename TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3658,7 +3640,7 @@ PHP_METHOD(Imagick, readImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &files) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3668,7 +3650,7 @@ PHP_METHOD(Imagick, readImages) if (!php_imagick_file_init(&file, Z_STRVAL_P(value), Z_STRLEN_P(value) TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); @@ -3676,7 +3658,7 @@ PHP_METHOD(Imagick, readImages) if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, Z_STRVAL_P(value) TSRMLS_CC); - return; + RETURN_THROWS(); } } ZEND_HASH_FOREACH_END(); RETURN_TRUE; @@ -3691,7 +3673,7 @@ PHP_METHOD(Imagick, readImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &files) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3709,7 +3691,7 @@ PHP_METHOD(Imagick, readImages) if (!php_imagick_file_init(&file, Z_STRVAL_PP(ppzval), Z_STRLEN_PP(ppzval) TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); @@ -3717,7 +3699,7 @@ PHP_METHOD(Imagick, readImages) if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, Z_STRVAL_PP(ppzval) TSRMLS_CC); - return; + RETURN_THROWS(); } } RETURN_TRUE; @@ -3738,21 +3720,21 @@ PHP_METHOD(Imagick, pingImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); if (!php_imagick_file_init(&file, filename, filename_len TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickPingImage TSRMLS_CC); php_imagick_file_deinit(&file); if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, filename TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -3772,7 +3754,7 @@ PHP_METHOD(Imagick, readImageFile) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|s!", &zstream, &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3787,9 +3769,8 @@ PHP_METHOD(Imagick, readImageFile) if (result == 0) { if (!EG(exception)) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to read image from the filehandle" TSRMLS_CC); - return; } - return; + RETURN_THROWS(); } if (filename) { @@ -3813,7 +3794,7 @@ PHP_METHOD(Imagick, displayImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &server_name, &server_name_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3824,7 +3805,7 @@ PHP_METHOD(Imagick, displayImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to display image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3843,7 +3824,7 @@ PHP_METHOD(Imagick, displayImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &server_name, &server_name_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3854,7 +3835,7 @@ PHP_METHOD(Imagick, displayImages) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to display images" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3875,12 +3856,12 @@ PHP_METHOD(Imagick, readImageBlob) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!", &image_string, &image_string_len, &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } if (!image_string_len) { php_imagick_throw_exception(IMAGICK_CLASS, "Zero size image string passed" TSRMLS_CC); - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3889,7 +3870,7 @@ PHP_METHOD(Imagick, readImageBlob) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to read image blob" TSRMLS_CC); - return; + RETURN_THROWS(); } /* Even if filename is null we need to give a name here. Otherwise segfaults will happen */ @@ -3912,7 +3893,7 @@ PHP_METHOD(Imagick, blurImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &radius, &sigma, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3923,7 +3904,7 @@ PHP_METHOD(Imagick, blurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to blur image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3941,7 +3922,7 @@ PHP_METHOD(Imagick, waveImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &litude, &wave_length) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3960,7 +3941,7 @@ PHP_METHOD(Imagick, waveImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to wave image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -3982,7 +3963,7 @@ PHP_METHOD(Imagick, waveImageWithMethod) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddl", &litude, &wave_length, &method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -3994,7 +3975,7 @@ PHP_METHOD(Imagick, waveImageWithMethod) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to wave image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4010,7 +3991,7 @@ PHP_METHOD(Imagick, clear) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4041,7 +4022,7 @@ PHP_METHOD(Imagick, scaleImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll|bb", &width, &height, &bestfit, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4049,7 +4030,7 @@ PHP_METHOD(Imagick, scaleImage) if (!php_imagick_thumbnail_dimensions(intern->magick_wand, bestfit, width, height, &new_width, &new_height, legacy)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid image geometry" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickScaleImage(intern->magick_wand, new_width, new_height); @@ -4057,7 +4038,7 @@ PHP_METHOD(Imagick, scaleImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to scale image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4075,7 +4056,7 @@ PHP_METHOD(Imagick, cropImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &width, &height, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4086,7 +4067,7 @@ PHP_METHOD(Imagick, cropImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to crop image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4104,7 +4085,7 @@ PHP_METHOD(Imagick, spreadImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &radius) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4123,7 +4104,7 @@ PHP_METHOD(Imagick, spreadImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to spread image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4143,7 +4124,7 @@ PHP_METHOD(Imagick, spreadImageWithMethod) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dl", &radius, &method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4154,7 +4135,7 @@ PHP_METHOD(Imagick, spreadImageWithMethod) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to spread image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4173,7 +4154,7 @@ PHP_METHOD(Imagick, swirlImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", °rees) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4192,7 +4173,7 @@ PHP_METHOD(Imagick, swirlImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to swirl image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4213,7 +4194,7 @@ PHP_METHOD(Imagick, swirlImageWithMethod) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dl", °rees, &method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4224,7 +4205,7 @@ PHP_METHOD(Imagick, swirlImageWithMethod) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to swirl image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4242,7 +4223,7 @@ PHP_METHOD(Imagick, stripImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4253,7 +4234,7 @@ PHP_METHOD(Imagick, stripImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to strip image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4271,7 +4252,7 @@ PHP_METHOD(Imagick, trimImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &fuzz) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4282,7 +4263,7 @@ PHP_METHOD(Imagick, trimImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to trim image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4300,7 +4281,7 @@ PHP_METHOD(Imagick, chopImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &width, &height, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4311,7 +4292,7 @@ PHP_METHOD(Imagick, chopImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to chop image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4328,7 +4309,7 @@ PHP_METHOD(Imagick, clipImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4339,7 +4320,7 @@ PHP_METHOD(Imagick, clipImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to clip image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4358,7 +4339,7 @@ PHP_METHOD(Imagick, clipPathImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sb", &clip_path, &clip_path_len, &inside) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4372,7 +4353,7 @@ PHP_METHOD(Imagick, clipPathImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to clip path image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4389,7 +4370,7 @@ PHP_METHOD(Imagick, coalesceImages) php_imagick_object *intern, *intern_return; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4399,14 +4380,12 @@ PHP_METHOD(Imagick, coalesceImages) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Coalesce image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; - } /* }}} */ @@ -4429,7 +4408,7 @@ PHP_METHOD(Imagick, colorFloodfillImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zdzll", &fill_param, &fuzz, &border_param, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4458,7 +4437,7 @@ PHP_METHOD(Imagick, colorFloodfillImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to color floodfill image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4480,7 +4459,7 @@ PHP_METHOD(Imagick, combineImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &channel_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4490,14 +4469,12 @@ PHP_METHOD(Imagick, combineImages) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Combine images failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -4512,7 +4489,7 @@ PHP_METHOD(Imagick, setImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &objvar, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4526,7 +4503,7 @@ PHP_METHOD(Imagick, setImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set the image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -4542,7 +4519,7 @@ PHP_METHOD(Imagick, getImage) php_imagick_object *intern, *intern_return; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4552,14 +4529,12 @@ PHP_METHOD(Imagick, getImage) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Get image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -4574,7 +4549,7 @@ PHP_METHOD(Imagick, addImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &add_obj, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4587,7 +4562,7 @@ PHP_METHOD(Imagick, addImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to add image" TSRMLS_CC); - return; + RETURN_THROWS(); } MagickSetLastIterator(intern->magick_wand); @@ -4611,7 +4586,7 @@ PHP_METHOD(Imagick, newImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llz|s", &columns, &rows, ¶m, &format, &format_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4628,7 +4603,7 @@ PHP_METHOD(Imagick, newImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to create new image" TSRMLS_CC); - return; + RETURN_THROWS(); } /* If the optional fourth parameter was given @@ -4640,7 +4615,7 @@ PHP_METHOD(Imagick, newImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set the image format" TSRMLS_CC); - return; + RETURN_THROWS(); } } @@ -4664,7 +4639,7 @@ PHP_METHOD(Imagick, newPseudoImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lls", &columns, &rows, &pseudo_string, &pseudo_string_len) == FAILURE) { - return; + RETURN_THROWS(); } if (IMAGICK_G(allow_zero_dimension_images) == 0) { @@ -4687,7 +4662,7 @@ PHP_METHOD(Imagick, newPseudoImage) /* Allow only pseudo formats in this method */ if (strchr (pseudo_string, ':') == NULL) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid pseudo format string" TSRMLS_CC); - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4698,19 +4673,19 @@ PHP_METHOD(Imagick, newPseudoImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to create new pseudo image" TSRMLS_CC); - return; + RETURN_THROWS(); } if (!php_imagick_file_init(&file, pseudo_string, pseudo_string_len TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_read_file(intern, &file, ImagickReadImage TSRMLS_CC); php_imagick_file_deinit(&file); if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, pseudo_string TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4725,7 +4700,7 @@ PHP_METHOD(Imagick, getImageTotalInkDensity) double ink_density; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4747,7 +4722,7 @@ PHP_METHOD(Imagick, implodeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &radius) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4766,7 +4741,7 @@ PHP_METHOD(Imagick, implodeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to implode image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4785,7 +4760,7 @@ PHP_METHOD(Imagick, implodeImageWithMethod) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dl", &radius, &method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4796,7 +4771,7 @@ PHP_METHOD(Imagick, implodeImageWithMethod) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to implode image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4819,7 +4794,7 @@ PHP_METHOD(Imagick, inverseFourierTransformImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ob", &complement_obj, php_imagick_sc_entry, &magnitude) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4831,7 +4806,7 @@ PHP_METHOD(Imagick, inverseFourierTransformImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to inversefouriertransformimage image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4850,7 +4825,7 @@ PHP_METHOD(Imagick, levelImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd|l", &black_point, &gamma, &white_point, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4861,7 +4836,7 @@ PHP_METHOD(Imagick, levelImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to level image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4876,7 +4851,7 @@ PHP_METHOD(Imagick, magnifyImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4887,7 +4862,7 @@ PHP_METHOD(Imagick, magnifyImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to magnify image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4909,7 +4884,7 @@ PHP_METHOD(Imagick, mapImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ob", &map_obj, php_imagick_sc_entry, &dither) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4921,7 +4896,7 @@ PHP_METHOD(Imagick, mapImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to map image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4946,7 +4921,7 @@ PHP_METHOD(Imagick, matteFloodfillImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddzll", &alpha, &fuzz, ¶m, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4964,7 +4939,7 @@ PHP_METHOD(Imagick, matteFloodfillImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to matte floodfill image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -4987,7 +4962,7 @@ PHP_METHOD(Imagick, medianFilterImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &radius) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -4998,7 +4973,7 @@ PHP_METHOD(Imagick, medianFilterImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to median filter image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5018,7 +4993,7 @@ PHP_METHOD(Imagick, negateImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b|l", &gray, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5029,7 +5004,7 @@ PHP_METHOD(Imagick, negateImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to negate image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5054,7 +5029,7 @@ PHP_METHOD(Imagick, paintOpaqueImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zzd|l", &target_param, &fill_param, &fuzz, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5087,7 +5062,7 @@ PHP_METHOD(Imagick, paintOpaqueImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable paint opaque image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5105,7 +5080,7 @@ PHP_METHOD(Imagick, optimizeImageLayers) php_imagick_object *intern, *intern_return; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5115,14 +5090,12 @@ PHP_METHOD(Imagick, optimizeImageLayers) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Optimize image layers failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -5144,7 +5117,7 @@ PHP_METHOD(Imagick, paintTransparentImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zdd", ¶m, &alpha, &fuzz) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5162,7 +5135,7 @@ PHP_METHOD(Imagick, paintTransparentImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to paint transparent image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5183,7 +5156,7 @@ PHP_METHOD(Imagick, previewImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &preview) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5193,13 +5166,12 @@ PHP_METHOD(Imagick, previewImages) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Preview images failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; } /* }}} */ @@ -5215,7 +5187,7 @@ PHP_METHOD(Imagick, profileImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss!", &name, &name_len, &profile, &profile_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5226,7 +5198,7 @@ PHP_METHOD(Imagick, profileImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to profile image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5245,7 +5217,7 @@ PHP_METHOD(Imagick, quantizeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lllbb", &number_colors, &colorspace, &tree_depth, &dither, &measure_error) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5256,7 +5228,7 @@ PHP_METHOD(Imagick, quantizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to quantize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5275,7 +5247,7 @@ PHP_METHOD(Imagick, quantizeImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lllbb", &number_colors, &colorspace, &tree_depth, &dither, &measure_error) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5286,7 +5258,7 @@ PHP_METHOD(Imagick, quantizeImages) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to quantize images" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5307,7 +5279,7 @@ PHP_METHOD(Imagick, reduceNoiseImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &radius) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5318,7 +5290,7 @@ PHP_METHOD(Imagick, reduceNoiseImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to reduce image noise" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5343,7 +5315,7 @@ PHP_METHOD(Imagick, removeImageProfile) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5353,12 +5325,11 @@ PHP_METHOD(Imagick, removeImageProfile) if (!profile) { php_imagick_throw_exception(IMAGICK_CLASS, "The image profile does not exist" TSRMLS_CC); - return; + RETURN_THROWS(); } IM_ZVAL_STRING(return_value, (char *)profile); IMAGICK_FREE_MAGICK_MEMORY(profile); - return; } /* }}} */ @@ -5373,7 +5344,7 @@ PHP_METHOD(Imagick, separateImageChannel) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5388,7 +5359,7 @@ PHP_METHOD(Imagick, separateImageChannel) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to separate image channel" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5406,7 +5377,7 @@ PHP_METHOD(Imagick, sepiaToneImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &threshold) == FAILURE) { - return; + RETURN_THROWS(); } c_opacity = (threshold * QuantumRange) / 100; @@ -5419,7 +5390,7 @@ PHP_METHOD(Imagick, sepiaToneImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to sepia tone image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5438,7 +5409,7 @@ void s_set_image_bias(INTERNAL_FUNCTION_PARAMETERS, zend_bool use_quantum) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &bias) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5453,7 +5424,7 @@ void s_set_image_bias(INTERNAL_FUNCTION_PARAMETERS, zend_bool use_quantum) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image bias" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5508,7 +5479,7 @@ PHP_METHOD(Imagick, setImageBluePrimary) #else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { #endif - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5523,7 +5494,7 @@ PHP_METHOD(Imagick, setImageBluePrimary) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image blue primary" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5541,7 +5512,7 @@ PHP_METHOD(Imagick, setImageBorderColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5560,7 +5531,7 @@ PHP_METHOD(Imagick, setImageBorderColor) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image border color" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5577,7 +5548,7 @@ PHP_METHOD(Imagick, setImageChannelDepth) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &channel_type, &depth) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5588,7 +5559,7 @@ PHP_METHOD(Imagick, setImageChannelDepth) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image channel depth" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5608,7 +5579,7 @@ PHP_METHOD(Imagick, setImageColormapColor) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz", &index, ¶m) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5626,7 +5597,7 @@ PHP_METHOD(Imagick, setImageColormapColor) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image color map color" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -5644,7 +5615,7 @@ PHP_METHOD(Imagick, setImageColorspace) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &colorspace) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5655,7 +5626,7 @@ PHP_METHOD(Imagick, setImageColorspace) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image colorspace" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5672,7 +5643,7 @@ PHP_METHOD(Imagick, setImageDispose) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &dispose) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5683,7 +5654,7 @@ PHP_METHOD(Imagick, setImageDispose) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image dispose" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5700,7 +5671,7 @@ PHP_METHOD(Imagick, setImageExtent) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &rows, &columns) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5711,7 +5682,7 @@ PHP_METHOD(Imagick, setImageExtent) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image extent" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5738,7 +5709,7 @@ PHP_METHOD(Imagick, setImageGreenPrimary) #else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { #endif - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5753,7 +5724,7 @@ PHP_METHOD(Imagick, setImageGreenPrimary) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image green primary" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5770,7 +5741,7 @@ PHP_METHOD(Imagick, setImageInterlaceScheme) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &interlace) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5781,7 +5752,7 @@ PHP_METHOD(Imagick, setImageInterlaceScheme) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image interlace scheme" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5799,7 +5770,7 @@ PHP_METHOD(Imagick, setImageProfile) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &name, &name_len, &profile, &profile_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5810,7 +5781,7 @@ PHP_METHOD(Imagick, setImageProfile) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image profile" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5837,7 +5808,7 @@ PHP_METHOD(Imagick, setImageRedPrimary) #else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { #endif - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5852,7 +5823,7 @@ PHP_METHOD(Imagick, setImageRedPrimary) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image red primary" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5869,7 +5840,7 @@ PHP_METHOD(Imagick, setImageRenderingIntent) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &rendering_intent) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5880,7 +5851,7 @@ PHP_METHOD(Imagick, setImageRenderingIntent) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image rendering intent" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5896,7 +5867,7 @@ PHP_METHOD(Imagick, setImageVirtualPixelMethod) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &virtual_pixel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5929,7 +5900,7 @@ PHP_METHOD(Imagick, setImageWhitePoint) #else if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x, &y) == FAILURE) { #endif - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5944,7 +5915,7 @@ PHP_METHOD(Imagick, setImageWhitePoint) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image white point" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5963,7 +5934,7 @@ PHP_METHOD(Imagick, sigmoidalContrastImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "bdd|l", &sharpen, &contrast, &midpoint, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -5974,7 +5945,7 @@ PHP_METHOD(Imagick, sigmoidalContrastImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to sigmoidal contrast image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -5991,7 +5962,7 @@ PHP_METHOD(Imagick, stereoImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &magick_object, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6004,14 +5975,12 @@ PHP_METHOD(Imagick, stereoImage) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Stereo image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -6026,7 +5995,7 @@ PHP_METHOD(Imagick, textureImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &magick_object, php_imagick_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6039,14 +6008,12 @@ PHP_METHOD(Imagick, textureImage) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Texture image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -6066,7 +6033,7 @@ PHP_METHOD(Imagick, tintImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz|b", &tint_param, &opacity_param, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6101,7 +6068,7 @@ PHP_METHOD(Imagick, tintImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable tint image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -6119,7 +6086,7 @@ PHP_METHOD(Imagick, unsharpMaskImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd|l", &radius, &sigma, &amount, &threshold, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6153,7 +6120,7 @@ PHP_METHOD(Imagick, convolveImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|l", &objvar, php_imagickkernel_sc_entry, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6188,7 +6155,7 @@ PHP_METHOD(Imagick, convolveImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|l", &kernel_array, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6227,7 +6194,7 @@ PHP_METHOD(Imagick, cycleColormapImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &displace) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6254,7 +6221,7 @@ PHP_METHOD(Imagick, deconstructImages) php_imagick_object *intern, *intern_return; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6264,14 +6231,12 @@ PHP_METHOD(Imagick, deconstructImages) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Deconstruct image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -6286,7 +6251,7 @@ PHP_METHOD(Imagick, getImageRegion) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &width, &height, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6296,15 +6261,12 @@ PHP_METHOD(Imagick, getImageRegion) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Get image region failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; - } /* }}} */ @@ -6317,7 +6279,7 @@ PHP_METHOD(Imagick, despeckleImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6328,7 +6290,7 @@ PHP_METHOD(Imagick, despeckleImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to despeckle image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -6346,7 +6308,7 @@ PHP_METHOD(Imagick, edgeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &radius) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6357,7 +6319,7 @@ PHP_METHOD(Imagick, edgeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to edge image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -6376,7 +6338,7 @@ PHP_METHOD(Imagick, embossImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &radius, &sigma) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6387,7 +6349,7 @@ PHP_METHOD(Imagick, embossImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to emboss image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -6403,7 +6365,7 @@ PHP_METHOD(Imagick, enhanceImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6414,7 +6376,7 @@ PHP_METHOD(Imagick, enhanceImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to enhance image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -6430,7 +6392,7 @@ PHP_METHOD(Imagick, equalizeImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6441,7 +6403,7 @@ PHP_METHOD(Imagick, equalizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to equalize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -6461,7 +6423,7 @@ PHP_METHOD(Imagick, evaluateImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ld|l", &evaluate_operator, &constant, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6472,7 +6434,7 @@ PHP_METHOD(Imagick, evaluateImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to evaluate image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -6494,7 +6456,7 @@ PHP_METHOD(Imagick, evaluateImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &evaluate_operator) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6519,7 +6481,6 @@ PHP_METHOD(Imagick, evaluateImages) object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, evaluated_wand); - return; } /* }}} */ #endif //MagickLibVersion >= 0x687 @@ -6539,7 +6500,7 @@ PHP_METHOD(Imagick, forwardFourierTransformImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &magnitude) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6550,7 +6511,7 @@ PHP_METHOD(Imagick, forwardFourierTransformImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to forwardfouriertransformimage image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -6568,7 +6529,7 @@ PHP_METHOD(Imagick, getImageGeometry) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6581,8 +6542,6 @@ PHP_METHOD(Imagick, getImageGeometry) array_init(return_value); add_assoc_long(return_value, "width", width); add_assoc_long(return_value, "height", height); - - return; } /* }}} */ @@ -6601,7 +6560,7 @@ PHP_METHOD(Imagick, getImageAttribute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6613,8 +6572,6 @@ PHP_METHOD(Imagick, getImageAttribute) IM_ZVAL_STRING(return_value, attribute); IMAGICK_FREE_MAGICK_MEMORY(attribute); - - return; } /* }}} */ #endif @@ -6631,7 +6588,7 @@ PHP_METHOD(Imagick, getImageBackgroundColor) PixelWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6642,20 +6599,18 @@ PHP_METHOD(Imagick, getImageBackgroundColor) if (tmp_wand == (PixelWand *)NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image background color" TSRMLS_CC); - return; + RETURN_THROWS(); } if (status == MagickFalse) { tmp_wand = DestroyPixelWand(tmp_wand); php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image background color" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ @@ -6673,7 +6628,7 @@ PHP_METHOD(Imagick, getImageBluePrimary) #endif if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6687,7 +6642,7 @@ PHP_METHOD(Imagick, getImageBluePrimary) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image blue primary" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -6696,8 +6651,6 @@ PHP_METHOD(Imagick, getImageBluePrimary) #if MagickLibVersion >= 0x700 add_assoc_double(return_value, "z", z); #endif - - return; } /* }}} */ @@ -6712,7 +6665,7 @@ PHP_METHOD(Imagick, getImageBorderColor) PixelWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6723,20 +6676,18 @@ PHP_METHOD(Imagick, getImageBorderColor) if (tmp_wand == (PixelWand *)NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image border color" TSRMLS_CC); - return; + RETURN_THROWS(); } if (status == MagickFalse) { tmp_wand = DestroyPixelWand(tmp_wand); php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image border color" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ @@ -6750,7 +6701,7 @@ PHP_METHOD(Imagick, getImageChannelDepth) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &channel_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6773,7 +6724,7 @@ PHP_METHOD(Imagick, getImageChannelDistortion) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Oll", &objvar, php_imagick_sc_entry, &channel_type, &metric_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6786,7 +6737,7 @@ PHP_METHOD(Imagick, getImageChannelDistortion) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image channel distortion" TSRMLS_CC); - return; + RETURN_THROWS(); } RETVAL_DOUBLE(distortion); @@ -6809,7 +6760,7 @@ PHP_METHOD(Imagick, getImageChannelExtrema) IMAGICK_METHOD_DEPRECATED ("Imagick", "getImageChannelExtrema"); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &channel_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6819,14 +6770,12 @@ PHP_METHOD(Imagick, getImageChannelExtrema) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image channel extrema" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_long(return_value, "minima", minima); add_assoc_long(return_value, "maxima", maxima); - - return; } /* }}} */ #endif //#if MagickLibVersion < 0x700 @@ -6843,7 +6792,7 @@ PHP_METHOD(Imagick, getImageChannelMean) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &channel_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6853,14 +6802,12 @@ PHP_METHOD(Imagick, getImageChannelMean) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image channel mean" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "mean", mean); add_assoc_double(return_value, "standardDeviation", standard_deviation); - - return; } /* }}} */ @@ -6891,7 +6838,7 @@ PHP_METHOD(Imagick, getImageChannelStatistics) #endif // #if MagickLibVersion >= 0x700 if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6968,7 +6915,6 @@ PHP_METHOD(Imagick, getImageChannelStatistics) // channel_statistics[i].sum_fourth_power*=area; MagickRelinquishMemory(statistics); - return; } /* }}} */ @@ -6984,7 +6930,7 @@ PHP_METHOD(Imagick, getImageColormapColor) im_long index; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -6995,20 +6941,18 @@ PHP_METHOD(Imagick, getImageColormapColor) if (tmp_wand == (PixelWand *)NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image colormap color" TSRMLS_CC); - return; + RETURN_THROWS(); } if (status == MagickFalse) { tmp_wand = DestroyPixelWand(tmp_wand); php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image colormap color" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ @@ -7021,7 +6965,7 @@ PHP_METHOD(Imagick, getImageColorspace) long colorSpace; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7041,7 +6985,7 @@ PHP_METHOD(Imagick, getImageCompose) long composite; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7061,7 +7005,7 @@ PHP_METHOD(Imagick, getImageDelay) long delay; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7081,7 +7025,7 @@ PHP_METHOD(Imagick, getImageDepth) long depth; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7104,7 +7048,7 @@ PHP_METHOD(Imagick, getImageDistortion) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &objvar, php_imagick_sc_entry, &metric_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7117,7 +7061,7 @@ PHP_METHOD(Imagick, getImageDistortion) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image distortion" TSRMLS_CC); - return; + RETURN_THROWS(); } RETVAL_DOUBLE(distortion); @@ -7138,7 +7082,7 @@ PHP_METHOD(Imagick, getImageExtrema) IMAGICK_METHOD_DEPRECATED ("Imagick", "getImageExtrema"); if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7148,14 +7092,12 @@ PHP_METHOD(Imagick, getImageExtrema) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image extrema" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_long(return_value, "min", min); add_assoc_long(return_value, "max", max); - - return; } /* }}} */ #endif //#if MagickLibVersion < 0x700 @@ -7170,7 +7112,7 @@ PHP_METHOD(Imagick, getImageDispose) long dispose; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7190,7 +7132,7 @@ PHP_METHOD(Imagick, getImageGamma) double gamma; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7215,7 +7157,7 @@ PHP_METHOD(Imagick, getImageGreenPrimary) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7229,7 +7171,7 @@ PHP_METHOD(Imagick, getImageGreenPrimary) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image green primary" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -7238,8 +7180,6 @@ PHP_METHOD(Imagick, getImageGreenPrimary) #if MagickLibVersion >= 0x700 add_assoc_double(return_value, "z", z); #endif - - return; } /* }}} */ @@ -7252,7 +7192,7 @@ PHP_METHOD(Imagick, getImageHeight) long height; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7281,7 +7221,7 @@ PHP_METHOD(Imagick, getImageHistogram) if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7308,7 +7248,6 @@ PHP_METHOD(Imagick, getImageHistogram) } IMAGICK_FREE_MAGICK_MEMORY(wand_array); - return; } /* }}} */ @@ -7321,7 +7260,7 @@ PHP_METHOD(Imagick, getImageInterlaceScheme) long interlace; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7341,7 +7280,7 @@ PHP_METHOD(Imagick, getImageIterations) long iterations; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7364,7 +7303,7 @@ PHP_METHOD(Imagick, getImageMatteColor) PixelWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7375,20 +7314,18 @@ PHP_METHOD(Imagick, getImageMatteColor) if (tmp_wand == (PixelWand *)NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image matte color" TSRMLS_CC); - return; + RETURN_THROWS(); } if (status == MagickFalse) { tmp_wand = DestroyPixelWand(tmp_wand); php_imagick_convert_imagick_exception(intern->magick_wand, "Unable get image matter color" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ #endif //#if MagickLibVersion < 0x700 @@ -7404,7 +7341,7 @@ PHP_METHOD(Imagick, getImagePage) ssize_t x, y; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7414,7 +7351,7 @@ PHP_METHOD(Imagick, getImagePage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image page" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -7423,8 +7360,6 @@ PHP_METHOD(Imagick, getImagePage) add_assoc_long(return_value, "height", height); add_assoc_long(return_value, "x", x); add_assoc_long(return_value, "y", y); - - return; } /* }}} */ @@ -7440,7 +7375,7 @@ PHP_METHOD(Imagick, getImagePixelColor) im_long x, y; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7450,7 +7385,7 @@ PHP_METHOD(Imagick, getImagePixelColor) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Failed to allocate new PixelWand" TSRMLS_CC); - return; + RETURN_THROWS(); } status = MagickGetImagePixelColor(intern->magick_wand, x, y , tmp_wand); @@ -7458,14 +7393,12 @@ PHP_METHOD(Imagick, getImagePixelColor) if (status == MagickFalse) { tmp_wand = DestroyPixelWand(tmp_wand); php_imagick_convert_imagick_exception(intern->magick_wand, "Unable get image pixel color" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickpixel_sc_entry); internp = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(internp, tmp_wand); - - return; } /* }}} */ @@ -7484,7 +7417,7 @@ PHP_METHOD(Imagick, setImagePixelColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llz", &x, &y, ¶m) == FAILURE) { - return; + RETURN_THROWS(); } color_wand = php_imagick_zval_to_pixelwand (param, IMAGICK_CLASS, &allocated TSRMLS_CC); @@ -7501,7 +7434,7 @@ PHP_METHOD(Imagick, setImagePixelColor) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image pixel color" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_NULL(); @@ -7524,7 +7457,7 @@ PHP_METHOD(Imagick, getImageProfile) #endif if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &name, &name_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7539,7 +7472,7 @@ PHP_METHOD(Imagick, getImageProfile) } php_imagick_throw_exception(IMAGICK_CLASS, "Can not get image profile" TSRMLS_CC); - return; + RETURN_THROWS(); } /* }}} */ @@ -7557,7 +7490,7 @@ PHP_METHOD(Imagick, getImageRedPrimary) #endif if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7571,7 +7504,7 @@ PHP_METHOD(Imagick, getImageRedPrimary) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image red primary" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -7580,8 +7513,6 @@ PHP_METHOD(Imagick, getImageRedPrimary) #if MagickLibVersion >= 0x700 add_assoc_double(return_value, "z", z); #endif - - return; } /* }}} */ @@ -7594,7 +7525,7 @@ PHP_METHOD(Imagick, getImageRenderingIntent) long renderingIntent; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7615,7 +7546,7 @@ PHP_METHOD(Imagick, getImageResolution) double x, y; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7625,14 +7556,12 @@ PHP_METHOD(Imagick, getImageResolution) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image resolution" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "x", x); add_assoc_double(return_value, "y", y); - - return; } /* }}} */ @@ -7645,7 +7574,7 @@ PHP_METHOD(Imagick, getImageScene) unsigned long scene; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7665,7 +7594,7 @@ PHP_METHOD(Imagick, getImageSignature) char *signature; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7674,7 +7603,6 @@ PHP_METHOD(Imagick, getImageSignature) signature = MagickGetImageSignature(intern->magick_wand); IM_ZVAL_STRING(return_value, signature); IMAGICK_FREE_MAGICK_MEMORY(signature); - return; } /* }}} */ @@ -7687,7 +7615,7 @@ PHP_METHOD(Imagick, getImageTicksPerSecond) unsigned long ticks; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7707,7 +7635,7 @@ PHP_METHOD(Imagick, getImageType) long imageType; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7727,7 +7655,7 @@ PHP_METHOD(Imagick, getImageUnits) long resolutionType; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7747,7 +7675,7 @@ PHP_METHOD(Imagick, getImageVirtualPixelMethod) long pixelMethod; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7772,7 +7700,7 @@ PHP_METHOD(Imagick, getImageWhitePoint) #endif if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7786,7 +7714,7 @@ PHP_METHOD(Imagick, getImageWhitePoint) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image white point" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -7795,8 +7723,6 @@ PHP_METHOD(Imagick, getImageWhitePoint) #if MagickLibVersion >= 0x700 add_assoc_double(return_value, "z", z); #endif - - return; } /* }}} */ @@ -7809,7 +7735,7 @@ PHP_METHOD(Imagick, getImageWidth) unsigned long width; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7829,7 +7755,7 @@ PHP_METHOD(Imagick, getNumberImages) unsigned long num_images; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -7893,7 +7819,7 @@ PHP_METHOD(Imagick, thumbnailImage) #if PHP_VERSION_ID < 80100 // This uses an implicit conversion of null to 0 for longs if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll|bbb", &width, &height, &bestfit, &fill, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } #else // Changing longs to be nullable "l!", means that zpp @@ -7908,7 +7834,7 @@ PHP_METHOD(Imagick, thumbnailImage) &width, &width_is_null, &height, &height_is_null, &bestfit, &fill, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } #endif @@ -7919,21 +7845,21 @@ PHP_METHOD(Imagick, thumbnailImage) #if MagickLibVersion > 0x631 if (!s_resize_bounding_box(intern->magick_wand, width, height, fill, legacy)) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to resize and fill image" TSRMLS_CC); - return; + RETURN_THROWS(); } #else php_imagick_throw_exception(IMAGICK_CLASS, "Fill parameter is only supported with ImageMagick 6.3.2+" TSRMLS_CC); - return; + RETURN_THROWS(); #endif } else { if (!php_imagick_thumbnail_dimensions(intern->magick_wand, bestfit, width, height, &new_width, &new_height, legacy)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid image geometry" TSRMLS_CC); - return; + RETURN_THROWS(); } /* No magick is going to happen */ if (MagickThumbnailImage(intern->magick_wand, new_width, new_height) == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to thumbnail image" TSRMLS_CC); - return; + RETURN_THROWS(); } } RETURN_TRUE; @@ -8006,7 +7932,7 @@ PHP_METHOD(Imagick, calculateCrop) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll|b", &orig_width, &orig_height, &desired_width, &desired_height, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } if (orig_width <= 0 || orig_height <= 0 || @@ -8028,8 +7954,6 @@ PHP_METHOD(Imagick, calculateCrop) add_assoc_long(return_value, "offset_x", offset_x); add_assoc_long(return_value, "offset_y", offset_y); - - return; } /* }}} */ @@ -8088,7 +8012,7 @@ PHP_METHOD(Imagick, cropThumbnailImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll|b", &crop_width, &crop_height, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8097,7 +8021,7 @@ PHP_METHOD(Imagick, cropThumbnailImage) /* The world collapses.. */ if (!s_crop_thumbnail_image(intern->magick_wand, crop_width, crop_height, legacy TSRMLS_CC)) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to crop-thumbnail image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -8113,7 +8037,7 @@ PHP_METHOD(Imagick, resetIterator) intern = Z_IMAGICK_P(getThis()); if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } /* No magick is going to happen */ @@ -8135,7 +8059,7 @@ PHP_METHOD(Imagick, rewind) intern = Z_IMAGICK_P(getThis()); if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } (void)return_value; // fix -Werror=unused-parameter @@ -8145,7 +8069,6 @@ PHP_METHOD(Imagick, rewind) } intern->next_out_of_bound = 0; MagickSetFirstIterator(intern->magick_wand); - return; } /* }}} */ @@ -8158,7 +8081,7 @@ PHP_METHOD(Imagick, setFirstIterator) intern = Z_IMAGICK_P(getThis()); if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } /* No magick is going to happen */ @@ -8180,7 +8103,7 @@ PHP_METHOD(Imagick, setLastIterator) intern = Z_IMAGICK_P(getThis()); if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } /* No magick is going to happen */ @@ -8202,7 +8125,7 @@ PHP_METHOD(Imagick, previousImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8226,7 +8149,7 @@ PHP_METHOD(Imagick, next) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } (void)return_value; // fix -Werror=unused-parameter @@ -8249,7 +8172,7 @@ PHP_METHOD(Imagick, nextImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8274,7 +8197,7 @@ PHP_METHOD(Imagick, hasPreviousImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8298,7 +8221,7 @@ PHP_METHOD(Imagick, hasNextImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8322,7 +8245,7 @@ PHP_METHOD(Imagick, getImageIndex) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8334,7 +8257,6 @@ PHP_METHOD(Imagick, getImageIndex) #endif ZVAL_LONG(return_value, (long)status); - return; } /* }}} */ @@ -8350,7 +8272,7 @@ PHP_METHOD(Imagick, setImageIndex) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &index) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8364,7 +8286,7 @@ PHP_METHOD(Imagick, setImageIndex) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image index" TSRMLS_CC); - return; + RETURN_THROWS(); } intern->next_out_of_bound = 0; RETURN_TRUE; @@ -8381,7 +8303,7 @@ PHP_METHOD(Imagick, removeImage) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8392,7 +8314,7 @@ PHP_METHOD(Imagick, removeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to remove image" TSRMLS_CC); - return; + RETURN_THROWS(); } intern->next_out_of_bound = 0; MagickSetLastIterator(intern->magick_wand); @@ -8409,7 +8331,7 @@ PHP_METHOD(Imagick, getImageFilename) char *filename; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8423,7 +8345,6 @@ PHP_METHOD(Imagick, getImageFilename) IM_ZVAL_STRING(return_value, filename); IMAGICK_FREE_MAGICK_MEMORY(filename); - return; } /* }}} */ @@ -8444,14 +8365,12 @@ PHP_METHOD(Imagick, getImageSize) status = MagickGetImageLength(intern->magick_wand, &length); if (status == MagickFalse) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to acquire image length" TSRMLS_CC); - return; + RETURN_THROWS(); } ZVAL_LONG(return_value, (long)length); #else ZVAL_LONG(return_value, (long)MagickGetImageSize(intern->magick_wand)); #endif - - return; } /* }}} */ @@ -8478,7 +8397,7 @@ PHP_METHOD(Imagick, getImageBlob) size_t image_size; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8486,7 +8405,7 @@ PHP_METHOD(Imagick, getImageBlob) if (!s_image_has_format (intern->magick_wand)) { php_imagick_throw_exception(IMAGICK_CLASS, "Image has no format" TSRMLS_CC); - return; + RETURN_THROWS(); } image_contents = MagickGetImageBlob(intern->magick_wand, &image_size); @@ -8496,7 +8415,6 @@ PHP_METHOD(Imagick, getImageBlob) IM_ZVAL_STRINGL(return_value, (char *)image_contents, image_size); IMAGICK_FREE_MAGICK_MEMORY(image_contents); - return; } /* }}} */ @@ -8512,7 +8430,7 @@ PHP_METHOD(Imagick, getImagesBlob) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8533,7 +8451,7 @@ PHP_METHOD(Imagick, getImagesBlob) while (MagickNextImage(intern->magick_wand)) { if (!s_image_has_format (intern->magick_wand)) { php_imagick_throw_exception(IMAGICK_CLASS, "Image has no format" TSRMLS_CC); - return; + RETURN_THROWS(); } } @@ -8547,7 +8465,7 @@ PHP_METHOD(Imagick, getImagesBlob) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set the iterator index" TSRMLS_CC); - return; + RETURN_THROWS(); } image_contents = MagickGetImagesBlob(intern->magick_wand, &image_size); @@ -8557,7 +8475,6 @@ PHP_METHOD(Imagick, getImagesBlob) IM_ZVAL_STRINGL(return_value, (char *)image_contents, image_size); IMAGICK_FREE_MAGICK_MEMORY(image_contents); - return; } /* }}} */ @@ -8570,20 +8487,19 @@ PHP_METHOD(Imagick, getImageFormat) char *format; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); IMAGICK_NOT_EMPTY(intern); if (!s_image_has_format (intern->magick_wand)) { php_imagick_throw_exception(IMAGICK_CLASS, "Image has no format" TSRMLS_CC); - return; + RETURN_THROWS(); } format = MagickGetImageFormat (intern->magick_wand); IM_ZVAL_STRING(return_value, format); IMAGICK_FREE_MAGICK_MEMORY(format); - return; } /* }}} */ @@ -8596,7 +8512,7 @@ PHP_METHOD(Imagick, getImageMimeType) char *format = NULL, *mime_type = NULL; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8604,7 +8520,7 @@ PHP_METHOD(Imagick, getImageMimeType) if (!s_image_has_format (intern->magick_wand)) { php_imagick_throw_exception(IMAGICK_CLASS, "Image has no format" TSRMLS_CC); - return; + RETURN_THROWS(); } format = MagickGetImageFormat (intern->magick_wand); @@ -8614,12 +8530,11 @@ PHP_METHOD(Imagick, getImageMimeType) if (!mime_type) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to get image mime-type" TSRMLS_CC); - return; + RETURN_THROWS(); } IM_ZVAL_STRING(return_value, mime_type); IMAGICK_FREE_MAGICK_MEMORY(mime_type); - return; } /* }}} */ @@ -8730,7 +8645,7 @@ PHP_METHOD(Imagick, identifyImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &append_raw_string) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8806,7 +8721,6 @@ PHP_METHOD(Imagick, identifyImage) IM_add_assoc_string (return_value, "rawOutput", identify); IMAGICK_FREE_MAGICK_MEMORY(identify); - return; } /* }}} */ @@ -8820,14 +8734,13 @@ PHP_METHOD(Imagick, getImageColors) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); IMAGICK_NOT_EMPTY(intern); ZVAL_LONG(return_value, (long)MagickGetImageColors(intern->magick_wand)); - return; } /* }}} */ @@ -8843,7 +8756,7 @@ PHP_METHOD(Imagick, commentImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &comment, &comment_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8854,7 +8767,7 @@ PHP_METHOD(Imagick, commentImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to comment image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -8873,7 +8786,7 @@ PHP_METHOD(Imagick, setImageFilename) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8884,7 +8797,7 @@ PHP_METHOD(Imagick, setImageFilename) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image filename" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -8906,7 +8819,7 @@ PHP_METHOD(Imagick, setImageAttribute) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &attribute, &attribute_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8917,7 +8830,7 @@ PHP_METHOD(Imagick, setImageAttribute) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image attribute" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -8936,7 +8849,7 @@ PHP_METHOD(Imagick, setImageBackgroundColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8954,7 +8867,7 @@ PHP_METHOD(Imagick, setImageBackgroundColor) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image background color" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -8973,7 +8886,7 @@ PHP_METHOD(Imagick, setImageChannelMask) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -8998,7 +8911,7 @@ PHP_METHOD(Imagick, setImageCompose) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &compose) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9009,7 +8922,7 @@ PHP_METHOD(Imagick, setImageCompose) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image composite operator" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9023,7 +8936,7 @@ PHP_METHOD(Imagick, getImageCompression) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9042,7 +8955,7 @@ PHP_METHOD(Imagick, setImageCompression) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &compression) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9053,7 +8966,7 @@ PHP_METHOD(Imagick, setImageCompression) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image compression" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9070,7 +8983,7 @@ PHP_METHOD(Imagick, setImageDelay) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &delay) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9081,7 +8994,7 @@ PHP_METHOD(Imagick, setImageDelay) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image delay" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9105,7 +9018,7 @@ PHP_METHOD(Imagick, colorizeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz|b", &color_param, &opacity_param, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9134,7 +9047,7 @@ PHP_METHOD(Imagick, colorizeImage) param_wand = php_imagick_clone_pixelwand (color_wand); if (!param_wand) { php_imagick_throw_exception (IMAGICK_CLASS, "Failed to allocate" TSRMLS_CC); - return; + RETURN_THROWS(); } #if MagickLibVersion < 0x700 PixelSetOpacity(param_wand, PixelGetOpacity(opacity_wand)); @@ -9155,7 +9068,7 @@ PHP_METHOD(Imagick, colorizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to colorize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9181,7 +9094,7 @@ PHP_METHOD(Imagick, compareImageChannels) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Oll", &objvar, php_imagick_sc_entry, &channel_type, &metric_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9194,7 +9107,7 @@ PHP_METHOD(Imagick, compareImageChannels) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Compare image channels failed" TSRMLS_CC); - return; + RETURN_THROWS(); } #if PHP_VERSION_ID >= 70000 @@ -9211,8 +9124,6 @@ PHP_METHOD(Imagick, compareImageChannels) add_next_index_zval(return_value, pNewWand); add_next_index_double(return_value, distortion); - - return; } /* }}} */ #if MagickLibVersion > 0x628 @@ -9226,7 +9137,7 @@ PHP_METHOD(Imagick, compareImageLayers) im_long compare_method; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &compare_method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9240,14 +9151,12 @@ PHP_METHOD(Imagick, compareImageLayers) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Compare image layers failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ #endif @@ -9261,7 +9170,7 @@ PHP_METHOD(Imagick, flattenImages) MagickWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9278,14 +9187,12 @@ PHP_METHOD(Imagick, flattenImages) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Flatten images failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -9299,7 +9206,7 @@ PHP_METHOD(Imagick, flipImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9310,7 +9217,7 @@ PHP_METHOD(Imagick, flipImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to flip image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9325,7 +9232,7 @@ PHP_METHOD(Imagick, flopImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9336,7 +9243,7 @@ PHP_METHOD(Imagick, flopImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to flop image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9355,7 +9262,7 @@ PHP_METHOD(Imagick, frameImage) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zllll", ¶m, &width, &height, &inner_bevel, &outer_bevel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9386,7 +9293,7 @@ PHP_METHOD(Imagick, frameImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to frame image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9407,7 +9314,7 @@ PHP_METHOD(Imagick, frameImageWithComposite) im_long composite = OverCompositeOp; // Over is the default https://imagemagick.org/script/command-line-options.php#frame if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zlllll", ¶m, &width, &height, &inner_bevel, &outer_bevel, &composite) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9438,7 +9345,7 @@ PHP_METHOD(Imagick, frameImageWithComposite) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to frame image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9458,7 +9365,7 @@ PHP_METHOD(Imagick, fxImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &expression, &expression_len, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9468,14 +9375,12 @@ PHP_METHOD(Imagick, fxImage) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Fx image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -9490,7 +9395,7 @@ PHP_METHOD(Imagick, gammaImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d|l", &gamma, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9501,7 +9406,7 @@ PHP_METHOD(Imagick, gammaImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to gamma image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -9519,7 +9424,7 @@ PHP_METHOD(Imagick, gaussianBlurImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &radius, &sigma, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9530,7 +9435,7 @@ PHP_METHOD(Imagick, gaussianBlurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to gaussian blur image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -9556,7 +9461,7 @@ PHP_METHOD(Imagick, compareImages) zval *pNewWand; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &objvar, php_imagick_sc_entry, &metric_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9577,7 +9482,7 @@ PHP_METHOD(Imagick, compareImages) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Compare images failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(pNewWand, php_imagick_sc_entry); @@ -9586,8 +9491,6 @@ PHP_METHOD(Imagick, compareImages) add_next_index_zval(return_value, pNewWand); add_next_index_double(return_value, distortion); - - return; } /* }}} */ @@ -9602,7 +9505,7 @@ PHP_METHOD(Imagick, contrastImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &contrast) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9613,7 +9516,7 @@ PHP_METHOD(Imagick, contrastImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to contrast image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9630,7 +9533,7 @@ PHP_METHOD(Imagick, setImageDepth) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &depth) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9641,7 +9544,7 @@ PHP_METHOD(Imagick, setImageDepth) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image depth" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9658,7 +9561,7 @@ PHP_METHOD(Imagick, setImageGamma) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &gamma) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9669,7 +9572,7 @@ PHP_METHOD(Imagick, setImageGamma) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image gamma" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9686,7 +9589,7 @@ PHP_METHOD(Imagick, setImageIterations) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &iterations) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9697,7 +9600,7 @@ PHP_METHOD(Imagick, setImageIterations) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image iterations" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9716,7 +9619,7 @@ PHP_METHOD(Imagick, setImageMatteColor) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9734,7 +9637,7 @@ PHP_METHOD(Imagick, setImageMatteColor) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image matte color" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -9753,7 +9656,7 @@ PHP_METHOD(Imagick, setImagePage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &width, &height, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9764,7 +9667,7 @@ PHP_METHOD(Imagick, setImagePage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image page" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9781,7 +9684,7 @@ PHP_METHOD(Imagick, setImageResolution) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x_res, &y_res) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9792,7 +9695,7 @@ PHP_METHOD(Imagick, setImageResolution) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image resolution" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9809,7 +9712,7 @@ PHP_METHOD(Imagick, setImageScene) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &scene) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9820,7 +9723,7 @@ PHP_METHOD(Imagick, setImageScene) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image scene" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9837,7 +9740,7 @@ PHP_METHOD(Imagick, setImageTicksPerSecond) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &ticks_per_second) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9848,7 +9751,7 @@ PHP_METHOD(Imagick, setImageTicksPerSecond) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image ticks per second" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9865,7 +9768,7 @@ PHP_METHOD(Imagick, setImageType) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &image_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9876,7 +9779,7 @@ PHP_METHOD(Imagick, setImageType) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image type" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9893,7 +9796,7 @@ PHP_METHOD(Imagick, setImageUnits) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &units) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9904,7 +9807,7 @@ PHP_METHOD(Imagick, setImageUnits) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image units" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9922,7 +9825,7 @@ PHP_METHOD(Imagick, setImageFormat) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &format, &format_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9933,7 +9836,7 @@ PHP_METHOD(Imagick, setImageFormat) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image format" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -9951,7 +9854,7 @@ PHP_METHOD(Imagick, charcoalImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &radius, &sigma) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9962,7 +9865,7 @@ PHP_METHOD(Imagick, charcoalImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to charcoal image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -9981,7 +9884,7 @@ PHP_METHOD(Imagick, oilPaintImage) #endif // #if MagickLibVersion >= 0x700 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &radius) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -9997,7 +9900,7 @@ PHP_METHOD(Imagick, oilPaintImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to oilpaint image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -10015,7 +9918,7 @@ PHP_METHOD(Imagick, oilPaintImageWithSigma) php_imagick_object *intern; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &radius, &sigma) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10027,7 +9930,7 @@ PHP_METHOD(Imagick, oilPaintImageWithSigma) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to oilPaintImageWithSigma image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -10045,7 +9948,7 @@ PHP_METHOD(Imagick, normalizeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10059,7 +9962,7 @@ PHP_METHOD(Imagick, normalizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to normalize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -10077,7 +9980,7 @@ PHP_METHOD(Imagick, labelImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &label, &label_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10088,7 +9991,7 @@ PHP_METHOD(Imagick, labelImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to label image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10108,7 +10011,7 @@ PHP_METHOD(Imagick, writeImage) php_imagick_rw_result_t rc; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s!", &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10119,7 +10022,7 @@ PHP_METHOD(Imagick, writeImage) if (!filename) { php_imagick_throw_exception(IMAGICK_CLASS, "No image filename specified" TSRMLS_CC); - return; + RETURN_THROWS(); } filename_len = strlen(filename); free_filename = 1; @@ -10127,12 +10030,12 @@ PHP_METHOD(Imagick, writeImage) if (!filename_len) { php_imagick_throw_exception(IMAGICK_CLASS, "Can not use empty string as a filename" TSRMLS_CC); - return; + RETURN_THROWS(); } if (!php_imagick_file_init(&file, filename, filename_len TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_write_file(intern, &file, ImagickWriteImage, 0 TSRMLS_CC); php_imagick_file_deinit(&file); @@ -10142,7 +10045,7 @@ PHP_METHOD(Imagick, writeImage) if (free_filename) { IMAGICK_FREE_MAGICK_MEMORY(filename); } - return; + RETURN_THROWS(); } if (free_filename) { @@ -10165,7 +10068,7 @@ PHP_METHOD(Imagick, writeImages) php_imagick_rw_result_t rc; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sb", &filename, &filename_len, &adjoin) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10173,19 +10076,19 @@ PHP_METHOD(Imagick, writeImages) if (!filename_len) { php_imagick_convert_imagick_exception(intern->magick_wand, "Can not use empty string as a filename" TSRMLS_CC); - return; + RETURN_THROWS(); } if (!php_imagick_file_init(&file, filename, filename_len TSRMLS_CC)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid filename provided" TSRMLS_CC); - return; + RETURN_THROWS(); } rc = php_imagick_write_file(intern, &file, ImagickWriteImages, adjoin TSRMLS_CC); php_imagick_file_deinit(&file); if (rc != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, filename TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10207,7 +10110,7 @@ PHP_METHOD(Imagick, drawImage) IMAGICK_NOT_EMPTY(intern); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &objvar, php_imagickdraw_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } internd = Z_IMAGICKDRAW_P(objvar); @@ -10224,7 +10127,7 @@ PHP_METHOD(Imagick, drawImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to draw image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10248,7 +10151,7 @@ PHP_METHOD(Imagick, annotateImage) #endif if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Oddds", &objvar, php_imagickdraw_sc_entry, &x, &y, &angle, &text, &text_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10262,7 +10165,7 @@ PHP_METHOD(Imagick, annotateImage) /* Fixes PECL Bug #11328 */ if (!font) { php_imagick_throw_exception(IMAGICK_CLASS, "Font needs to be set before annotating an image" TSRMLS_CC); - return; + RETURN_THROWS(); } #endif @@ -10271,7 +10174,7 @@ PHP_METHOD(Imagick, annotateImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to annotate image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10286,7 +10189,7 @@ PHP_METHOD(Imagick, getImageCompressionQuality) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10304,7 +10207,7 @@ PHP_METHOD(Imagick, setImageCompressionQuality) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &quality) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10315,7 +10218,7 @@ PHP_METHOD(Imagick, setImageCompressionQuality) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set image compression quality" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10336,7 +10239,7 @@ PHP_METHOD(Imagick, compositeImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Olll|l", &objvar, php_imagick_sc_entry, &composite_id, &x, &y, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10365,7 +10268,7 @@ PHP_METHOD(Imagick, modulateImage) double brightness, saturation, hue; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd", &brightness, &saturation, &hue) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10375,7 +10278,7 @@ PHP_METHOD(Imagick, modulateImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to modulate image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10393,7 +10296,7 @@ PHP_METHOD(Imagick, addNoiseImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|l", &noise, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10407,7 +10310,7 @@ PHP_METHOD(Imagick, addNoiseImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to add image noise" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10428,7 +10331,7 @@ PHP_METHOD(Imagick, addNoiseImageWithAttenuate) double attenuate; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ld|l", &noise, &attenuate, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10443,7 +10346,7 @@ PHP_METHOD(Imagick, addNoiseImageWithAttenuate) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to add image noise" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10471,7 +10374,7 @@ PHP_METHOD(Imagick, montageImage) &montage_mode, &frame, &frame_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10483,14 +10386,12 @@ PHP_METHOD(Imagick, montageImage) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Montage image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - - return; } /* }}} */ @@ -10505,7 +10406,7 @@ PHP_METHOD(Imagick, affineTransformImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O", &objvar, php_imagickdraw_sc_entry) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10517,7 +10418,7 @@ PHP_METHOD(Imagick, affineTransformImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to affine transform image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10536,7 +10437,7 @@ PHP_METHOD(Imagick, averageImages) #endif if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10550,7 +10451,7 @@ PHP_METHOD(Imagick, averageImages) intern->magick_wand, "Averaging images failed, images are empty?" TSRMLS_CC ); - return; + RETURN_THROWS(); } tmp_wand = MagickEvaluateImages(intern->magick_wand, MeanEvaluateOperator); @@ -10560,13 +10461,12 @@ PHP_METHOD(Imagick, averageImages) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Averaging images failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; } /* }}} */ @@ -10583,7 +10483,7 @@ PHP_METHOD(Imagick, borderImage) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zll", ¶m, &width, &height) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10605,7 +10505,7 @@ PHP_METHOD(Imagick, borderImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to border image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10630,7 +10530,7 @@ PHP_METHOD(Imagick, borderImageWithComposite) im_long composite; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zlll", ¶m, &width, &height, &composite) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10648,7 +10548,7 @@ PHP_METHOD(Imagick, borderImageWithComposite) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to border image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10668,7 +10568,7 @@ PHP_METHOD(Imagick, thresholdImage) im_long channel = DefaultChannels; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d|l", &threshold, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10679,7 +10579,7 @@ PHP_METHOD(Imagick, thresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to threshold image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10696,7 +10596,7 @@ PHP_METHOD(Imagick, adaptiveThresholdImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", &width, &height, &offset) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10707,7 +10607,7 @@ PHP_METHOD(Imagick, adaptiveThresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to adaptive threshold image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10726,7 +10626,7 @@ PHP_METHOD(Imagick, sharpenImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &radius, &sigma, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10737,7 +10637,7 @@ PHP_METHOD(Imagick, sharpenImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to sharpen image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -10753,7 +10653,7 @@ PHP_METHOD(Imagick, shaveImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &columns, &rows) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10764,7 +10664,7 @@ PHP_METHOD(Imagick, shaveImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to shave image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10784,7 +10684,7 @@ PHP_METHOD(Imagick, shearImage) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zdd", ¶m, &x_shear, &y_shear) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10802,7 +10702,7 @@ PHP_METHOD(Imagick, shearImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to shear image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10820,7 +10720,7 @@ PHP_METHOD(Imagick, spliceImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &width, &height, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10831,7 +10731,7 @@ PHP_METHOD(Imagick, spliceImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to splice image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10849,7 +10749,7 @@ PHP_METHOD(Imagick, steganoImage) MagickWand *tmp_wand; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &objvar, php_imagick_sc_entry, &offset) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10862,13 +10762,12 @@ PHP_METHOD(Imagick, steganoImage) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Stegano image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; } /* }}} */ @@ -10881,7 +10780,7 @@ PHP_METHOD(Imagick, clone) MagickWand *tmp_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } IMAGICK_METHOD_DEPRECATED("Imagick", "clone"); @@ -10890,13 +10789,12 @@ PHP_METHOD(Imagick, clone) if (tmp_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "Cloning Imagick object failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; } /* }}} */ @@ -10913,7 +10811,7 @@ PHP_METHOD(Imagick, rotateImage) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zd", ¶m, °rees) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10931,7 +10829,7 @@ PHP_METHOD(Imagick, rotateImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to rotate image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10948,7 +10846,7 @@ PHP_METHOD(Imagick, sampleImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &columns, &rows) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10959,7 +10857,7 @@ PHP_METHOD(Imagick, sampleImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to sample image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -10976,7 +10874,7 @@ PHP_METHOD(Imagick, solarizeImage) im_long threshold; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &threshold) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -10988,7 +10886,7 @@ PHP_METHOD(Imagick, solarizeImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to solarize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11006,7 +10904,7 @@ PHP_METHOD(Imagick, shadowImage) im_long x, y; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddll", &opacity, &sigma, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11017,7 +10915,7 @@ PHP_METHOD(Imagick, shadowImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to shadow image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11035,7 +10933,7 @@ PHP_METHOD(Imagick, motionBlurImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd|l", &radius, &sigma, &angle, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11050,7 +10948,7 @@ PHP_METHOD(Imagick, motionBlurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to motion blur image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11072,7 +10970,7 @@ PHP_METHOD(Imagick, mosaicImages) IMAGICK_METHOD_DEPRECATED ("Imagick", "mosaicImages"); if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11084,15 +10982,13 @@ PHP_METHOD(Imagick, mosaicImages) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Mosaic image failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; - } /* }}} */ #endif @@ -11107,7 +11003,7 @@ PHP_METHOD(Imagick, morphImages) im_long frames; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &frames) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11117,15 +11013,13 @@ PHP_METHOD(Imagick, morphImages) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Morphing images failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; - } /* }}} */ @@ -11138,7 +11032,7 @@ PHP_METHOD(Imagick, minifyImage) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11149,7 +11043,7 @@ PHP_METHOD(Imagick, minifyImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to minify image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11168,7 +11062,7 @@ PHP_METHOD(Imagick, posterizeImage) zend_bool dither; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lb", &levels, &dither) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11179,7 +11073,7 @@ PHP_METHOD(Imagick, posterizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to posterize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11200,7 +11094,7 @@ PHP_METHOD(Imagick, radialBlurImage) im_long channel = DefaultChannels; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d|l", &angle, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11211,7 +11105,7 @@ PHP_METHOD(Imagick, radialBlurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to radial blur image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11231,7 +11125,7 @@ PHP_METHOD(Imagick, raiseImage) zend_bool raise; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llllb", &width, &height, &x, &y, &raise) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11242,7 +11136,7 @@ PHP_METHOD(Imagick, raiseImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to raise image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11261,7 +11155,7 @@ PHP_METHOD(Imagick, blackThresholdImage) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11279,7 +11173,7 @@ PHP_METHOD(Imagick, blackThresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to black threshold image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11297,7 +11191,7 @@ PHP_METHOD(Imagick, resampleImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddld", &xRes, &yRes, &filter, &blur) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11314,7 +11208,7 @@ PHP_METHOD(Imagick, resampleImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to resample image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11337,7 +11231,7 @@ PHP_METHOD(Imagick, resizeImage) zend_bool legacy = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llld|bb", &width, &height, &filter, &blur, &bestfit, &legacy) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11345,7 +11239,7 @@ PHP_METHOD(Imagick, resizeImage) if (!php_imagick_thumbnail_dimensions(intern->magick_wand, bestfit, width, height, &new_width, &new_height, legacy)) { php_imagick_throw_exception(IMAGICK_CLASS, "Invalid image geometry" TSRMLS_CC); - return; + RETURN_THROWS(); } #if MagickLibVersion >= 0x700 @@ -11358,7 +11252,7 @@ PHP_METHOD(Imagick, resizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to resize image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11375,7 +11269,7 @@ PHP_METHOD(Imagick, rollImage) MagickBooleanType status; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11385,7 +11279,7 @@ PHP_METHOD(Imagick, rollImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to roll image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11402,7 +11296,7 @@ PHP_METHOD(Imagick, appendImages) zend_bool stack; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &stack) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11412,13 +11306,12 @@ PHP_METHOD(Imagick, appendImages) if (!tmp_wand) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to append images" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; } /* }}} */ @@ -11434,7 +11327,7 @@ PHP_METHOD(Imagick, whiteThresholdImage) zend_bool allocated; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11452,7 +11345,7 @@ PHP_METHOD(Imagick, whiteThresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to white threshold image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -11468,7 +11361,7 @@ PHP_METHOD(Imagick, getPixelIterator) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11478,11 +11371,10 @@ PHP_METHOD(Imagick, getPixelIterator) if (!pixel_it) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Can not allocate ImagickPixelIterator" TSRMLS_CC); - return; + RETURN_THROWS(); } php_imagick_pixel_iterator_new (pixel_it, return_value TSRMLS_CC); - return; } /* }}} */ @@ -11497,7 +11389,7 @@ PHP_METHOD(Imagick, getPixelRegionIterator) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &x, &y, &columns, &rows) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11507,11 +11399,10 @@ PHP_METHOD(Imagick, getPixelRegionIterator) if (!pixel_it) { php_imagick_throw_exception (IMAGICKPIXELITERATOR_CLASS, "Can not allocate ImagickPixelIterator" TSRMLS_CC); - return; + RETURN_THROWS(); } php_imagick_pixel_iterator_new (pixel_it, return_value TSRMLS_CC); - return; } /* }}} */ @@ -11523,7 +11414,7 @@ PHP_METHOD(Imagick, getCompression) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11539,7 +11430,7 @@ PHP_METHOD(Imagick, getCompressionQuality) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11555,12 +11446,11 @@ PHP_METHOD(Imagick, getCopyright) char *copyright; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } copyright = (char *)MagickGetCopyright(); IM_ZVAL_STRING(return_value, copyright); - return; } /* }}} */ @@ -11579,7 +11469,7 @@ PHP_METHOD(Imagick, getConfigureOptions) unsigned int i; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &pattern, &pattern_len) == FAILURE) { - return; + RETURN_THROWS(); } result = MagickQueryConfigureOptions(pattern, &number_options); @@ -11605,7 +11495,7 @@ PHP_METHOD(Imagick, getFeatures) const char *features; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } features = GetMagickFeatures(); @@ -11626,7 +11516,7 @@ PHP_METHOD(Imagick, getFilename) char *filename; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11636,7 +11526,6 @@ PHP_METHOD(Imagick, getFilename) IM_ZVAL_STRING(return_value, filename); IMAGICK_FREE_MAGICK_MEMORY(filename); } - return; } /* }}} */ @@ -11649,7 +11538,7 @@ PHP_METHOD(Imagick, getFormat) char *format; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11659,7 +11548,6 @@ PHP_METHOD(Imagick, getFormat) IM_ZVAL_STRING(return_value, format); IMAGICK_FREE_MAGICK_MEMORY(format); } - return; } /* }}} */ @@ -11671,7 +11559,7 @@ PHP_METHOD(Imagick, getHomeURL) char *home_url; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } home_url = (char *)MagickGetHomeURL(); @@ -11679,7 +11567,6 @@ PHP_METHOD(Imagick, getHomeURL) IM_ZVAL_STRING(return_value, home_url); IMAGICK_FREE_MAGICK_MEMORY(home_url); } - return; } /* }}} */ @@ -11691,7 +11578,7 @@ PHP_METHOD(Imagick, getInterlaceScheme) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11709,7 +11596,7 @@ PHP_METHOD(Imagick, getOption) IM_LEN_TYPE key_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11720,7 +11607,6 @@ PHP_METHOD(Imagick, getOption) IM_ZVAL_STRING(return_value, value); IMAGICK_FREE_MAGICK_MEMORY(value); } - return; } /* }}} */ @@ -11732,12 +11618,11 @@ PHP_METHOD(Imagick, getPackageName) char *package_name; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } package_name = (char *)MagickGetPackageName(); IM_ZVAL_STRING(return_value, package_name); - return; } /* }}} */ @@ -11752,7 +11637,7 @@ PHP_METHOD(Imagick, getPage) ssize_t x, y; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11760,7 +11645,7 @@ PHP_METHOD(Imagick, getPage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get page" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); @@ -11768,8 +11653,6 @@ PHP_METHOD(Imagick, getPage) add_assoc_long(return_value, "height", height); add_assoc_long(return_value, "x", x); add_assoc_long(return_value, "y", y); - - return; } /* }}} */ @@ -11779,7 +11662,7 @@ PHP_METHOD(Imagick, getPage) PHP_METHOD(Imagick, getHdriEnabled) { if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } #if MAGICKCORE_HDRI_ENABLE @@ -11787,7 +11670,6 @@ PHP_METHOD(Imagick, getHdriEnabled) #else RETURN_FALSE; #endif - return; } /* }}} */ @@ -11800,7 +11682,7 @@ PHP_METHOD(Imagick, getQuantum) size_t range; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } MagickGetQuantumRange(&range); @@ -11811,7 +11693,6 @@ PHP_METHOD(Imagick, getQuantum) //#else // RETVAL_LONG(color_value); //#endif - return; } /* }}} */ @@ -11825,7 +11706,7 @@ PHP_METHOD(Imagick, getQuantumDepth) size_t depth; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } quantum_depth = MagickGetQuantumDepth(&depth); @@ -11833,8 +11714,6 @@ PHP_METHOD(Imagick, getQuantumDepth) array_init(return_value); add_assoc_long(return_value, "quantumDepthLong", depth); IM_add_assoc_string(return_value, "quantumDepthString", (char *)quantum_depth); - - return; } /* }}} */ @@ -11847,7 +11726,7 @@ PHP_METHOD(Imagick, getQuantumRange) size_t range; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } quantum_range = MagickGetQuantumRange(&range); @@ -11855,7 +11734,6 @@ PHP_METHOD(Imagick, getQuantumRange) add_assoc_long(return_value, "quantumRangeLong", range); IM_add_assoc_string(return_value, "quantumRangeString", (char *)quantum_range); - return; } /* }}} */ @@ -11867,12 +11745,11 @@ PHP_METHOD(Imagick, getReleaseDate) char *release_date; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } release_date = (char *)MagickGetReleaseDate(); IM_ZVAL_STRING(return_value, release_date); - return; } /* }}} */ @@ -11884,7 +11761,7 @@ PHP_METHOD(Imagick, getResource) im_long resource_type; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &resource_type) == FAILURE) { - return; + RETURN_THROWS(); } RETVAL_LONG(MagickGetResource(resource_type)); @@ -11899,7 +11776,7 @@ PHP_METHOD(Imagick, getResourceLimit) im_long resource_type; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &resource_type) == FAILURE) { - return; + RETURN_THROWS(); } RETVAL_DOUBLE(MagickGetResourceLimit(resource_type)); @@ -11917,7 +11794,7 @@ PHP_METHOD(Imagick, getSamplingFactors) size_t number_factors = 0; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11931,8 +11808,6 @@ PHP_METHOD(Imagick, getSamplingFactors) } MagickRelinquishMemory(sampling_factors); - - return; } /* }}} */ @@ -11946,7 +11821,7 @@ PHP_METHOD(Imagick, getSize) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -11954,14 +11829,12 @@ PHP_METHOD(Imagick, getSize) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get size" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_long(return_value, "columns", columns); add_assoc_long(return_value, "rows", rows); - - return; } /* }}} */ @@ -11974,7 +11847,7 @@ PHP_METHOD(Imagick, getVersion) size_t version_number; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } version_string = (char *)MagickGetVersion(&version_number); @@ -11982,7 +11855,6 @@ PHP_METHOD(Imagick, getVersion) add_assoc_long(return_value, "versionNumber", (long) version_number); IM_add_assoc_string(return_value, "versionString", version_string); - return; } /* }}} */ @@ -11998,7 +11870,7 @@ PHP_METHOD(Imagick, setBackgroundColor) zend_bool allocated = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", ¶m) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12015,7 +11887,7 @@ PHP_METHOD(Imagick, setBackgroundColor) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set background color" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12033,7 +11905,7 @@ PHP_METHOD(Imagick, setCompression) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &compression) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12042,7 +11914,7 @@ PHP_METHOD(Imagick, setCompression) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set compression" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12059,7 +11931,7 @@ PHP_METHOD(Imagick, setCompressionQuality) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &quality) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12068,7 +11940,7 @@ PHP_METHOD(Imagick, setCompressionQuality) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set compression quality" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12086,7 +11958,7 @@ PHP_METHOD(Imagick, setFilename) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12095,7 +11967,7 @@ PHP_METHOD(Imagick, setFilename) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set filename" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12114,7 +11986,7 @@ PHP_METHOD(Imagick, setFormat) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &format, &format_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12123,7 +11995,7 @@ PHP_METHOD(Imagick, setFormat) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set format" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12141,7 +12013,7 @@ PHP_METHOD(Imagick, setInterlaceScheme) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &schema) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12150,7 +12022,7 @@ PHP_METHOD(Imagick, setInterlaceScheme) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set interlace scheme" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12168,7 +12040,7 @@ PHP_METHOD(Imagick, setOption) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &value, &value_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12177,7 +12049,7 @@ PHP_METHOD(Imagick, setOption) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set option" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12194,7 +12066,7 @@ PHP_METHOD(Imagick, setPage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llll", &width, &height, &x, &y) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12203,7 +12075,7 @@ PHP_METHOD(Imagick, setPage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set page" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12218,19 +12090,19 @@ PHP_METHOD(Imagick, setImageProgressMonitor) if (!IMAGICK_G(progress_monitor)) { php_imagick_throw_exception(IMAGICK_CLASS, "Progress monitoring is disabled in ini-settings" TSRMLS_CC); - return; + RETURN_THROWS(); } /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); if ((rc = php_imagick_file_access_check (filename TSRMLS_CC)) != IMAGICK_RW_OK) { php_imagick_rw_fail_to_exception (intern->magick_wand, rc, filename TSRMLS_CC); - return; + RETURN_THROWS(); } if (intern->progress_monitor_name) { @@ -12301,7 +12173,7 @@ PHP_METHOD(Imagick, setResourceLimit) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ld", &type, &limit) == FAILURE) { - return; + RETURN_THROWS(); } status = MagickSetResourceLimit(type, (MagickSizeType)limit); @@ -12309,7 +12181,7 @@ PHP_METHOD(Imagick, setResourceLimit) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to set resource limit" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12326,7 +12198,7 @@ PHP_METHOD(Imagick, setResolution) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &x_resolution, &y_resolution) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12335,7 +12207,7 @@ PHP_METHOD(Imagick, setResolution) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set resolution" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12354,14 +12226,14 @@ PHP_METHOD(Imagick, setSamplingFactors) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &factors) == FAILURE) { - return; + RETURN_THROWS(); } double_array = php_imagick_zval_to_double_array(factors, &elements TSRMLS_CC); if (!double_array) { php_imagick_throw_exception(IMAGICK_CLASS, "Can't read array" TSRMLS_CC); - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12372,7 +12244,7 @@ PHP_METHOD(Imagick, setSamplingFactors) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set sampling factors" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12389,7 +12261,7 @@ PHP_METHOD(Imagick, setSize) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll", &columns, &rows) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12398,7 +12270,7 @@ PHP_METHOD(Imagick, setSize) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set size" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12415,7 +12287,7 @@ PHP_METHOD(Imagick, setType) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12424,7 +12296,7 @@ PHP_METHOD(Imagick, setType) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to set type" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -12443,7 +12315,7 @@ PHP_METHOD(Imagick, brightnessContrastImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &brightness, &contrast, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12454,7 +12326,7 @@ PHP_METHOD(Imagick, brightnessContrastImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to brightnesscontrastimage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12514,7 +12386,7 @@ PHP_METHOD(Imagick, colorMatrixImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &color_matrix_array) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12524,7 +12396,7 @@ PHP_METHOD(Imagick, colorMatrixImage) if (!colors) { php_imagick_throw_exception(IMAGICK_CLASS, "Unable to read color matrix array" TSRMLS_CC); - return; + RETURN_THROWS(); } if (num_elements == 25) { @@ -12536,7 +12408,7 @@ PHP_METHOD(Imagick, colorMatrixImage) else { efree(colors); php_imagick_throw_exception(IMAGICK_CLASS, "Color matrix array must be 5x5 or 6x6" TSRMLS_CC); - return; + RETURN_THROWS(); } kernel_color_matrix = php_imagick_getKernelInfo(colors, order); @@ -12557,7 +12429,7 @@ PHP_METHOD(Imagick, colorMatrixImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to colormatriximage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12577,7 +12449,7 @@ PHP_METHOD(Imagick, selectiveBlurImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd|l", &brightness, &contrast, &threshold, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12588,7 +12460,7 @@ PHP_METHOD(Imagick, selectiveBlurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to selectiveblurimage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12609,7 +12481,7 @@ PHP_METHOD(Imagick, rotationalBlurImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d|l", &angle, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12620,7 +12492,7 @@ PHP_METHOD(Imagick, rotationalBlurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to rotational blur image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12650,7 +12522,7 @@ PHP_METHOD(Imagick, statisticImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll|l", &type, &width, &height, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12661,7 +12533,7 @@ PHP_METHOD(Imagick, statisticImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to statisticImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12708,7 +12580,7 @@ PHP_METHOD(Imagick, subimageMatch) #endif if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, param_string, &reference_obj, php_imagick_sc_entry, &z_best_match_offset, &z_similarity, &similarity_threshold, &metric) == FAILURE) { - return; + RETURN_THROWS(); } reference_intern = Z_IMAGICK_P(reference_obj); @@ -12725,7 +12597,7 @@ PHP_METHOD(Imagick, subimageMatch) if (new_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "subimagematch failed" TSRMLS_CC); - return; + RETURN_THROWS(); } if (z_similarity) { @@ -12743,8 +12615,6 @@ PHP_METHOD(Imagick, subimageMatch) object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, new_wand); - - return; } /* }}} */ #endif @@ -12762,7 +12632,7 @@ PHP_METHOD(Imagick, setRegistry) IM_LEN_TYPE key_len, value_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &value, &value_len) == FAILURE) { - return; + RETURN_THROWS(); } status = SetImageRegistry(StringRegistryType, key, value, NULL); @@ -12787,7 +12657,7 @@ PHP_METHOD(Imagick, getRegistry) ExceptionInfo *ex_info; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) { - return; + RETURN_THROWS(); } ex_info = AcquireExceptionInfo(); @@ -12797,7 +12667,7 @@ PHP_METHOD(Imagick, getRegistry) if (ex_info->severity != 0) { zend_throw_exception_ex(php_imagick_exception_class_entry, 1 TSRMLS_CC, "Imagick::getRegistry exception (%s) ", ex_info->reason); ex_info = DestroyExceptionInfo(ex_info); - return; + RETURN_THROWS(); } ex_info = DestroyExceptionInfo(ex_info); @@ -12822,7 +12692,7 @@ PHP_METHOD(Imagick, listRegistry) char *value = NULL; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } array_init(return_value); @@ -12834,8 +12704,6 @@ PHP_METHOD(Imagick, listRegistry) IM_add_assoc_string(return_value, registry, value); IMAGICK_FREE_MAGICK_MEMORY(value); } - - return; } /* }}} */ @@ -12854,7 +12722,7 @@ PHP_METHOD(Imagick, morphology) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llO|l", &morphologyMethod, &iterations, &objvar, php_imagickkernel_sc_entry, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12872,7 +12740,7 @@ PHP_METHOD(Imagick, morphology) // No magick is going to happen if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to morphology image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12894,7 +12762,7 @@ PHP_METHOD(Imagick, filter) ChannelType channel = UndefinedChannel; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "O|l", &objvar, php_imagickkernel_sc_entry, &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12902,12 +12770,12 @@ PHP_METHOD(Imagick, filter) if ((kernel->kernel_info->width % 2) != 1) { php_imagick_convert_imagick_exception(intern->magick_wand, "Only odd-sized, square kernels can be applied as a filter." TSRMLS_CC); - return; + RETURN_THROWS(); } if (kernel->kernel_info->width != kernel->kernel_info->height) { php_imagick_convert_imagick_exception(intern->magick_wand, "Only odd-sized, square kernels can be applied as a filter." TSRMLS_CC); - return; + RETURN_THROWS(); } if (channel == 0) { @@ -12920,7 +12788,7 @@ PHP_METHOD(Imagick, filter) // No magick is going to happen if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Failed to filter image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12940,7 +12808,7 @@ PHP_METHOD(Imagick, setAntialias) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &antialias) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12948,7 +12816,7 @@ PHP_METHOD(Imagick, setAntialias) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to setAntiAlias" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -12964,7 +12832,7 @@ PHP_METHOD(Imagick, getAntialias) MagickBooleanType antialias; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -12992,7 +12860,7 @@ PHP_METHOD(Imagick, colorDecisionListImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &color_correction_collection, &ccc_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13000,7 +12868,7 @@ PHP_METHOD(Imagick, colorDecisionListImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to colorDecisionListImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13018,7 +12886,7 @@ PHP_METHOD(Imagick, optimizeImageTransparency) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13029,7 +12897,7 @@ PHP_METHOD(Imagick, optimizeImageTransparency) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Optimize image transparency failed" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13048,7 +12916,7 @@ PHP_METHOD(Imagick, autoGammaImage) im_long channel = IM_DEFAULT_CHANNEL; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &channel) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13059,7 +12927,7 @@ PHP_METHOD(Imagick, autoGammaImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "autoGammaImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13077,7 +12945,7 @@ PHP_METHOD(Imagick, autoOrient) MagickBooleanType status; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13088,7 +12956,7 @@ PHP_METHOD(Imagick, autoOrient) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable autoOrient image" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13109,7 +12977,7 @@ PHP_METHOD(Imagick, compositeImageGravity) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Oll", &objvar, php_imagick_sc_entry, &composite, &gravity) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13123,7 +12991,7 @@ PHP_METHOD(Imagick, compositeImageGravity) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to compositeImageGravity" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13145,7 +13013,7 @@ PHP_METHOD(Imagick, localContrastImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &radius, &strength) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13156,7 +13024,7 @@ PHP_METHOD(Imagick, localContrastImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Failed to localContrastImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13175,7 +13043,7 @@ PHP_METHOD(Imagick, identifyImageType) long imageType; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13201,7 +13069,7 @@ PHP_METHOD(Imagick, getImageMask) MagickWand *tmp_wand; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &pixelmask_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13214,14 +13082,14 @@ PHP_METHOD(Imagick, getImageMask) RETURN_NULL(); // php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to get image clip mask" TSRMLS_CC); -// return; +// RETURN_THROWS(); + } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, tmp_wand); - return; } /* }}} */ @@ -13236,7 +13104,7 @@ PHP_METHOD(Imagick, setImageMask) im_long pixelmask_type; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Ol", &objvar, php_imagick_sc_entry, &pixelmask_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13275,7 +13143,7 @@ PHP_METHOD(Imagick, cannyEdgeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &radius, &sigma, &lower_percent, &upper_percent) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13292,7 +13160,7 @@ PHP_METHOD(Imagick, cannyEdgeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to cannyEdgeImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13309,7 +13177,7 @@ PHP_METHOD(Imagick, setSeed) im_long seed; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &seed) == FAILURE) { - return; + RETURN_THROWS(); } MagickSetSeed(seed); @@ -13330,7 +13198,7 @@ PHP_METHOD(Imagick, waveletDenoiseImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd", &threshold, &softness) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13345,7 +13213,7 @@ PHP_METHOD(Imagick, waveletDenoiseImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to waveletDenoiseImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13365,7 +13233,7 @@ PHP_METHOD(Imagick, meanShiftImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lld", &width, &height, &color_distance) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13381,7 +13249,7 @@ PHP_METHOD(Imagick, meanShiftImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to meanShiftImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13401,7 +13269,7 @@ PHP_METHOD(Imagick, kmeansImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lld", &number_colors, &max_iterations, &tolerance) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13417,7 +13285,7 @@ PHP_METHOD(Imagick, kmeansImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to kmeansImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13436,7 +13304,7 @@ PHP_METHOD(Imagick, rangeThresholdImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &low_black, &low_white, &high_white, &high_black) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13453,7 +13321,7 @@ PHP_METHOD(Imagick, rangeThresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to rangeThresholdImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13472,7 +13340,7 @@ PHP_METHOD(Imagick, autoThresholdImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &auto_threshold_method) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13486,7 +13354,7 @@ PHP_METHOD(Imagick, autoThresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to autoThresholdImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13505,7 +13373,7 @@ PHP_METHOD(Imagick, bilateralBlurImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dddd", &radius, &sigma, &intensity_sigma, &spatial_sigma) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13522,7 +13390,7 @@ PHP_METHOD(Imagick, bilateralBlurImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to bilateralBlurImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13542,7 +13410,7 @@ PHP_METHOD(Imagick, claheImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "llld", &width, &height, &number_bins, &clip_limit) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13559,7 +13427,7 @@ PHP_METHOD(Imagick, claheImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to claheImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13581,7 +13449,7 @@ PHP_METHOD(Imagick, channelFxImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &expression, &expression_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13589,14 +13457,13 @@ PHP_METHOD(Imagick, channelFxImage) if (!fx_image) { php_imagick_convert_imagick_exception(intern->magick_wand, "channelFxImage failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, fx_image); - return; } /* }}} */ #endif // IM_HAVE_IMAGICK_CHANNELFXIMAGE @@ -13614,7 +13481,7 @@ PHP_METHOD(Imagick, colorThresholdImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz", &start_color_param, &stop_color_param) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13643,7 +13510,7 @@ PHP_METHOD(Imagick, colorThresholdImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to colorThresholdImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13665,7 +13532,7 @@ PHP_METHOD(Imagick, complexImages) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &complex_operator) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13674,7 +13541,7 @@ PHP_METHOD(Imagick, complexImages) status = MagickSetIteratorIndex(intern->magick_wand, 0); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "complexImages failed to set iterator index to 0" TSRMLS_CC); - return; + RETURN_THROWS(); } complexed = MagickComplexImages( @@ -13684,14 +13551,13 @@ PHP_METHOD(Imagick, complexImages) if (!complexed) { php_imagick_convert_imagick_exception(intern->magick_wand, "complexImages failed" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagick_sc_entry); intern_return = Z_IMAGICK_P(return_value); php_imagick_replace_magickwand(intern_return, complexed); - return; } /* }}} */ #endif //IM_HAVE_IMAGICK_COMPLEXIMAGES @@ -13708,7 +13574,7 @@ PHP_METHOD(Imagick, interpolativeResizeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lll", &columns, &rows, &interpolate) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13724,7 +13590,7 @@ PHP_METHOD(Imagick, interpolativeResizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to interpolativeResizeImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13747,7 +13613,7 @@ PHP_METHOD(Imagick, levelImageColors) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zzb", &black_color_param, &white_color_param, &invert) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13777,7 +13643,7 @@ PHP_METHOD(Imagick, levelImageColors) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to levelImageColors" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13798,7 +13664,7 @@ PHP_METHOD(Imagick, levelizeImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ddd", &black_point, &gamma, &white_point) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13814,7 +13680,7 @@ PHP_METHOD(Imagick, levelizeImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to levelizeImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13835,7 +13701,7 @@ PHP_METHOD(Imagick, orderedDitherImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &dither_format, &dither_format_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13849,7 +13715,7 @@ PHP_METHOD(Imagick, orderedDitherImage) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to orderedDitherImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13865,7 +13731,7 @@ PHP_METHOD(Imagick, whiteBalanceImage) php_imagick_object *intern; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13888,7 +13754,7 @@ PHP_METHOD(Imagick, deleteOption) IM_LEN_TYPE option_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &option, &option_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13898,7 +13764,7 @@ PHP_METHOD(Imagick, deleteOption) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to deleteOption" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -13916,7 +13782,7 @@ PHP_METHOD(Imagick, getBackgroundColor) PixelWand *pixel_wand; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13924,14 +13790,12 @@ PHP_METHOD(Imagick, getBackgroundColor) if (pixel_wand == NULL) { php_imagick_convert_imagick_exception(intern->magick_wand, "getBackgroundColor" TSRMLS_CC); - return; + RETURN_THROWS(); } object_init_ex(return_value, php_imagickpixel_sc_entry); imagickpixel_object = Z_IMAGICKPIXEL_P(return_value); php_imagick_replace_pixelwand(imagickpixel_object, pixel_wand); - - return; } /* }}} */ #endif @@ -13950,7 +13814,7 @@ PHP_METHOD(Imagick, getImageArtifacts) unsigned int i; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &pattern, &pattern_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -13997,7 +13861,7 @@ PHP_METHOD(Imagick, getImageKurtosis) double skewness; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14005,14 +13869,12 @@ PHP_METHOD(Imagick, getImageKurtosis) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to getImageKurtosis" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "kurtosis", kurtosis); add_assoc_double(return_value, "skewness", skewness); - - return; } /* }}} */ #endif @@ -14030,7 +13892,7 @@ PHP_METHOD(Imagick, getImageMean) double standard_deviation; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14038,14 +13900,12 @@ PHP_METHOD(Imagick, getImageMean) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to getImageMean" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "mean", mean); add_assoc_double(return_value, "standard_deviation", standard_deviation); - - return; } /* }}} */ #endif @@ -14062,7 +13922,7 @@ PHP_METHOD(Imagick, getImageRange) double maxima; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14070,14 +13930,12 @@ PHP_METHOD(Imagick, getImageRange) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to getImageRange" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "minima", minima); add_assoc_double(return_value, "maxima", maxima); - - return; } /* }}} */ #endif @@ -14091,7 +13949,7 @@ PHP_METHOD(Imagick, getInterpolateMethod) PixelInterpolateMethod pixelInterpolateMethod; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14117,7 +13975,7 @@ PHP_METHOD(Imagick, getOptions) unsigned int i; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &pattern, &pattern_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14136,8 +13994,6 @@ PHP_METHOD(Imagick, getOptions) DestroyString(options[i]); } RelinquishMagickMemory(options); - - return; } /* }}} */ #endif @@ -14152,7 +14008,7 @@ PHP_METHOD(Imagick, getOrientation) OrientationType orientation; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14176,7 +14032,7 @@ PHP_METHOD(Imagick, getResolution) double y; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14184,14 +14040,12 @@ PHP_METHOD(Imagick, getResolution) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to getResolution" TSRMLS_CC); - return; + RETURN_THROWS(); } array_init(return_value); add_assoc_double(return_value, "x", x); add_assoc_double(return_value, "y", y); - - return; } /* }}} */ #endif @@ -14205,7 +14059,7 @@ PHP_METHOD(Imagick, getType) ImageType type; if (zend_parse_parameters_none() == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14231,7 +14085,7 @@ PHP_METHOD(Imagick, polynomialImage) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a", &terms) == FAILURE) { - return; + RETURN_THROWS(); } terms_double_array = php_imagick_zval_to_double_array(terms, &terms_count TSRMLS_CC); @@ -14242,7 +14096,7 @@ PHP_METHOD(Imagick, polynomialImage) status = MagickSetIteratorIndex(intern->magick_wand, 0); if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to polynomialImage, failed to set iterator to zero" TSRMLS_CC); - return; + RETURN_THROWS(); } // TODO - sanity check terms_count @@ -14257,7 +14111,7 @@ PHP_METHOD(Imagick, polynomialImage) if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to polynomialImage" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; @@ -14277,7 +14131,7 @@ PHP_METHOD(Imagick, setDepth) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &depth) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14287,7 +14141,7 @@ PHP_METHOD(Imagick, setDepth) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to setDepth" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -14308,7 +14162,7 @@ PHP_METHOD(Imagick, setExtract) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &geometry_string, &geometry_string_len) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14319,7 +14173,7 @@ PHP_METHOD(Imagick, setExtract) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to setExtract" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -14338,7 +14192,7 @@ PHP_METHOD(Imagick, setInterpolateMethod) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &interpolate) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14349,7 +14203,7 @@ PHP_METHOD(Imagick, setInterpolateMethod) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to setInterpolateMethod" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } @@ -14367,7 +14221,7 @@ PHP_METHOD(Imagick, setOrientation) /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &orientation_type) == FAILURE) { - return; + RETURN_THROWS(); } intern = Z_IMAGICK_P(getThis()); @@ -14378,7 +14232,7 @@ PHP_METHOD(Imagick, setOrientation) /* No magick is going to happen */ if (status == MagickFalse) { php_imagick_convert_imagick_exception(intern->magick_wand, "Unable to setOrientation" TSRMLS_CC); - return; + RETURN_THROWS(); } RETURN_TRUE; } From 9df92616f577e38625b96b7b903582a46c064739 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 1 Jun 2023 15:56:36 +0200 Subject: [PATCH 31/31] Fix [-Werror=unused-parameter] --- imagickkernel_class.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imagickkernel_class.c b/imagickkernel_class.c index a0e82e89..05e6e1f2 100644 --- a/imagickkernel_class.c +++ b/imagickkernel_class.c @@ -816,6 +816,7 @@ PHP_METHOD(ImagickKernel, scale) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d|l", &scale, &normalize_flag) == FAILURE) { RETURN_THROWS(); } + (void)return_value; internp = Z_IMAGICKKERNEL_P(getThis()); IMAGICK_KERNEL_NOT_NULL_EMPTY(internp); @@ -840,6 +841,7 @@ PHP_METHOD(ImagickKernel, addUnityKernel) if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "d", &scale) == FAILURE) { RETURN_THROWS(); } + (void)return_value; internp = Z_IMAGICKKERNEL_P(getThis()); IMAGICK_KERNEL_NOT_NULL_EMPTY(internp);