We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05d50e commit 279983dCopy full SHA for 279983d
ext/sockets/multicast.c
@@ -293,8 +293,7 @@ int php_do_setsockopt_ip_mcast(php_socket *php_sock,
293
goto dosockopt;
294
295
case IP_MULTICAST_LOOP:
296
- convert_to_boolean(arg4);
297
- ipv4_mcast_ttl_lback = (unsigned char) (Z_TYPE_P(arg4) == IS_TRUE);
+ ipv4_mcast_ttl_lback = (unsigned char) zval_is_true(arg4);
298
goto ipv4_loop_ttl;
299
300
case IP_MULTICAST_TTL:
@@ -358,8 +357,7 @@ int php_do_setsockopt_ipv6_mcast(php_socket *php_sock,
358
357
359
360
case IPV6_MULTICAST_LOOP:
361
362
- ov = (int) Z_TYPE_P(arg4) == IS_TRUE;
+ ov = (int) zval_is_true(arg4);
363
goto ipv6_loop_hops;
364
case IPV6_MULTICAST_HOPS:
365
convert_to_long(arg4);
0 commit comments