[php-src] master: socket: use zend_result instead of int type
| From: | Gina Peter Banyard | Date: | Thu, 12 Nov 2026 22:27:09 +0000 |
| Subject: | [php-src] master: socket: use zend_result instead of int type | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-143666@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-11-12T22:27:01Z
Commit: https://github.com/php/php-src/commit/4f3d9508be9231940b946a618e8bda24fbbfbb1b
Raw diff: https://github.com/php/php-src/commit/4f3d9508be9231940b946a618e8bda24fbbfbb1b.diff
socket: use zend_result instead of int type
Changed paths:
M ext/sockets/multicast.c
Diff:
diff --git a/ext/sockets/multicast.c b/ext/sockets/multicast.c
index 0afacd2ecce3..92db6d03d507 100644
--- a/ext/sockets/multicast.c
+++ b/ext/sockets/multicast.c
@@ -81,7 +81,7 @@ zend_result php_string_to_if_index(const char *val, unsigned *out)
static zend_result php_get_if_index_from_zval(zval *val, unsigned *out)
{
- int ret;
+ zend_result ret;
if (Z_TYPE_P(val) == IS_LONG) {
if (Z_LVAL_P(val) < 0 || (zend_ulong)Z_LVAL_P(val) > UINT_MAX) {