summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests wrt. internationalizationChristoph M. Becker2019-04-123-7/+7
|
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1512-14/+1
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in *.phptPeter Kokot2018-10-143-4/+4
|
* Trim trailing whitespace in source code filesPeter Kokot2018-10-131-1/+1
|
* Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-07-302-0/+119
|\ | | | | | | | | * PHP-7.1: Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
| * Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL optionAnatol Belski2018-07-302-0/+119
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-07-091-0/+3
|\ \ | |/ | | | | | | * PHP-7.1: Add missing flag
| * Add missing flagAnatol Belski2018-07-091-0/+3
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-03-121-1/+4
|\ \ | |/ | | | | | | * PHP-7.1: Fix heap use after free
| * Fix heap use after freeAnatol Belski2018-03-121-1/+4
| | | | | | | | | | The value may only be used until PGresult was destroyed, thus it needs to be copied.
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-01-042-3/+5
|\ \ | |/ | | | | | | * PHP-7.1: Fix tests
| * Fix testsAnatol Belski2018-01-042-3/+5
| |
| * year++Xinchen Hui2018-01-025-5/+5
| |
* | year++Xinchen Hui2018-01-025-5/+5
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-10-271-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Skip test on PostgreSQL 10
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-271-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Skip test on PostgreSQL 10
| | * Skip test on PostgreSQL 10Anatol Belski2017-10-271-1/+1
| | | | | | | | | | | | The 42P18 error is not produced by the server anymore.
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-202-1/+27
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed #73959 - lastInsertId fails to throw an exception in pdsql
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-202-1/+27
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed #73959 - lastInsertId fails to throw an exception in pdsql
| | * Fixed #73959 - lastInsertId fails to throw an exception in pdsqlandrewnester2017-01-202-1/+27
| | |
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-045-5/+5
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-045-5/+5
| | |
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-025-5/+5
| | |
* | | Add "Sent SQL" to debug dump for emulated preparesAdam Baratz2016-12-201-0/+50
|/ /
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-12-151-2/+2
|\ \ | |/ | | | | | | * PHP-7.0: make timing check more forgiving in these tests
| * make timing check more forgiving in these testsAnatol Belski2016-12-151-2/+2
| | | | | | | | | | | | | | | | Particularly on slower VMs, the sporadic fails can still happen. The timing is kept in an uncritical range, but allows the tests pass there. Mayby, it'd make sense to introduce a new group for this kind of tests, so tests requiring exact time measurement can be avoided on unsuitable environments.
| * Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-08-141-0/+2
| |\ | | | | | | | | | | | | * PHP-5.6: put missing prototype and fix ts build
| | * put missing prototype and fix ts buildAnatol Belski2016-08-141-1/+3
| | |
| * | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-08-141-0/+14
| |\ \ | | |/ | | | | | | | | | * PHP-5.6: Fixed bug #72759 Regression in pgo_pgsql
| | * Fixed bug #72759 Regression in pgo_pgsqlAnatol Belski2016-08-141-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is caused by the fix for #72633. Namely, lastval() throws an error, if no nextval() was called earlier in the same session. This is by all means correct so far, however inside a transaction it leads to an abort. This is the opposite to MySQL's last_insert_id() which doesn't produce any error no matter something were autoincremented or not. To avoid existing scripts breakage in the stable branches, the previous patch is extended to revert the transaction to the state before the lastval() call in case of error. It is done only for 5.6 and 7.0 to retain BC. For 7.1+, the clean behavior should persist. This is already the current behavior, when the sequence name is explicitly passed. So there's no reason to obfuscate the errors where this breakage is valid.
* | | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2016-08-091-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | * PHP-7.0: Fixed bug #72788 (Invalid memory access when using persistent PDO connection) Remove typo'd commit Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
| * | Merge branch 'bug72788' of https://github.com/keyurdg/php-src into PHP-7.0Xinchen Hui2016-08-091-1/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | * 'bug72788' of https://github.com/keyurdg/php-src: Remove typo'd commit Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
| | * | Fix bug 72788: Invalid memory access when database_object_handleKeyur2016-08-091-1/+2
| | | | | | | | | | | | | | | | | | | | is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
* | | | Merge branch 'PHP-7.0' into PHP-7.1Matteo Beccati2016-08-043-6/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: Clean up FR #72633 Fixed invalid handle error with Implicit Result Sets and bump OCI8 version. Conflicts: ext/oci8/package.xml
| * | | Merge branch 'PHP-5.6' into PHP-7.0Matteo Beccati2016-08-043-6/+5
| |\ \ \ | | | |/ | | |/| | | | | | | | | * PHP-5.6: Clean up FR #72633
| | * | Clean up FR #72633Matteo Beccati2016-08-043-6/+5
| | | |
| | * | cleanup table after testAnatol Belski2016-08-021-2/+5
| | | |
| | * | - lastInsertId using Postgres Lastval() functionPablo Santiago Sánchez2016-08-023-19/+56
| | | |
* | | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-07-271-1/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.0: cleanup the table after the test run
| * | | cleanup the table after the test runAnatol Belski2016-07-271-1/+4
| | | |
* | | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-07-274-21/+58
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.0: Implemented FR #72633 Postgres PDO lastInsertId() should work without specifying a sequence
| * | | Implemented FR #72633 Postgres PDO lastInsertId() should work without ↵root2016-07-274-21/+58
| | | | | | | | | | | | | | | | specifying a sequence
* | | | Merge branch 'PHP-7.0'Anatol Belski2016-07-191-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.0: fix test out
| * | | fix test outAnatol Belski2016-07-191-1/+1
| | | | | | | | | | | | | | | | this test also affected by #70313 which is not in the release branch
* | | | Merge branch 'PHP-7.0'Stanislav Malyshev2016-07-191-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: (27 commits) fix #72519, possible OOB using imagegif fix #72512, invalid read or write for palette image when invalid transparent index is used Apparently some envs miss SIZE_MAX Fix tests Fix bug #72618: NULL Pointer Dereference in exif_process_user_comment Partial fix for bug #72613 - do not allow reading past error read Partial fix for bug #72613 - do not treat negative returns from bz2 as size_t Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c Fix for bug #72558, Integer overflow error within _gdContributionsAlloc() Fix bug #72603: Out of bound read in exif_process_IFD_in_MAKERNOTE update NEWS Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders Fix bug #72562 - destroy var_hash properly Fix bug #72551 and bug #72552 - check before converting size_t->int Fix bug #72541 - size_t overflow lead to heap corruption Fix bug #72533 (locale_accept_from_http out-of-bounds access) Fix fir bug #72520 Fix for bug #72513 Fix for bug #72513 CS fix and comments with bug ID ... Conflicts: ext/standard/basic_functions.c
| * | | Merge branch 'PHP-7.0.9' into PHP-7.0Stanislav Malyshev2016-07-191-2/+2
| |\ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0.9: Partial fix for bug #72613 - do not allow reading past error read update NEWS Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders Fix bug #72551 and bug #72552 - check before converting size_t->int Fix bug #72541 - size_t overflow lead to heap corruption fix possible optimization bug set versions Conflicts: configure.in ext/pdo_pgsql/tests/bug72570.phpt main/php_version.h
| | * | Fixed bug #72570 Segmentation fault when binding parameters on a query ↵Matteo Beccati2016-07-142-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | without placeholders Special commit for 7.0.9
* | | | Merge branch 'PHP-7.0'Matteo Beccati2016-07-103-1/+69
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-7.0: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders Fixed bug #70313 PDO statement fails to throw exception
| * | | Fixed bug #72570 Segmentation fault when binding parameters on a query ↵Matteo Beccati2016-07-102-0/+31
| | | | | | | | | | | | | | | | without placeholders
| * | | Merge branch 'PHP-5.6' into PHP-7.0Matteo Beccati2016-07-102-1/+38
| |\ \ \ | | |/ / | |/| / | | |/ | | | * PHP-5.6: Fixed bug #70313 PDO statement fails to throw exception