Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127677 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 1C0631A00BC for ; Mon, 16 Jun 2025 14:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750083594; bh=cfwhxbWufdKVB8yBDECqaATfMduQcLLl3IICbtt20j8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=n9FlLd1B+5/F3WG/CJcDG+Nw6Fo8I23l5Sce9GtPpVx2S+7ZISHIxDx5JTsLgE58w uVfN9oEa2hvyTYE+FBu5BryvZyk/tbyfXeuJJ3HsXVMAr/K6bl33XiDOJ0881Hs9Ir 9Hodm9omVf4Sd8mCG2O1sFP8o3WbcQpnzrWexi+oJMziMke1s4cL4xc93woFdL037D CnmZ1fp9+8duCxX/Fb6i6UPSF0H2qPzEPki1Th3U9Emm/lZlqRbmZs9HcwMhmjoVaE KKGbKCZoNkR0p0/581HQMd1xuAR74IOUEkqQP9zO3tLH5vVBCgLo/4K0eg+dW0hoId z93vFi7Wc9CPQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 17B7218006A for ; Mon, 16 Jun 2025 14:19:54 +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=0.0 required=5.0 tests=BAYES_40,DMARC_MISSING, SPF_HELO_NONE,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 supercat.cmpct.info (supercat.cmpct.info [71.19.146.230]) (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:19:53 +0000 (UTC) Received: from smtpclient.apple (fctnnbsc38w-142-162-45-112.dhcp-dynamic.fibreop.nb.bellaliant.net [142.162.45.112]) by supercat.cmpct.info (Postfix) with ESMTPSA id 748225F9F7; Mon, 16 Jun 2025 14:21:43 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.600.51.1.1\)) Subject: Re: [PHP-DEV] Interest in a binary parameter type in PDO? In-Reply-To: <9428eaa3-c339-42df-a6c0-9e59ba7e4bf1@beccati.com> Date: Mon, 16 Jun 2025 11:21:38 -0300 Cc: "Gina P. Banyard" , php internals Content-Transfer-Encoding: quoted-printable Message-ID: <5E49E4ED-EB78-4808-97F8-2C4E969A5F76@cmpct.info> References: <193E3B72-AE8B-4686-8ACB-9CB68E3947BC@cmpct.info> <9428eaa3-c339-42df-a6c0-9e59ba7e4bf1@beccati.com> To: Matteo Beccati X-Mailer: Apple Mail (2.3826.600.51.1.1) From: calvin@cmpct.info (Calvin Buckley) On Jun 16, 2025, at 10:28=E2=80=AFAM, Matteo Beccati = wrote: >=20 > Hi, >=20 > 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. >=20 I think PARAM_LOB and PARAM_BINARY 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).=