mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
31 lines
502 B
PHP
31 lines
502 B
PHP
--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
|