Skip to content

Commit 35d98cb

Browse files
KentarouTakedadevnexen
authored andcommitted
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 7ec8ae1, preventing the `PGSQL_TRACE_SUPPRESS_TIMESTAMPS` constant from being registered. close GH-21386
1 parent 0acde11 commit 35d98cb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ PHP NEWS
99
. Fixed re-entrancy issue on php_pcre_match_impl, php_pcre_replace_impl,
1010
php_pcre_split_impl, and php_pcre_grep_impl. (David Carlier)
1111

12+
- PGSQL:
13+
. Fixed preprocessor silently guarding PGSQL_SUPPRESS_TIMESTAMPS support
14+
due to a typo. (KentarouTakeda)
15+
1216
- Session:
1317
. Fix memory leak due to multiple exception happening during session abort.
1418
(arshidkv12)

ext/pgsql/pgsql.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@
432432
* @cvalue PGSQL_DML_STRING
433433
*/
434434
const PGSQL_DML_STRING = UNKNOWN;
435-
#ifdef PQTRACE_SUPPPRESS_TIMESTAMPS
435+
#ifdef PQTRACE_SUPPRESS_TIMESTAMPS
436436
/**
437437
* @var int
438438
* @cvalue PQTRACE_SUPPRESS_TIMESTAMPS

ext/pgsql/pgsql_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)