Commit 35d98cb6cec for php.net
commit 35d98cb6cecbe7b2f0f2f3721abba245c26e370d
Author: 武田 憲太郎 <takeda@youmind.jp>
Date: Sun Mar 8 04:59:58 2026 +0000
ext/pgsql: Fix preprocessor guard typo that silently disabled a feature
Fix `PQTRACE_SUPPRESS_TIMESTAMPS` guard misspelling in pgsql.stub.php.
The guard has been misspelled as `PQTRACE_SUPPPRESS_TIMESTAMPS`
(three P's) since 7ec8ae12c4b, preventing the
`PGSQL_TRACE_SUPPRESS_TIMESTAMPS` constant from being registered.
close GH-21386
diff --git a/NEWS b/NEWS
index abe3cc9efb8..9f2b1ed85e2 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,10 @@ PHP NEWS
. Fixed re-entrancy issue on php_pcre_match_impl, php_pcre_replace_impl,
php_pcre_split_impl, and php_pcre_grep_impl. (David Carlier)
+- PGSQL:
+ . Fixed preprocessor silently guarding PGSQL_SUPPRESS_TIMESTAMPS support
+ due to a typo. (KentarouTakeda)
+
- Session:
. Fix memory leak due to multiple exception happening during session abort.
(arshidkv12)
diff --git a/ext/pgsql/pgsql.stub.php b/ext/pgsql/pgsql.stub.php
index ec7e2614ce0..2f51bdfca6b 100644
--- a/ext/pgsql/pgsql.stub.php
+++ b/ext/pgsql/pgsql.stub.php
@@ -432,7 +432,7 @@
* @cvalue PGSQL_DML_STRING
*/
const PGSQL_DML_STRING = UNKNOWN;
-#ifdef PQTRACE_SUPPPRESS_TIMESTAMPS
+#ifdef PQTRACE_SUPPRESS_TIMESTAMPS
/**
* @var int
* @cvalue PQTRACE_SUPPRESS_TIMESTAMPS
diff --git a/ext/pgsql/pgsql_arginfo.h b/ext/pgsql/pgsql_arginfo.h
index ab38b6a7a8b..9d8f6369000 100644
Binary files a/ext/pgsql/pgsql_arginfo.h and b/ext/pgsql/pgsql_arginfo.h differ