Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61006 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38054 invoked from network); 27 Jun 2012 18:26:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2012 18:26:49 -0000 Authentication-Results: pb1.pair.com header.from=christopher.jones@oracle.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=christopher.jones@oracle.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain oracle.com designates 141.146.126.227 as permitted sender) X-PHP-List-Original-Sender: christopher.jones@oracle.com X-Host-Fingerprint: 141.146.126.227 acsinet15.oracle.com Received: from [141.146.126.227] ([141.146.126.227:29545] helo=acsinet15.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/20-36936-7605BEF4 for ; Wed, 27 Jun 2012 14:26:48 -0400 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q5RIQgO9013300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 27 Jun 2012 18:26:43 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q5RIQfWO004594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Jun 2012 18:26:42 GMT Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q5RIQf7l020964; Wed, 27 Jun 2012 13:26:41 -0500 Received: from [130.35.70.154] (/130.35.70.154) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 27 Jun 2012 11:26:41 -0700 Message-ID: <4FEB5060.7050301@oracle.com> Date: Wed, 27 Jun 2012 11:26:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: OISHI Kazuo CC: internals@lists.php.net References: <4FAF1EE5.5010409@sugarcrm.com> <4FDA8833.1040408@gmail.com> <874nqdnnas.fsf@molech.giraffy.jp> <4FE364D8.9000204@oracle.com> <8762ajq0vp.fsf@molech.giraffy.jp> <4FEA5059.2050009@oracle.com> <87k3ytfleo.fsf@molech.giraffy.jp> In-Reply-To: <87k3ytfleo.fsf@molech.giraffy.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet21.oracle.com [156.151.31.93] Subject: Re: [PHP-DEV] bug 54547 From: christopher.jones@oracle.com (Christopher Jones) On 06/26/2012 09:06 PM, OISHI Kazuo wrote: >> Does this need an architecture specific SKIPIF? See the mention of >> PHP_INT_SIZE on http://qa.php.net/write-test.php > > Like this? > =============================================================== > --SKIPIF-- > if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only"); > ?> > =============================================================== > > Yes - if your test is for 64 bit platforms. If other conditions affect the output (endianess etc?) then you should add other tests to the SKIPIF section. Can you also create another PHPT file for 32 bit platforms, if there isn't one already? > I'm afraid I may miss your point. > >>>> Can you add some phpt tests for all the cases you've raised? > > Could you tell me your intention of this question? So that next time this code changes any breakage is obvious. > > >> I don't know whether to suggest adding an XFAIL for 5.4, or whether to >> suggest changing the expected output. This would depend on whether >> there is likely to be any code change to 5.4 or not. > > Sorry, I cannot understand what you say, but PHP code changes > from 5.4.3 to 5.4.4 for #54547 and #62097 are: > > https://github.com/php/php-src/commit/9344bf193c6e35c8706923953f3e63bb01cc05ed > https://github.com/php/php-src/commit/acd711685a592c52be200e248154283c6c49c9f8 > > zendi_smart_strcmp() and is_numeric_string[_ex]() are changed. > Any test you create for PHP 5.4 need to either: 1. Pass, or 2. have an XFAIL section I don't know whether or not PHP 5.4 is going to be changed. If it is not going to be changed, then you should do #1. Chris -- christopher.jones@oracle.com http://twitter.com/#!/ghrd