Commit c56e8ca
authored
ext/pgsql, ext/pdo_pgsql: Remove preprocessor guards for symbols predating libpq 10 (#21384)
While working on php/doc-en#5409 to clean up outdated PostgreSQL
version notes in the documentation, I noticed that the source code
also retains #ifdef guards for symbols guaranteed to exist in
libpq >= 10.0 (the minimum enforced in build/php.m4 via
PQencryptPasswordConn).
Removed guards (all confirmed in PostgreSQL 10 documentation):
- `PG_DIAG_{INTERNAL_POSITION,INTERNAL_QUERY}`: libpq 8.0+
- `PG_DIAG_{SCHEMA,TABLE,COLUMN,DATATYPE,CONSTRAINT}_NAME`: libpq 9.3+
- `PG_DIAG_SEVERITY_NONLOCALIZED`: libpq 9.6+
- `CONNECTION_SSL_STARTUP`: libpq 8.0+
- `CONNECTION_CONSUME`: libpq 10.0+
Refs:
- https://www.postgresql.org/docs/10/libpq-exec.html#LIBPQ-PQRESULTERRORFIELD
- https://www.postgresql.org/docs/10/libpq-connect.html#LIBPQ-PQCONNECTSTARTPARAMS
- https://github.com/php/php-src/blob/53e31d58834ef04375dae7bdc549d73dae371c5a/build/php.m4#L19271 parent 53e31d5 commit c56e8ca
File tree
5 files changed
+3
-53
lines changed- ext
- pdo_pgsql
- pgsql
- tests
5 files changed
+3
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | | - | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
512 | | - | |
513 | 511 | | |
514 | 512 | | |
515 | 513 | | |
516 | 514 | | |
517 | | - | |
518 | 515 | | |
519 | 516 | | |
520 | 517 | | |
521 | | - | |
522 | 518 | | |
523 | 519 | | |
524 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3790 | 3790 | | |
3791 | 3791 | | |
3792 | 3792 | | |
3793 | | - | |
3794 | 3793 | | |
3795 | | - | |
3796 | | - | |
3797 | 3794 | | |
3798 | | - | |
3799 | 3795 | | |
3800 | 3796 | | |
3801 | 3797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
107 | | - | |
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
| |||
310 | 308 | | |
311 | 309 | | |
312 | 310 | | |
313 | | - | |
314 | 311 | | |
315 | 312 | | |
316 | 313 | | |
317 | 314 | | |
318 | 315 | | |
319 | | - | |
320 | | - | |
321 | 316 | | |
322 | 317 | | |
323 | 318 | | |
324 | 319 | | |
325 | 320 | | |
326 | | - | |
327 | 321 | | |
328 | 322 | | |
329 | 323 | | |
| |||
344 | 338 | | |
345 | 339 | | |
346 | 340 | | |
347 | | - | |
348 | 341 | | |
349 | 342 | | |
350 | 343 | | |
351 | 344 | | |
352 | 345 | | |
353 | | - | |
354 | | - | |
355 | 346 | | |
356 | 347 | | |
357 | 348 | | |
358 | 349 | | |
359 | 350 | | |
360 | | - | |
361 | | - | |
362 | 351 | | |
363 | 352 | | |
364 | 353 | | |
365 | 354 | | |
366 | 355 | | |
367 | | - | |
368 | | - | |
369 | 356 | | |
370 | 357 | | |
371 | 358 | | |
372 | 359 | | |
373 | 360 | | |
374 | | - | |
375 | | - | |
376 | 361 | | |
377 | 362 | | |
378 | 363 | | |
379 | 364 | | |
380 | 365 | | |
381 | | - | |
382 | | - | |
383 | 366 | | |
384 | 367 | | |
385 | 368 | | |
386 | 369 | | |
387 | 370 | | |
388 | | - | |
389 | 371 | | |
390 | 372 | | |
391 | 373 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 73 | + | |
| 74 | + | |
81 | 75 | | |
82 | 76 | | |
83 | 77 | | |
| |||
0 commit comments