| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| @@ -0,0 +1,26 @@ | |||
| --TEST-- | |||
There was a problem hiding this comment.
--- a/ext/sockets/tests/socket_cmsg_space_overflow_64bit.phpt
+++ b/ext/sockets/tests/socket_cmsg_space_num_range_64bit.phpt
@@ -7,19 +7,14 @@
if (PHP_INT_SIZE < 8) {
die('skip 64-bit only');
}
-if (PHP_OS_FAMILY === 'Windows') {
- die('skip SCM_RIGHTS not available on Windows');
-}
-if (!defined('SCM_RIGHTS')) {
- die('skip SCM_RIGHTS not defined on this platform');
-}
?>
--FILE--
<?php
+// $num is range checked before the level/type pair is looked up
try {
- socket_cmsg_space(SOL_SOCKET, SCM_RIGHTS, PHP_INT_MAX);
+ socket_cmsg_space(SOL_SOCKET, 0, PHP_INT_MAX);
} catch (Throwable $e) {
- echo $e::class, ': ', $e->getMessage(), "\n";
+ echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
Sorry, something went wrong.
There was a problem hiding this comment.
maybe do not pay attention to the last line change though now I realise ..
Sorry, something went wrong.
There was a problem hiding this comment.
Done. Amended; forgot to add co-authored, feel free on merge.
Sorry, something went wrong.
|
Thanks ! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes CI failures caused by #23345:
Ref: https://github.com/php/php-src/actions/runs/32253251276/job/96068998524?pr=23378