Skip to content

Commit

Permalink
Add @generate-legacy-arginfo to get legacy arginfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danack committed Feb 8, 2024
1 parent 70fed98 commit 055ffb2
Show file tree
Hide file tree
Showing 7 changed files with 4,350 additions and 438 deletions.
5 changes: 4 additions & 1 deletion Imagick.stub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

/** @generate-function-entries */
/**
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/

class Imagick
{
Expand Down
5 changes: 4 additions & 1 deletion ImagickDraw.stub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

/** @generate-function-entries */
/**
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/
class ImagickDraw
{
#if MagickLibVersion > 0x628
Expand Down
5 changes: 4 additions & 1 deletion ImagickKernel.stub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

/** @generate-function-entries */
/**
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/

#ifdef IMAGICK_WITH_KERNEL
class ImagickKernel
Expand Down
5 changes: 4 additions & 1 deletion ImagickPixel.stub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

/** @generate-function-entries */
/**
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/

class ImagickPixel
{
Expand Down
5 changes: 4 additions & 1 deletion ImagickPixelIterator.stub.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

/** @generate-function-entries */
/**
* @generate-function-entries
* @generate-legacy-arginfo 70000
*/
class ImagickPixelIterator {
public function __construct(Imagick $imagick) {}

Expand Down
4 changes: 4 additions & 0 deletions ImagickPixelIterator_arginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ ZEND_END_ARG_INFO()

#define arginfo_class_ImagickPixelIterator_key arginfo_class_ImagickPixelIterator_getIteratorRow

#if (PHP_VERSION_ID >= 80100)
ZEND_BEGIN_ARG_WITH_TENTATIVE_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
Expand Down
Loading

0 comments on commit 055ffb2

Please sign in to comment.