Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127680 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 5C9AB1A00BC for ; Mon, 16 Jun 2025 14:35:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750084440; bh=74NF0g8K4HFIG64CwZg7NN2v9gVg5BGIBreBCvnySUA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AcoJj/3cjtegJwp9ML0Fe5ebpRHgnc6ru4BK50XZvv20Kvy2GXV0pJt0Dh1VYdhFc JYhNADwU1beLYbfVmX0dW9dNipftgIIa9CiDQNosTRmf/pN4kfeYHtBT8Ch/lA6r/A ZNpWWN4u5Es6Bas78pr+7dR9EsAyv6JVH91M4ptCmJ0IB1AmqNbAqz5SEELnOeJnHu O8oBLSEI8CC4ja7DrA/urewITCvz3usNVt4Jx1qek24eaLXoCLQ3vQO8+dZWu2kQhT Wz6KBqWwW9/XMWj1tVeNv8gWuB3UIp1aWRlWOWMHcraFKTe51eEgqC05c4zq34KmeW aq0ueiPz+MplA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 18F3A180081 for ; Mon, 16 Jun 2025 14:33:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 16 Jun 2025 14:33:58 +0000 (UTC) Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 2ACC411401B6; Mon, 16 Jun 2025 10:35:57 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Mon, 16 Jun 2025 10:35:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beccati.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1750084557; x=1750170957; bh=neAIh3iFCdH+6/OCjD4uI9Q2WOKuQM1Z554omjcGekE=; b= Jl466fRoptNo0VeK35+tHU66UVPvOnkWupTPtCdDJJc4kHnNy9TNOdHqYlKljOmt oT8bxeTgJBcZ/RhEYZNQJsV3KTHGghQA1GttxLrgHHm4DKVmyGj4dRQnJDrW9hHt 2hmO5e2Z4Z5DyMknCZwe+xZDE5Yef2Jt7kts+psGxWFEPQ99av3hbnxsjcgV8VWG q426T8Lz2RCrMBNaFh1b+PyCth5ruoepbFarvNr0Y6GZ4Z10N34OJMGxHL5F0zZC aGdrsdfem43jCaKZf/H5O0r1KXnu3EiKyZc1s6KWJwhEwH8yK6aq+z0V85ZxZOqr b3w6d35M1YtCZquGXUkJYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1750084557; x= 1750170957; bh=neAIh3iFCdH+6/OCjD4uI9Q2WOKuQM1Z554omjcGekE=; b=I mv1ZkJujbmCQfCTWIceTR4sa9uy23VqlEXVqCS+YRwpW7mlCv+oiusQCrIziIvTp t06Ekp9SWF5TlYypwMPv2DKsnxhd6ocqp/Nmk0ga7T88T/KpIIIsy8ex4A2ILLc6 eyaxxaSQJ+pHxHUgTjKu7StXH4JFvQUEsxhMozKTfD2finrDfDluLm4c0rakLgKf Qcq/jw4JvNSRQbK4WMCLNM1FNzDORCbEyv236N09LnxMXL68pi1XJMBgz/mG/ECT GNxD7k/4ADrqwGzRiKi1a8TtqOhTLTnFYNWZUahXBqrTBk4HJwqYMzJoSjEeMwZ1 421vYrwrt4GSFxAsnYdFw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddvieekfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddv jeenucfhrhhomhepofgrthhtvghouceuvggttggrthhiuceophhhphessggvtggtrghtih drtghomheqnecuggftrfgrthhtvghrnhepleeutdfftedviefhffektdfhleehhfejteeh kedtueekveegffehffeitddvleegnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpsg gvtggtrghtihdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpehphhhpsegsvggttggrthhirdgtohhmpdhnsggprhgtphhtthhopeefpd hmohguvgepshhmthhpohhuthdprhgtphhtthhopegtrghlvhhinhestghmphgtthdrihhn fhhopdhrtghpthhtohepihhnthgvrhhnrghlshesghhpsgdrmhhovgdprhgtphhtthhope hinhhtvghrnhgrlhhssehlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i6f4c46c2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Jun 2025 10:35:55 -0400 (EDT) Message-ID: <3504c6ee-fc7a-4424-96d5-a60eb030628f@beccati.com> Date: Mon, 16 Jun 2025 16:35:53 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] Interest in a binary parameter type in PDO? To: Calvin Buckley Cc: "Gina P. Banyard" , php internals References: <193E3B72-AE8B-4686-8ACB-9CB68E3947BC@cmpct.info> <9428eaa3-c339-42df-a6c0-9e59ba7e4bf1@beccati.com> <5E49E4ED-EB78-4808-97F8-2C4E969A5F76@cmpct.info> Content-Language: it In-Reply-To: <5E49E4ED-EB78-4808-97F8-2C4E969A5F76@cmpct.info> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: php@beccati.com (Matteo Beccati) Hi Calvin, On 16/06/2025 16:21, Calvin Buckley wrote: > On Jun 16, 2025, at 10:28 AM, Matteo Beccati wrote: >> >> Hi, >> >> as mentioned in https://github.com/php/php-src/pull/15949 I still think that PARAM_LOB can safely be used as identifier for binary data, as pdo_mysql and pdo_pgsql do. >> > > I think PARAM_LOB and PARAM_LOB are orthogonal. > > Using i.e. ODBC as an example: > > +----------+------------+ > | string | binary | > +---------+----------+------------+ > | LOB | SQL_CLOB | SQL_BLOB | > +---------+----------+------------+ > | not LOB | SQL_CHAR | SQL_BINARY | > +---------+----------+------------+ > > Especially since LOBs may have different semantics (i.e. needing to be > treated as a stream). In an ideal world, yes. But I fear that ship has sailed, as the most used drivers have been using PARAM_LOB for binary fields since PDO has been designed, as far as I know. Perhaps we can make that clear by aliasing PARAM_BINARY to PARAM_LOB and fix the implementation for broken drivers? Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/