This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
setsockopt: treat boolean values as numbers
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>
Fri, 8 Jul 2022 12:07:17 +0000 (21:07 +0900)
committerTony Cook <tony@develop-help.com>
Mon, 11 Jul 2022 01:12:28 +0000 (11:12 +1000)
commitb04606273aff02cd30bd1d7dff2797554474eec8
tree9c0700f0bb8338c8ff7bf255ee975ac140f1c055
parentf192c227eefb2861335e0592230df7f6d7607abf
setsockopt: treat boolean values as numbers

Boolean values used to be treated as string, but this is not desirable.
(thanks to @tonycoz)

Also added tests for this.
pp_sys.c
t/io/socket.t