Commit 337af2feab9 for php.net

commit 337af2feab9417559da860aabc0f65ca94278c2b
Author: NickSdot <32384907+NickSdot@users.noreply.github.com>
Date:   Fri Aug 14 00:11:36 2026 +0700

    ext/curl: Test exception types in tests added in #22745

    Follow up to #22745.

diff --git a/ext/curl/tests/curl_headerfunction_throws_abort.phpt b/ext/curl/tests/curl_headerfunction_throws_abort.phpt
index 9a69c966f14..23fe1652c63 100644
--- a/ext/curl/tests/curl_headerfunction_throws_abort.phpt
+++ b/ext/curl/tests/curl_headerfunction_throws_abort.phpt
@@ -25,7 +25,7 @@ function (): int {
 try {
     curl_exec($ch);
 } catch (Exception $e) {
-    echo $e->getMessage(), "\n";
+    echo $e::class, ': ', $e->getMessage(), "\n";
 }

 var_dump(curl_errno($ch) === CURLE_WRITE_ERROR);
@@ -39,7 +39,7 @@ function (): int {
 ?>
 --EXPECTF--
 Test: header function throws exception
-header exception
+Exception: header exception
 bool(true)
 Test: header function is null
 bool(true)
diff --git a/ext/curl/tests/curl_prereqfunction_throws_abort.phpt b/ext/curl/tests/curl_prereqfunction_throws_abort.phpt
index 7e8ccbf94f5..9ba19c650c9 100644
--- a/ext/curl/tests/curl_prereqfunction_throws_abort.phpt
+++ b/ext/curl/tests/curl_prereqfunction_throws_abort.phpt
@@ -24,12 +24,12 @@ function (): int {
 try {
     curl_exec($ch);
 } catch (Exception $e) {
-    echo $e->getMessage(), "\n";
+    echo $e::class, ': ', $e->getMessage(), "\n";
 }

 var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);

 ?>
 --EXPECTF--
-prereq exception
+Exception: prereq exception
 bool(true)
diff --git a/ext/curl/tests/curl_progressfunction_throws_abort.phpt b/ext/curl/tests/curl_progressfunction_throws_abort.phpt
index 55e0f76cb61..5d359967983 100644
--- a/ext/curl/tests/curl_progressfunction_throws_abort.phpt
+++ b/ext/curl/tests/curl_progressfunction_throws_abort.phpt
@@ -26,7 +26,7 @@ function (): int {
 try {
     curl_exec($ch);
 } catch (Exception $e) {
-    echo $e->getMessage(), "\n";
+    echo $e::class, ': ', $e->getMessage(), "\n";
 }

 var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);
@@ -40,7 +40,7 @@ function (): int {
 ?>
 --EXPECTF--
 Test: progress function throws exception
-info exception
+Exception: info exception
 bool(true)
 Test: progress function is null
 bool(true)
diff --git a/ext/curl/tests/curl_readfunction_throws_abort.phpt b/ext/curl/tests/curl_readfunction_throws_abort.phpt
index a030f8c4f41..a18977d3ce4 100644
--- a/ext/curl/tests/curl_readfunction_throws_abort.phpt
+++ b/ext/curl/tests/curl_readfunction_throws_abort.phpt
@@ -28,7 +28,7 @@ function (): int {
 try {
     curl_exec($ch);
 } catch (Exception $e) {
-    echo $e->getMessage(), "\n";
+    echo $e::class, ': ', $e->getMessage(), "\n";
 }

 var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);
@@ -42,7 +42,7 @@ function (): int {
 ?>
 --EXPECTF--
 Test: read function throws exception
-read exception
+Exception: read exception
 bool(true)
 Test: read function is null
 bool(true)
diff --git a/ext/curl/tests/curl_writefunction_throws_abort.phpt b/ext/curl/tests/curl_writefunction_throws_abort.phpt
index 3da2fe8107b..125961c6c66 100644
--- a/ext/curl/tests/curl_writefunction_throws_abort.phpt
+++ b/ext/curl/tests/curl_writefunction_throws_abort.phpt
@@ -25,7 +25,7 @@ function (): int {
 try {
     curl_exec($ch);
 } catch (Exception $e) {
-    echo $e->getMessage(), "\n";
+    echo $e::class, ': ', $e->getMessage(), "\n";
 }

 var_dump(curl_errno($ch) === CURLE_WRITE_ERROR);
@@ -38,7 +38,7 @@ function (): int {
 ?>
 --EXPECTF--
 Test: write function throws exception
-write exception
+Exception: write exception
 bool(true)
 Test: write function is null
 Hello World!
diff --git a/ext/curl/tests/curl_xferinfofunction_throws_abort.phpt b/ext/curl/tests/curl_xferinfofunction_throws_abort.phpt
index fbc28f07ee9..28cab577db5 100644
--- a/ext/curl/tests/curl_xferinfofunction_throws_abort.phpt
+++ b/ext/curl/tests/curl_xferinfofunction_throws_abort.phpt
@@ -26,7 +26,7 @@ function (): int {
 try {
     curl_exec($ch);
 } catch (Exception $e) {
-    echo $e->getMessage(), "\n";
+    echo $e::class, ': ', $e->getMessage(), "\n";
 }

 var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);
@@ -40,7 +40,7 @@ function (): int {
 ?>
 --EXPECTF--
 Test: xfer info function throws exception
-info exception
+Exception: info exception
 bool(true)
 Test: xfer info function is null
 bool(true)