[php-src] PR #21892: ext/odbc: Get the exact length for quoted connection string components
| From: | NattyNarwhal | Date: | Mon, 27 Apr 2026 16:48:31 +0000 |
| Subject: | [php-src] PR #21892: ext/odbc: Get the exact length for quoted connection string components | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35917@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21892
Author: NattyNarwhal
Minor optimization: strlen has to scan the string anyways. We might as well do it ourselves to look
for the characters that need quoting instead of assuming the worst, and save a little bit of memory.