Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62289 invoked from network); 5 Sep 2011 09:50:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2011 09:50:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=ulf.wendel@oracle.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ulf.wendel@oracle.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.117 cause and error) X-PHP-List-Original-Sender: ulf.wendel@oracle.com X-Host-Fingerprint: 148.87.113.117 rcsinet15.oracle.com Received: from [148.87.113.117] ([148.87.113.117:28744] helo=rcsinet15.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/65-38563-74B946E4 for ; Mon, 05 Sep 2011 05:50:01 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p859ntxC026503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 5 Sep 2011 09:49:57 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p859nsFC003305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 5 Sep 2011 09:49:54 GMT Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p859nn9N019104 for ; Mon, 5 Sep 2011 04:49:49 -0500 Received: from [192.168.2.116] (/91.58.121.228) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 05 Sep 2011 02:49:49 -0700 Message-ID: <4E649B3F.8010203@oracle.com> Date: Mon, 05 Sep 2011 11:49:51 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 CC: "internals@lists.php.net" References: <4E611027.6000103@sugarcrm.com> <4E630027.9030502@sugarcrm.com> <4E649696.8090602@oracle.com> <4E64984C.8020900@sugarcrm.com> In-Reply-To: <4E64984C.8020900@sugarcrm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4E649B45.00A5:SCFMA922111,ss=1,re=-4.000,fgs=0 Subject: Re: [PHP-DEV] Re: mysqli tests breaking From: ulf.wendel@oracle.com (Ulf Wendel) Am 05.09.2011 11:37, schrieb Stas Malyshev: > Hi! > > On 9/5/11 2:29 AM, Ulf Wendel wrote: >> - BC breakage is impossible because behavior is undefined >> - update test, issue gone > > OK, since you say it's not the intended behavior to be relied upon, I'll > remove this check from the test (if nobody beats me to it). No, please don't change it that way. Returning a relevant value for stmt_num_rows() seems a valid feature request that makes perfectly sense to me and is somewhat in line with the vague non-PS documentation of the case. To the end user the message is "undefined, do not rely on". Towards the library implementor the message is "try to make libmysql become better in the future, keep reasonable value in mysqlnd implementation meanwhile". Do something like: if ($IS_MYSQLND) /* TO END USER: no promise on this assumption */ ... Please, do not drop the information of the difference by removal of the assertion. Ulf