summaryrefslogtreecommitdiff
path: root/ext/openssl/tests/bug70395.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/tests/bug70395.phpt')
-rw-r--r--ext/openssl/tests/bug70395.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/openssl/tests/bug70395.phpt b/ext/openssl/tests/bug70395.phpt
new file mode 100644
index 0000000000..bfa881a0cd
--- /dev/null
+++ b/ext/openssl/tests/bug70395.phpt
@@ -0,0 +1,19 @@
+--TEST--
+Bug #70395 (Missing ARG_INFO for openssl_seal())
+--SKIPIF--
+<?php
+if (!extension_loaded("openssl")) die("skip openssl not loaded");
+?>
+--FILE--
+<?php
+$func = new ReflectionFunction('openssl_seal');
+$param = $func->getParameters()[4];
+var_dump($param);
+var_dump($param->isOptional());
+?>
+--EXPECTF--
+object(ReflectionParameter)#%d (1) {
+ ["name"]=>
+ string(6) "method"
+}
+bool(true)