summaryrefslogtreecommitdiff
path: root/ext/pgsql
Commit message (Collapse)AuthorAgeFilesLines
* Fix 29nb_async_connect.phptNikita Popov2019-04-101-3/+5
| | | | | Intermediate states are unreliable across versions (I think), make sure we go through the whole connect procedure.
* Fix pgsql use after free trying to reuse closed connectionNikita Popov2019-04-103-8/+46
| | | | | | | | | | | When a connection is closed, we also need to remove the hash entry from the regular_list, as it now points to freed memory. To do this store a reverse mapping from the connection to the hash string. It would be nicer to introduce a wrapping structure for the pgsql link resource that could store the hash (and notices), but that would require large changes to the extension, so I'm going for a more minimal fix here.
* Fix use after free on pg_close() of default connectionNikita Popov2019-04-102-5/+22
|
* Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-11-182-1/+41
|\ | | | | | | | | * PHP-7.1: Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT TIMEZONE' data type
| * Fixed bug #77047 pg_convert has a broken regex for the 'TIME WITHOUT ↵Anatol Belski2018-11-182-1/+41
| | | | | | | | | | | | TIMEZONE' data type Backport 369c991d and 282a63da to 7.1, closes #3634
| * Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1513-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1420-67/+67
| |
| * Sync leading and final newlines in source code filesPeter Kokot2018-10-143-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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 source code filesPeter Kokot2018-10-134-49/+49
| |
| * Convert CRLF line endings to LFPeter Kokot2018-10-131-78/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
* | Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1513-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-1420-67/+67
| |
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-143-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. 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 source code filesPeter Kokot2018-10-134-49/+49
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-06-292-0/+24
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #76548 pg_fetch_result did not fetch the next row
| * Fixed bug #76548 pg_fetch_result did not fetch the next rowAnatol Belski2018-06-292-0/+24
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2018-01-181-0/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fixed #75838 (Memory leak in pg_escape_bytea())
| * Fixed #75838 (Memory leak in pg_escape_bytea())Xinchen Hui2018-01-181-0/+1
| |
| * year++Xinchen Hui2018-01-022-2/+2
| |
* | year++Xinchen Hui2018-01-022-2/+2
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-12-151-20/+15
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #75671 pg_version() crashes when called on a connection to cockroach
| * Fixed bug #75671 pg_version() crashes when called on a connection to cockroachAnatol Belski2017-12-151-20/+15
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-10-271-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fix test compat for PostgreSQL 10
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-271-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Fix test compat for PostgreSQL 10
| | * Fix test compat for PostgreSQL 10Anatol Belski2017-10-271-1/+1
| | |
* | | Merge branch 'PHP-7.1' into PHP-7.2Sara Golemon2017-10-241-0/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Decref default_link when clearing
| * | Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-10-241-0/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Decref default_link when clearing
| | * Decref default_link when clearingSara Golemon2017-10-241-0/+1
| | |
* | | Merge branch 'PHP-7.1' into PHP-7.2Sara Golemon2017-10-232-13/+21
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Bugfix#75419 Fix clearing of default link during pg_close()
| * | Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-10-232-13/+21
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Bugfix#75419 Fix clearing of default link during pg_close()
| | * Bugfix#75419 Fix clearing of default link during pg_close()Sara Golemon2017-10-232-13/+21
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-261-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fix 00version.phpt when commit message has multiple lines.
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-261-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fix 00version.phpt when commit message has multiple lines.
| | * Fix 00version.phpt when commit message has multiple lines.Mitch Hagstrand2017-01-261-1/+1
| | | | | | | | | | | | | | | | | | The environment variable "TRAVIS_COMMIT_MESSAGE" can contain multiple lines. An example can be seen here https://travis-ci.org/php/php-src/jobs/195465293
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-042-2/+2
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-042-2/+2
| | |
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-022-2/+2
| | |
* | | Merge branch 'PHP-7.1'Anatol Belski2016-12-011-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: fix dir separator Update NEWS for the build
| * | fix dir separatorAnatol Belski2016-12-011-1/+1
| | |
* | | further normalizations, uint vs uint32_tAnatol Belski2016-11-261-1/+1
| | | | | | | | | | | | | | | | | | fix merge mistake yet one more replacement run
* | | Merge branch 'PHP-7.1'Anatol Belski2016-11-225-2/+30
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Fix bug #73498 Add a test for bug 73498
| * | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-11-225-2/+30
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.0: Fix bug #73498 Add a test for bug 73498
| | * Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-11-225-2/+30
| | |\ | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fix bug #73498 Add a test for bug 73498
| | | * Fix bug #73498Craig Duncan2016-11-221-2/+2
| | | | | | | | | | | | | | | | | | | | Postgres uses the DELIMITER keyword since 7.3 And WITH is no longer required/used
| | | * Add a test for bug 73498Craig Duncan2016-11-224-0/+28
| | | |
| | | * Fix various int size overflows.Stanislav Malyshev2016-09-121-93/+93
| | | | | | | | | | | | | | | | | | | | Add function for detection of string zvals with length that does not fit INT_MAX.
| | * | More int->size_t and string overflow fixesStanislav Malyshev2016-11-051-3/+3
| | | |
* | | | Fix CRLF line-endings in testsNikita Popov2016-11-201-78/+78
| | | | | | | | | | | | | | | | Also fix a single instance of CRLF in ibase_query.c.
* | | | Merge branch 'PHP-7.1'Stanislav Malyshev2016-11-051-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.1: More int->size_t and string overflow fixes
| * | | Merge branch 'PHP-7.0' into PHP-7.1Stanislav Malyshev2016-11-051-3/+3
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * PHP-7.0: More int->size_t and string overflow fixes