Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101630 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19781 invoked from network); 19 Jan 2018 21:04:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2018 21:04:15 -0000 Authentication-Results: pb1.pair.com header.from=samding@ca.ibm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=samding@ca.ibm.com; spf=pass; 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:33054] helo=mx0a-001b2d01.pphosted.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/3F-12394-94D526A5 for ; Fri, 19 Jan 2018 16:04:09 -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 w0JL1S25114333 for ; Fri, 19 Jan 2018 16:04:05 -0500 Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.73]) by mx0b-001b2d01.pphosted.com with ESMTP id 2fkqyurqg1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 19 Jan 2018 16:04:05 -0500 Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for from ; Fri, 19 Jan 2018 21:04:04 -0000 Received: from us1a3-smtp02.a3.dal06.isc4sb.com (10.106.154.159) by smtp.notes.na.collabserv.com (10.106.227.90) with smtp.notes.na.collabserv.com ESMTP; Fri, 19 Jan 2018 21:04:02 -0000 Received: from us1a3-mail101.a3.dal06.isc4sb.com ([10.146.21.220]) by us1a3-smtp02.a3.dal06.isc4sb.com with ESMTP id 2018011921040126-1091340 ; Fri, 19 Jan 2018 21:04:01 +0000 MIME-Version: 1.0 To: internals@lists.php.net Date: Fri, 19 Jan 2018 16:04:02 -0500 X-KeepSent: 84C52D9F:127868A7-0025821A:007326EA; type=4; name=$KeepSent X-Mailer: IBM Notes Release 9.0.1FP7 August 18, 2016 X-LLNOutbound: False X-Disclaimed: 59255 X-TNEFEvaluated: 1 Content-type: multipart/alternative; Boundary="0__=8FBB0889DFE0A07A8f9e8a93df938690918c8FBB0889DFE0A07A" Content-Disposition: inline x-cbid: 18011921-3107-0000-0000-000004B1D02D 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.00008406; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000247; SDB=6.00977444; UDB=6.00495572; IPR=6.00757337; BA=6.00005786; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019133; XFM=3.00000015; UTC=2018-01-19 21:04:03 X-IBM-AV-DETECTION: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused X-IBM-AV-VERSION: SAVI=2018-01-19 16:41:01 - 6.00007931 x-cbparentid: 18011921-3108-0000-0000-0000820703A0 Message-ID: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-19_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe Subject: Big_Endian problem From: samding@ca.ibm.com ("Sam Ding") --0__=8FBB0889DFE0A07A8f9e8a93df938690918c8FBB0889DFE0A07A Content-Transfer-Encoding: quoted-printable Content-type: text/plain; charset=US-ASCII Hi all, The test case ext/standard/tests/general=5Ffunctions/bug72300.phpt is failed on s390x. The function "ignore=5Fuser=5Fabort" returns "256" on s390x, and "1" on x86= =5F64 after "ignore=5Fuser=5Fabort" is set to true; The root reason is because of Big=5FEndian on s390x. Here is the C code: ext/standard/basic=5Ffunctions.c b/ext/standard/basic=5Ffunctions.c:5641 old=5Fsetting =3D (unsigned short)PG(ignore=5Fuser=5Fabort); // php=5Fcore=5Fglobals.ignore=5Fuser=5Fabort, "x /2b" show= s its value : "0x01 0x00" on both platforms Does PHP interpreter support Big=5FEndian? Are there any existing macros/functions to deal with Big/Little Endian? Thanks, Sam Ding --0__=8FBB0889DFE0A07A8f9e8a93df938690918c8FBB0889DFE0A07A--