Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130704 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 8870C1A00BC for ; Mon, 27 Apr 2026 18:10:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1777313414; bh=wkGl+iRCPTfHd9fouR6XlCddOhlhAHfE1SBHiVx/e9Q=; h=Reply-To:From:Date:Subject:To:From; b=Dres90M9wGxqPLgetoMDu1j/esxH076Chdxi8Sd+MSy/RZUjkm9pzfIKmevmG+XtN loZNv0wDngQ5CH2/6eBfTKFyR1NjjqdVZms7yygkDNVZ5BlESPSXDmvEnXuybcW4Ds IX+dH/IakLj2O81UpXDxf9xEW/ZH9B6lw834c9EAFEAOvqttTZCSqG98+ipWNhNPU8 U6sPyrsjEJXdWF3CdnWehPkU2F8f14dJoMharOLR5DKHphnZls/B2TOSXTgjQQgx2m 5t7dhUacrfRv+biK/6TPLKRN1CYVVS5+4pkvpmGWwFEwCb2SWYgrSJSuzD0upUkLZy 01jBzPba5XJQA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8FE6A180068 for ; Mon, 27 Apr 2026 18:10:13 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, FREEMAIL_REPLYTO,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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, 27 Apr 2026 18:10:10 +0000 (UTC) Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-69486849137so4239006eaf.3 for ; Mon, 27 Apr 2026 11:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777313404; cv=none; d=google.com; s=arc-20240605; b=eQSsdXeTGfUdq/aywXGc+5JDZu+lqJXb4vkIMkc6BViq7rPt9cOwu/lETHYEU8/V+p tYvDmiu6P3EdtCmgglCm+RN2RxYcIHO+mzff/3ntiV1mF98Y8nf+5cxr70wpqcpX0hzq 4n/isDKmIm6Vx/kZPBL6zy6EQ+XttvIQyVmcC1nrjYj8LZ9G69zGZGuJzAOq7w2nSFTV /8BmU9dKoPfLsmbF84DfTl2YhrekpxeuFQDerAFy7EUBUHNrCuteUieHpYQ8Itozr5jk 3pix1eGvsxhEGFpZb/fe98Qu3DLz/oqUFzJlhjO+O8Gss7/g1XJNjji1fRt7R6t6IV/f 4HEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:reply-to:mime-version :dkim-signature; bh=wkGl+iRCPTfHd9fouR6XlCddOhlhAHfE1SBHiVx/e9Q=; fh=PwvV1jWZOR90rDIG/6XexqaHJyAFBTdnFVhsS64qdEQ=; b=FtslhFWcxV4PKYLPYcz+l+fSzfAIFucOd4ynI2uMQ83Ls4XxksbSQ6085XUjfgCmTe s/sicpA1Vz9dSI+wB5RNQ/1Sx+o9hM0eTe9NlUWzv8km/jaXjBUOcJ1ZHSVmPDhwAjCd ixV3YP4JpLF6qkw9lHE6O/qkaJqAuHuIxiBZRv6AYewVid1TBv8KTB9abUufP/utZrF0 stVtTrZ6dHhz/1XB+n74e9vZepI5AVf0I0Z7su4BllMd4VkapGw+29TTXJIAGC6lDtku YmZ2+x0ViP1Ji9kKnCY4E5QqSH3xrVOZSUDghkC5qNFgA0KBaRQJLXYKusnA7gUFgajs 3vXw==; darn=lists.php.net ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777313404; x=1777918204; darn=lists.php.net; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=wkGl+iRCPTfHd9fouR6XlCddOhlhAHfE1SBHiVx/e9Q=; b=IqgksQWcWU7Wz0omwU800rVDPMToV4/QjD9CG4vJLgFNwRCTBk/1Xdlqb5Yqa8kHdH +ZcAbP1A2fsG6hwr9hvfCA2vZqL6P/i0C/mNA0NQXCvsGrAvUY3p/V2i9WhMZUk1yKXe VzzFynuFT+8NMYzS5nGT6zZgliwHpV1Gi7xTEHxPxbfcawnlbj8twq0Fng/OSnSxdNVb sLMhVpjjzhQvpnoBCSasviJ+mzG9A2mbXvtCi27yicCGLHaaMnHvQ+oF+yN3hqDBV1Bs d69MetFUfVHx6YviWkl3BuMTv37+oVpUNOflbYXgwwswBIjP6a5nNOyilFvpNXb1nX5p F6BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777313404; x=1777918204; h=to:subject:message-id:date:from:reply-to:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wkGl+iRCPTfHd9fouR6XlCddOhlhAHfE1SBHiVx/e9Q=; b=c7S1H5WCo9BheKKEam+f7GzrbNd0PaVvx/J0b3RFFQGsYVX9M8rUQfGxWT/wwed6hJ LHkkAYW0BQZCHfn3oPMkneXzjuDl6+b3lderNIeTaIVMJgRJCPm/DOpkcNfzrawi7K0w kKEMjXbx2eB/GoexsCR8MPxJobVfGXamFZbE+OLVHWzTbe5KUu8ebcHIhh/psXqn73nj UUcIRwiZoPEAYI3S8/LTO3gBYmEXdJgeWYlfgXkexUVLbSlzonaqdMc+cj3kppimBAFJ eFHx8Vj3d0HQ+yv7CHkM33X42Y4QToRqT7HnvnCuDpgZXB+oUPDKp48FxEsvUv4ahLUw dT6g== X-Gm-Message-State: AOJu0YwKUFTtXY9FlFjCFZ2ndvO9bhwjSKAZOkdMKdc+JvaIH6egj6ts x0graVw+F4LF5hbSQTO43t86WIvHN7c2fVpXi9WQF6Gz97R8Y4GY/6XpSX2SBVAcTbtfMYDTG7w wwBHdxxNMq+iXIZvtMIm/i9X0xm1+0kjoZL9o X-Gm-Gg: AeBDievLqD1XGE4NJJCSFnVJzRlOjNU8VtWU2tyeV2M28ZNFCginI5LwwhjWqPoj2a3 v5JNed7w9fnpD+/fETJOEC8EMKfW82MN+taUnZAqHVDac8ACNqjMx08nZIgrm9x99WYjzRG9cTR qsj6QVqUnBVqcJKlHqprg0S0j9ieN0gtdyxYSIBAJBZUNGpiEsyHs+nUlMWwXLdDpk0sCp0R49U u5d0Ppg+rkNSnLB99M/riN31YBqio7iBu+UCT8rYwxvbqfF2GH/0x45Cxe6MNjnPh5UjeTOmHyk 6FagWa5uefB+h1Moii9YIaQjUqjA4AK0gQR1V/8tUCDAvELTkftcryaJS3no7A== X-Received: by 2002:a05:6820:2218:b0:695:c0e2:38e8 with SMTP id 006d021491bc7-6965ba18fb0mr51516eaf.32.1777313404467; Mon, 27 Apr 2026 11:10:04 -0700 (PDT) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Reply-To: erictnorris@gmail.com Date: Mon, 27 Apr 2026 14:09:48 -0400 X-Gm-Features: AVHnY4JIBLG0ujtFIf1TDuTst8orszjpP5zwy1-vApQ8QzNVH91EcDtfMfagGlw Message-ID: Subject: [PHP-DEV] `COM_RESET_CONNECTION` support in `mysqlnd` To: PHP internals Content-Type: text/plain; charset="UTF-8" From: eric.t.norris@gmail.com (Eric Norris) Hello everyone! I've created a PR to send `COM_RESET_CONNECTION` in `mysqlnd` when reusing a persistent connection [1]. This ensures that the connection is in a blank-slate state, and not possibly in a transaction or operating with any variables set from a previous request, etc. Tim had opened a GitHub issue for this a while back [2]. A user commented there to point out that `COM_RESET_CONNECTION` is supported in MySQL 5.7.3+ and MariaDB 10.2+, and so my implementation would necessitate at least those versions as a minimum supported version. Personally, given that both of these versions are EOL, this feels acceptable, but I'm curious what others think. Notably, if we were to implement configuration for this we'd likely need to introduce yet another INI variable; I have an impression that PHP maintainers are somewhat skeptical of adding new INI settings. Secondly, I'm curious what people think about implementing this in both PDO *and* `mysqlnd`. In PDO, we can replace the liveness check with this command, which would act as both a liveness check and a reset for no additional round-trip cost. Please take a look and let me know what you think. I would like to think this is something that is possible without submitting an RFC, but of course if people feel that is necessary I'm able to go that route. Thanks! [1] https://github.com/php/php-src/pull/21857 [2] https://github.com/php/php-src/issues/20225