xref: /PHP-8.3/Zend/tests/bug71930.phpt (revision 74859783)
1--TEST--
2Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
3--EXTENSIONS--
4curl
5--FILE--
6<?php
7
8class A {
9    public static function dummy() {
10    }
11}
12
13$a = array();
14$a[] = "A";
15$a[] = "dummy";
16
17$ch1 = curl_init();
18curl_setopt($ch1, CURLOPT_HEADERFUNCTION, $a);
19
20set_error_handler($a);
21set_error_handler(function()use($ch1){});
22set_error_handler(function(){});
23?>
24okey
25--EXPECT--
26okey
27