summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/bug74595.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/bug74595.phpt')
-rw-r--r--ext/mysqli/tests/bug74595.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/mysqli/tests/bug74595.phpt b/ext/mysqli/tests/bug74595.phpt
new file mode 100644
index 0000000000..9d017eaa82
--- /dev/null
+++ b/ext/mysqli/tests/bug74595.phpt
@@ -0,0 +1,25 @@
+--TEST--
+Bug #74595 (ReflectionMethod::getParameters returns incorrect number of parameters)
+--SKIPIF--
+<?php
+require_once('skipif.inc');
+?>
+--FILE--
+<?php
+$class = new ReflectionClass('mysqli');
+$method = $class->getMethod('query');
+var_dump($method->getParameters());
+?>
+--EXPECTF--
+array(2) {
+ [0]=>
+ object(ReflectionParameter)#%d (1) {
+ ["name"]=>
+ string(5) "query"
+ }
+ [1]=>
+ object(ReflectionParameter)#%d (1) {
+ ["name"]=>
+ string(10) "resultmode"
+ }
+}