summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71930.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-04-01 22:27:29 +0800
committerXinchen Hui <laruence@gmail.com>2016-04-01 22:27:29 +0800
commit5b1bb41c0b125fe9964abaa1d523ce2ba1823cf6 (patch)
tree4979b725879f5599319abc4ac1818989ef7f0123 /Zend/tests/bug71930.phpt
parent034e8ec02e263f5908b469bba1285e26c0a67bc4 (diff)
downloadphp-git-5b1bb41c0b125fe9964abaa1d523ce2ba1823cf6.tar.gz
Fixed bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
Diffstat (limited to 'Zend/tests/bug71930.phpt')
-rw-r--r--Zend/tests/bug71930.phpt30
1 files changed, 30 insertions, 0 deletions
diff --git a/Zend/tests/bug71930.phpt b/Zend/tests/bug71930.phpt
new file mode 100644
index 0000000000..4604b88493
--- /dev/null
+++ b/Zend/tests/bug71930.phpt
@@ -0,0 +1,30 @@
+--TEST--
+Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
+--SKIPIF--
+<?php
+if (!extension_loaded("curl")) {
+ die("skip Require a resource which is able to hold a callbck");
+}
+?>
+--FILE--
+<?php
+
+class A {
+ public static function dummy() {
+ }
+}
+
+$a = array();
+$a[] = "A";
+$a[] = "dummy";
+
+$ch1 = curl_init();
+curl_setopt($ch1, CURLOPT_HEADERFUNCTION, $a);
+
+set_error_handler($a);
+set_error_handler(function()use($ch1){});
+set_error_handler(function(){});
+?>
+okey
+--EXPECT--
+okey