Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101687 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25413 invoked from network); 26 Jan 2018 06:58:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jan 2018 06:58:29 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.177 as permitted sender) X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.223.177 mail-io0-f177.google.com Received: from [209.85.223.177] ([209.85.223.177:45907] helo=mail-io0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2A/42-04233-391DA6A5 for ; Fri, 26 Jan 2018 01:58:27 -0500 Received: by mail-io0-f177.google.com with SMTP id p188so10605661ioe.12 for ; Thu, 25 Jan 2018 22:58:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VqSN+nwVTA7FlNOL3vEhqrTF0NDo4Jztp6gl093Pc90=; b=UaHcSlXX0j90TYRX+p6SNOJQJOg5isXn3y4ggOEcs847uJeIZrsUixy9pqDHdgTrMp uQzHvmA9YYZZoKPCUnxGN4ADb9fNoy2TwFsOYBkYRnAX0HtALoT+CLOIV2ybTOwe/fVH 6/gNK8oQrOqtjXRW81uLYnCn5ar2WQpfNfrz/DxXcGk0BtwLRrv15h2ekoQNkp4QKbQ/ cN5pGDsRLhTzyE09lkfyCOD6slbgQWgyjieAd/MbeovsgrYt5Mbg3pCpp+Nem9hD/dp6 1wZWWcCV0G33qBzHMrDLpmyHW4rtZ7d+fRq3IEzqRhx0wvPmhSbXemEFh9AWMaozmnic tafQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VqSN+nwVTA7FlNOL3vEhqrTF0NDo4Jztp6gl093Pc90=; b=EwvCuY91BsNYgFzI5VCyMA3WbnScx02ysxLQ0HLDoqiMbjjebqLoIYK3S5QMSztWyL IXrflHDSTcKCYc3iNj6msYCuoQEdqLGgLhmU1iLkMD3BPOx5vrkxsjHbPAmAkmegBPbK mHInjq9+l+orPnijfzgtrLk3eGOlscI3yBxrW4A3LOX8zZRWOpJN20CwH/08bKgf/Bwt hKFsyiB09E30a2Gt1RiO7sV33CIU0c9n7lrkjKrwM6IaqzYJE4bKc0VKGnxqPSe/XANx inCPEbwvKsTvAwF+RIt5S6WxrwVZgu06UaLntzcglCvrfBJxCPK4OHgtbUnLnD1fpT+q OXKw== X-Gm-Message-State: AKwxyteEUJV6AtL6/IOKFYcjU2H4N1kkscRfA39U//jiHVzzaudzDUzC o8LUR0K0fCalKuXZH7mx47Aojz+FIB/68yT2uCQ= X-Google-Smtp-Source: AH8x226nGOnWz45uIKm2npy8UXUllJuRdUEZ+jFg07xVbheP66X6R00lxkw7Sn5rbzK9TDx58kcT5DYsNP18pqRFrPg= X-Received: by 10.107.205.196 with SMTP id d187mr637797iog.42.1516949904258; Thu, 25 Jan 2018 22:58:24 -0800 (PST) MIME-Version: 1.0 Sender: kalle.php@gmail.com Received: by 10.107.163.79 with HTTP; Thu, 25 Jan 2018 22:58:23 -0800 (PST) In-Reply-To: References: Date: Fri, 26 Jan 2018 07:58:23 +0100 X-Google-Sender-Auth: s9vFZP0hUToy-X0_NJblrBohqag Message-ID: To: Sam Ding Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] return values of socket_recvmsg From: kalle@php.net (Kalle Sommer Nielsen) Hi Sam 2018-01-25 23:11 GMT+01:00 Sam Ding : > > The test case ext/sockets/tests/socket_recvmsg.php has following output > on x86_64: > > ======= > ... > 1 Array > 2 ( > 3 [name] => Array > 4 ( > 5 [family] => 10 > 6 [addr] => ::1 > 7 [port] => 7001 > 8 [flowinfo] => 0 > 9 [scope_id] => 0 > 10 ) > 11 > 12 [control] => Array > 13 ( > 14 [0] => Array > 15 ( > 16 [level] => 41 > 17 [type] => 50 > 18 [data] => Array > 19 ( > 20 [addr] => ::1 > 21 [ifindex] => 1 > 22 ) > 23 ) > 24 ) > ... > ======= > This is output by c > function:"socket_recvmsg"(/home/work/php/php/ext/sockets/sendrecvmsg.c:214), You can find the implementation of socket_recvmsg() in the ext/sockets directory here: http://git.php.net/?p=php-src.git;a=blob;f=ext/sockets/sendrecvmsg.c;h=7b9c4e8ad357b73b514dc5feb8dc8d9ca215126b;hb=HEAD#l210 -- regards, Kalle Sommer Nielsen kalle@php.net