summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-10-29 15:05:59 +0100
committerNikita Popov <nikita.ppv@gmail.com>2019-10-29 15:06:16 +0100
commitf9895b4bf5c6cdef0106f763cd95d95e98f039ae (patch)
treedf6d5feb7f114a47bce6d6c7f56d4b6c8b2321d7 /Zend/tests
parent2bdb13a1f776fccf89506d63eb71e950df96c21e (diff)
downloadphp-git-f9895b4bf5c6cdef0106f763cd95d95e98f039ae.tar.gz
Fixed bug #78689
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/bug78689.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/bug78689.phpt b/Zend/tests/bug78689.phpt
new file mode 100644
index 0000000000..2273fd3532
--- /dev/null
+++ b/Zend/tests/bug78689.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Bug #78689: Closure::fromCallable() doesn't handle [Closure, '__invoke']
+--FILE--
+<?php
+$a = [function () { echo "123\n"; }, '__invoke'];
+$a();
+
+$b = Closure::fromCallable($a);
+$b();
+?>
+--EXPECT--
+123
+123