xref: /PHP-8.3/ext/curl/tests/bug69485.phpt (revision 8567bc10)
1--TEST--
2Bug #69485 (Double free on zend_list_dtor)
3--EXTENSIONS--
4curl
5--FILE--
6<?php
7
8class O {
9    public $ch;
10    public function dummy() {
11    }
12}
13
14$ch = curl_init();
15
16$o = new O;
17$o->ch = $ch;
18curl_setopt($ch, CURLOPT_WRITEFUNCTION, array($o, "dummy"));
19?>
20==DONE==
21--EXPECT--
22==DONE==
23