Skip to content

Commit f30501b

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix parameter order
2 parents f273204 + 9818f86 commit f30501b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ext/gd/gd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3071,7 +3071,7 @@ PHP_FUNCTION(imagecopy)
30713071
}
30723072
/* }}} */
30733073

3074-
/* {{{ proto bool imagecopymerge(resource src_im, resource dst_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct)
3074+
/* {{{ proto bool imagecopymerge(resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct)
30753075
Merge one part of an image with another */
30763076
PHP_FUNCTION(imagecopymerge)
30773077
{
@@ -3105,7 +3105,7 @@ PHP_FUNCTION(imagecopymerge)
31053105
}
31063106
/* }}} */
31073107

3108-
/* {{{ proto bool imagecopymergegray(resource src_im, resource dst_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct)
3108+
/* {{{ proto bool imagecopymergegray(resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h, int pct)
31093109
Merge one part of an image with another */
31103110
PHP_FUNCTION(imagecopymergegray)
31113111
{

ext/gd/gd.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ function imagestringup($im, int $font, int $x, int $y, string $str, int $col): b
219219

220220
function imagecopy($dst_im, $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h): bool {}
221221

222-
function imagecopymerge($src_im, $dst_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h, int $pct): bool {}
222+
function imagecopymerge($dst_im, $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h, int $pct): bool {}
223223

224-
function imagecopymergegray($src_im, $dst_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h, int $pct): bool {}
224+
function imagecopymergegray($dst_im, $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h, int $pct): bool {}
225225

226226
function imagecopyresized($dst_im, $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_w, int $dst_h, int $src_w, int $src_h): bool {}
227227

ext/gd/gd_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecopy, 0, 8, _IS_BOOL, 0)
416416
ZEND_END_ARG_INFO()
417417

418418
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_imagecopymerge, 0, 9, _IS_BOOL, 0)
419-
ZEND_ARG_INFO(0, src_im)
420419
ZEND_ARG_INFO(0, dst_im)
420+
ZEND_ARG_INFO(0, src_im)
421421
ZEND_ARG_TYPE_INFO(0, dst_x, IS_LONG, 0)
422422
ZEND_ARG_TYPE_INFO(0, dst_y, IS_LONG, 0)
423423
ZEND_ARG_TYPE_INFO(0, src_x, IS_LONG, 0)

0 commit comments

Comments
 (0)