Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101680 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99545 invoked from network); 25 Jan 2018 22:12:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2018 22:12:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=samding@ca.ibm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=samding@ca.ibm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ca.ibm.com designates 148.163.158.5 as permitted sender) X-PHP-List-Original-Sender: samding@ca.ibm.com X-Host-Fingerprint: 148.163.158.5 mx0b-001b2d01.pphosted.com Received: from [148.163.158.5] ([148.163.158.5:34110] helo=mx0a-001b2d01.pphosted.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/B6-61119-0365A6A5 for ; Thu, 25 Jan 2018 17:12:00 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w0PM9Yl0059625 for ; Thu, 25 Jan 2018 17:11:57 -0500 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.72]) by mx0b-001b2d01.pphosted.com with ESMTP id 2fqpmjtket-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 25 Jan 2018 17:11:57 -0500 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Thu, 25 Jan 2018 22:11:56 -0000 Received: from us1a3-smtp03.a3.dal06.isc4sb.com (10.106.154.98) by smtp.notes.na.collabserv.com (10.106.227.158) with smtp.notes.na.collabserv.com ESMTP; Thu, 25 Jan 2018 22:11:53 -0000 Received: from us1a3-mail101.a3.dal06.isc4sb.com ([10.146.21.220]) by us1a3-smtp03.a3.dal06.isc4sb.com with ESMTP id 2018012522115353-1128767 ; Thu, 25 Jan 2018 22:11:53 +0000 MIME-Version: 1.0 To: PHP internals Date: Thu, 25 Jan 2018 17:11:54 -0500 X-KeepSent: 7531DE94:7CE1CB39-00258220:0077F23D; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP7 August 18, 2016 X-LLNOutbound: False X-Disclaimed: 52171 X-TNEFEvaluated: 1 Content-type: multipart/alternative; Boundary="0__=8FBB08B3DFE474AD8f9e8a93df938690918c8FBB08B3DFE474AD" Content-Disposition: inline x-cbid: 18012522-6059-0000-0000-0000076A0B81 X-IBM-SpamModules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.423878; ST=0; TS=0; UL=0; ISC=; MB=0.000000 X-IBM-SpamModules-Versions: BY=3.00008428; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000248; SDB=6.00980329; UDB=6.00496958; IPR=6.00759630; BA=6.00005795; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019213; XFM=3.00000015; UTC=2018-01-25 22:11:54 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2018-01-25 18:17:44 - 6.00007961 x-cbparentid: 18012522-6060-0000-0000-00008DB20BE4 Message-ID: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-25_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe Subject: return values of socket_recvmsg From: samding@ca.ibm.com ("Sam Ding") --0__=8FBB08B3DFE474AD8f9e8a93df938690918c8FBB08B3DFE474AD Content-Transfer-Encoding: quoted-printable Content-type: text/plain; charset=US-ASCII The test case ext/sockets/tests/socket=5Frecvmsg.php has following output on x86=5F64: =3D=3D=3D=3D=3D=3D=3D ... 1 Array 2 ( 3 [name] =3D> Array 4 ( 5 [family] =3D> 10 6 [addr] =3D> ::1 7 [port] =3D> 7001 8 [flowinfo] =3D> 0 9 [scope=5Fid] =3D> 0 10 ) 11 12 [control] =3D> Array 13 ( 14 [0] =3D> Array 15 ( 16 [level] =3D> 41 17 [type] =3D> 50 18 [data] =3D> Array 19 ( 20 [addr] =3D> ::1 21 [ifindex] =3D> 1 22 ) 23 ) 24 ) ... =3D=3D=3D=3D=3D=3D=3D This is output by c function:"socket=5Frecvmsg"(/home/work/php/php/ext/sockets/sendrecvmsg.c:21= 4), which returns a struct "executor=5Fglobals.current=5Fexecute=5Fdata". The struct is defined as : (gdb) ptype executor=5Fglobals.current=5Fexecute=5Fdata type =3D struct =5Fzend=5Fexecute=5Fdata { const zend=5Fop *opline; zend=5Fexecute=5Fdata *call; zval *return=5Fvalue; zend=5Ffunction *func; zval This; zend=5Fexecute=5Fdata *prev=5Fexecute=5Fdata; zend=5Farray *symbol=5Ftable; void **run=5Ftime=5Fcache; zval *literals; } * Where do the above output values (line 18-21) store in the struct =5Fzend=5Fexecute=5Fdata ? Thanks, Sam --0__=8FBB08B3DFE474AD8f9e8a93df938690918c8FBB08B3DFE474AD--