summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix pgsql use after free trying to reuse closed connectionNikita Popov2019-04-101-8/+26
| | | | | | | | | | | 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-101-5/+7
|
* Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-11-181-1/+1
|\ | | | | | | | | * 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-181-1/+1
| | | | | | | | | | | | TIMEZONE' data type Backport 369c991d and 282a63da to 7.1, closes #3634
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-06-291-0/+1
|\ \ | |/ | | | | | | * 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-291-0/+1
| |
* | 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-021-1/+1
| |
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | 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.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-231-13/+7
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Bugfix#75419 Fix clearing of default link during pg_close()
| * | Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-10-231-13/+7
| |\ \ | | |/ | | | | | | | | | * 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-231-13/+7
| | |
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-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-221-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Fix bug #73498 Add a test for bug 73498
| * | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-11-221-2/+2
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.0: Fix bug #73498 Add a test for bug 73498
| | * Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-11-221-2/+2
| | |\ | | | | | | | | | | | | | | | | | | | | * 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
| | | * 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
| | | |
* | | | 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
| | * | | More int->size_t and string overflow fixesStanislav Malyshev2016-11-051-3/+3
| | |/ /
* | | | Drop some pieces of commented-out codeNikita Popov2016-09-041-14/+0
|/ / /
* | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-09-031-7/+8
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: fix leak and error check order
| * | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-09-031-7/+8
| |\ \ | | |/ | | | | | | | | | * PHP-5.6: fix leak and error check order
| | * fix leak and error check orderAnatol Belski2016-09-031-5/+6
| | |
| | * Revert "Backport patch for bug #71820"Anatol Belski2016-05-091-14/+1
| | | | | | | | | | | | | | | | | | | | | This reverts commit 1b632cfe834bfd87d182566d7d960df7d10ded72. This fixed bug #72151, and reverts the fix for bug #71820. See also bug #50636 and #49521 for the history.
| | * Backport patch for bug #71820Anatol Belski2016-03-171-1/+14
| | | | | | | | | | | | Rev b4eedd128ba9f61be08a50c94afd72837d7cf70b
* | | Fixed compilation warningsDmitry Stogov2016-06-231-1/+1
| | |
* | | Fixed compilation warningsDmitry Stogov2016-06-221-8/+8
| | |
* | | Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-11/+11
| | | | | | | | | | | | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* | | Merge branch 'PHP-7.0'Anatol Belski2016-05-121-1/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fixed bug #72197 pg_lo_create arbitrary read
| * | Fixed bug #72197 pg_lo_create arbitrary readAnatol Belski2016-05-121-1/+3
| | |
* | | Merge branch 'PHP-7.0'Xinchen Hui2016-05-121-4/+11
|\ \ \ | |/ / | | | | | | | | | * PHP-7.0: Fixed bug #72195 (pg_pconnect/pg_connect cause use-after-free)
| * | Fixed bug #72195 (pg_pconnect/pg_connect cause use-after-free)Xinchen Hui2016-05-121-4/+11
| | |
* | | Merge branch 'PHP-7.0'Anatol Belski2016-05-091-21/+3
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.0: Revert "Fixed bug #71820 pg_fetch_object bind parameters before call constructor" Revert "Backport patch for bug #71820"
| * | Revert "Fixed bug #71820 pg_fetch_object bind parameters before call ↵Anatol Belski2016-05-091-21/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | constructor" This reverts commit b4eedd128ba9f61be08a50c94afd72837d7cf70b. This fixed bug #72151, and reverts the fix for bug #71820. See also bug #50636 and #49521 for the history.
* | | - get rid of EG(scope). zend_get_executed_scope() should be used instead.Dmitry Stogov2016-04-281-1/+1
| | | | | | | | | | | | - ichanged zval_update_constant_ex(). Use IS_TYPE_IMMUTABLE flag on shared constants and AST, instead of "inline_change" parameter.
* | | Removed "zend_fcall_info.function_table". It was assigned in many places, ↵Dmitry Stogov2016-04-271-1/+0
| | | | | | | | | | | | but is never used.
* | | Merge branch 'PHP-7.0'Nikita Popov2016-04-211-2/+2
|\ \ \ | |/ /
| * | Fix escape sequences in pgsql.cNikita Popov2016-04-211-2/+2
| | |