Skip to content

Commit a8d0fb4

Browse files
authored
ext/curl: Test exception type in curl_read_function_error_on_int.phpt‎
Follow up to #22757
1 parent 2b57e3b commit a8d0fb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ext/curl/tests/curl_read_function_error_on_int.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ curl_setopt($ch, CURLOPT_READFUNCTION, "custom_readfunction" );
2121
try {
2222
curl_exec($ch);
2323
} catch (ValueError $e) {
24-
echo $e->getMessage() . "\n";
24+
echo $e::class, ': ', $e->getMessage(), "\n";
2525
}
2626
var_dump(curl_error($ch));
2727
?>
2828
--EXPECT--
29-
The CURLOPT_READFUNCTION callback must return a string or CURL_READFUNC_ABORT or CURL_READFUNC_PAUSE
29+
ValueError: The CURLOPT_READFUNCTION callback must return a string or CURL_READFUNC_ABORT or CURL_READFUNC_PAUSE
3030
string(29) "operation aborted by callback"

0 commit comments

Comments
 (0)