1--TEST-- 2Test curl_multi_setopt() with options that take callabes 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7 8$mh = curl_multi_init(); 9try { 10 var_dump(curl_multi_setopt($mh, CURLMOPT_PUSHFUNCTION, 'undefined')); 11} catch (Throwable $e) { 12 echo $e::class, ': ', $e->getMessage(), PHP_EOL; 13} 14 15?> 16--EXPECT-- 17TypeError: curl_multi_setopt(): Argument #2 ($option) must be a valid callback for option CURLMOPT_PUSHFUNCTION, function "undefined" not found or invalid function name 18