summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/tests
Commit message (Collapse)AuthorAgeFilesLines
* Skip test if ext/json is not availableChristoph M. Becker2019-08-071-0/+1
| | | | Otherwise the test fails.
* Cleanup of remaining E_STRICT in testsGeorge Peter Banyard2019-07-231-1/+1
|
* Fix FR #71885 (Allow escaping question mark placeholders)Matteo Beccati2019-07-222-0/+103
|
* Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2019-04-123-7/+7
|\ | | | | | | | | * PHP-7.3: Fix tests wrt. internationalization
| * Merge branch 'PHP-7.2' into PHP-7.3Christoph M. Becker2019-04-123-7/+7
| |\ | | | | | | | | | | | | * PHP-7.2: Fix tests wrt. internationalization
| | * 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
| | |
| * | 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
| | |
* | | Replace dirname(__FILE__) by __DIR__ in testsFabien Villepinte2019-03-1535-149/+149
| | |
* | | Implement fine-grained conflict handlingNikita Popov2019-02-201-0/+1
| | | | | | | | | | | | | | | | | | Tests can specify conflict keys, either in --CONFLICTS-- or a per-directory CONFLICTS file. Non-conflicting tests may be run in parallel.
* | | Remove local variablesPeter Kokot2019-02-038-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | | 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-3/+3
| | |
* | | Trim trailing whitespace in testsGabriel Caruso2018-10-142-13/+13
|/ /
* | Merge branch 'PHP-7.2'Anatol Belski2018-07-301-0/+113
|\ \ | |/ | | | | | | * PHP-7.2: Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
| * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-07-301-0/+113
| |\ | | | | | | | | | | | | * 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-301-0/+113
| | |
* | | Fix default credentials when none was passedAnatol Belski2018-05-072-1/+5
| | |
* | | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-206-6/+6
|/ / | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | 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
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-10-271-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: 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-201-0/+27
|\ \ | |/ | | | | | | * PHP-7.1: Fixed #73959 - lastInsertId fails to throw an exception in pdsql
| * Fixed #73959 - lastInsertId fails to throw an exception in pdsqlandrewnester2017-01-201-0/+27
| |
* | Add "Sent SQL" to debug dump for emulated preparesAdam Baratz2016-12-201-0/+50
|/
* 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.0Matteo Beccati2016-08-041-1/+1
|\ | | | | | | | | * PHP-5.6: Clean up FR #72633
| * Clean up FR #72633Matteo Beccati2016-08-041-1/+1
| |
| * cleanup table after testAnatol Belski2016-08-021-2/+5
| |
| * - lastInsertId using Postgres Lastval() functionPablo Santiago Sánchez2016-08-021-0/+36
| |
* | cleanup the table after the test runAnatol Belski2016-07-271-1/+4
| |
* | Implemented FR #72633 Postgres PDO lastInsertId() should work without ↵root2016-07-272-2/+38
| | | | | | | | specifying a sequence
* | 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.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-141-0/+28
| | | | | | | | | | | | | | | | | | without placeholders Special commit for 7.0.9
* | | Fixed bug #72570 Segmentation fault when binding parameters on a query ↵Matteo Beccati2016-07-101-0/+28
| | | | | | | | | | | | without placeholders
* | | Merge branch 'PHP-5.6' into PHP-7.0Matteo Beccati2016-07-101-0/+37
|\ \ \ | |/ / |/| / | |/ | | * PHP-5.6: Fixed bug #70313 PDO statement fails to throw exception
| * Fixed bug #70313 PDO statement fails to throw exceptionMatteo Beccati2016-07-101-0/+37
| |
| * fix testAnatol Belski2015-08-231-2/+4
| | | | | | | | backport from master
* | Add test for bug #72294Anatol Belski2016-06-011-0/+149
| |
* | Fixed test (keyword is local related)Xinchen Hui2016-05-312-6/+6
| |
* | Fixed bug #71573 (Segfault (core dumped) if paramno beyond bound)Xinchen Hui2016-05-111-0/+21
| |
* | fix testsAnatol Belski2016-04-062-20/+92
| |
* | add 32-bit specific variont for #62498Anatol Belski2016-04-061-0/+185
| |
* | skip test on 32-bitAnatol Belski2016-04-061-1/+2
| | | | | | | | The Postgres INT8 datatype is handled as string on 32-bit
* | fix and extend testAnatol Belski2016-04-051-22/+103
| |
* | Don't roundtrip to the database to get the column type if you already know itJoe Bylund2016-04-051-0/+103
| | | | | | | | | | | | | | | | add_assoc_string now takes just three args nikic's fix to move pqclear outside the if, would be a possible memory leak inside the if (joe) check behavior of getColumnMeta