Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121587 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 45245 invoked from network); 5 Nov 2023 12:32:06 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Nov 2023 12:32:05 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 235671804D5 for ; Sun, 5 Nov 2023 04:32:04 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 5 Nov 2023 04:31:58 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B1FB1320027A; Sun, 5 Nov 2023 07:31:56 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 05 Nov 2023 07:31:57 -0500 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:sender:subject:subject:to:to; s=fm1; t= 1699187516; x=1699273916; bh=KvUV2l63wlqe3mv8eIgiEgOEihN2+GMlh6U f3K4rXpE=; b=g1LlrZbOm+qjAol87ITCRbCGphkmdM0AULIh2eF+SNTQ29uG642 olCn6oNHZtpwrCQknD+/hH4EVyFcvRxIjtiLpWlkttSJCpy0LpysSVdz+VKyC2YY cy6qhv2vCXIuVfQaB60JRgKEDEBoRGTuim/YBLW0XtGokkUjSbuQMA2zVQQFMRnh SmLsfo+AMXii4UD1vKd58SmX47KsN4HTCAYesBYeMh2Cl/crsnylR76rE1eHCY+P jDFhau6W120WGkP0605GirPMQXIsB6VoBo7zFrXHVzrTFBy7d/JvJVSZAIRVtizr tUPLA1XlL3YNdFraGV9ermR8QaK1rKLcrEQ== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1699187516; x=1699273916; bh=KvUV2l63wlqe3mv8eIgiEgOEihN2+GMlh6U f3K4rXpE=; b=miuiiYtzPooiy9Pvjf42wPfjQx+ciGfVlEMDXqtJsy7K9oF8oyB UmIBr/Wx7ASCXh5PAR7i6ElsJJsyp2xb/B7B/a6P4KtdB2GQ8wj3lg+lkjgIHTv1 PjZ38SDKHElpQkaNrgzl6nTsep4l4Gm57b8EUlWS/oe4GYCnLIhEFGlFO5dkTLBO 9UjdgH90kj1pscJkbMoGjDeA5WfwoicPhKfWh/3NCckE2tot7s7suR+ZAJ+f0V2G xZF6WgVQ2nOJAgp03KHul8NSGj1iW5nppyPknOQ+0TgcgIYGAK9npr2EwphfiU0S Mw17bvGMS4YIIGI6/cTKPBk+nrPo8hi2z3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudduvddggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhvegjtgfgsehtjeertddtvdejnecuhfhrohhmpeforght thgvohcuuegvtggtrghtihcuoehphhhpsegsvggttggrthhirdgtohhmqeenucggtffrrg htthgvrhhnpeffleevtdfghfeggeefgeejkedvheehhfdthfegheeguddtvdfhtedvjeet ieeiveenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhphhhprdhnvghtpdgsvggttg grthhirdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepphhhphessggvtggtrghtihdrtghomh X-ME-Proxy: Feedback-ID: i6f4c46c2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Nov 2023 07:31:55 -0500 (EST) Message-ID: <129fb16f-8d38-4951-b84d-f25799158e2b@beccati.com> Date: Sun, 5 Nov 2023 13:31:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: it To: Saki Takamachi References: <734FB3C6-EBE6-4F35-8738-436AF7D8B161@sakiot.com> Cc: PHP internals In-Reply-To: <734FB3C6-EBE6-4F35-8738-436AF7D8B161@sakiot.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX From: php@beccati.com (Matteo Beccati) Hi Saki, Il 04/11/2023 07:59, Saki Takamachi ha scritto: > Hi internals, > > As shown in the following issue, the behavior of `PDO::PARAM_XXXX` is inconsistent and I would like to fix this. > https://github.com/php/php-src/issues/12603 > > First, I tried fixed pdo_pgsql. > https://github.com/php/php-src/pull/12605 > > Eventually I plan to make similar changes to all bundled pdos. > > What do you think about these? If there is a reason for the current implementation that should not be changed, it would be very helpful if you could tell me why. I'm sure there are several bugs w/ types in PDO. Perhaps some can be fixed, but I would be very careful touching that part. The last time I tried to fix the PDO_PARAM_INT behaviour on pdo_pgsql I broke Laravel and surely many other projects. I'm afraid that most libraries and projects have now worked around some of the bugs and trying to fix them is going to cause BC problems, or generate a whole new series of bugs and incompatibilities. See: https://bugs.php.net/bug.php?id=80892 https://github.com/php/php-src/pull/6801 Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/