[php-src] PR #25892: Fix the TypeError of socket_set_option() naming the wrong MCAST_* option

From: Date: Sun, 29 Nov 2026 10:16:25 +0000
Subject: [php-src] PR #25892: Fix the TypeError of socket_set_option() naming the wrong MCAST_* option
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41182@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25892 Author: lacatoire The TypeError of socket_set_option() for a non-array $value always names MCAST_LEAVE_GROUP or MCAST_LEAVE_SOURCE_GROUP, even for MCAST_JOIN_GROUP, MCAST_BLOCK_SOURCE, MCAST_UNBLOCK_SOURCE and MCAST_JOIN_SOURCE_GROUP. The message now names the option given. ```php $socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); socket_set_option($socket, IPPROTO_IP, MCAST_JOIN_GROUP, 1); ``` Before: ... when argument #3 ($option) is MCAST_LEAVE_GROUP, int given After: ... when argument #3 ($option) is MCAST_JOIN_GROUP, int given

« previous php.git-pulls (#41182) next »