summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/gd.c2
-rw-r--r--ext/gd/tests/bug74031.phpt10
2 files changed, 12 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index b0fba30bfd..3e7d778ba3 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -372,6 +372,8 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_imagepng, 0, 0, 1)
ZEND_ARG_INFO(0, im)
ZEND_ARG_INFO(0, to)
+ ZEND_ARG_INFO(0, quality)
+ ZEND_ARG_INFO(0, filters)
ZEND_END_ARG_INFO()
#endif
diff --git a/ext/gd/tests/bug74031.phpt b/ext/gd/tests/bug74031.phpt
new file mode 100644
index 0000000000..e5d6d7091e
--- /dev/null
+++ b/ext/gd/tests/bug74031.phpt
@@ -0,0 +1,10 @@
+--TEST--
+(Bug #74031) ReflectionFunction for imagepng returns wrong number of parameters
+--FILE--
+<?php
+
+$ref = new ReflectionFunction('imagepng');
+var_dump(count($ref->getParameters()));
+?>
+--EXPECT--
+int(4)