Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18293 invoked from network); 18 May 2017 09:18:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2017 09:18:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.123.236 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.123.236 box.beccati.com Received: from [176.9.123.236] ([176.9.123.236:53437] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/8D-21791-4D66D195 for ; Thu, 18 May 2017 05:18:13 -0400 Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id 190C720026E; Thu, 18 May 2017 11:18:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1495099089; bh=xc0gdGC+1b2+Ukm8/+/n9vozu6EjH2Mp4BQQAhH23Po=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Rq147OEgUNn8/sho57IMMDiVyuLNCDKkFeqcfyundHOvDSwiqd8H4Bc5ndfZ4z5G6 lCF7uOFQUlgADJJFq3UHH2ktwQc5qqNgZn9BK9Z+D2n3Yooa6rMpYAo7s/k9UEPzB2 BrTngqCdlibR66ao9pdnNjck3fSf6aGoI2tzPWHxSuxJpLtnH40POcwBtFx/qPtjTL rejn9OPZsdsdw3AP8QRuAvDPHt1uBR15Zh9WGgB42hDEvPIUEkqHMduw6V0MEF4XnW E+810co3Uq+yqdmMap8bHLUbV2ERqu+byJ2AREFCAv8a81RUOBVLHTf56G5+ga/vWK GmmC5Qsx6T7Kg== To: Dorin Marcoci , internals@lists.php.net References: <002801d2cd97$63921700$2ab64500$@marcodor.com> <000901d2cfad$a0349c60$e09dd520$@marcodor.com> Message-ID: <742d91b6-1435-ca97-16dc-9e54295dfcbd@beccati.com> Date: Thu, 18 May 2017 11:18:04 +0200 MIME-Version: 1.0 In-Reply-To: <000901d2cfad$a0349c60$e09dd520$@marcodor.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PDO Parameter types // PDO::PARAM_AUTO From: php@beccati.com (Matteo Beccati) On 18/05/2017 10:06, Dorin Marcoci wrote: >> What are you referring to? > > I wrote "internally", meaning in C driver code, not in PHP. > When a bool ZVAL variable is converted to a string ZVAL. > Your example is irrelevant. Ok, I think I got it. But the example shows that the pgsql driver is working, so maybe you could have a look at how it works. e.g. https://github.com/php/php-src/blob/master/ext/pdo_pgsql/pgsql_statement.c#L382 Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/