summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
Commit message (Collapse)AuthorAgeFilesLines
* Decref default_link when clearingSara Golemon2017-10-241-0/+1
|
* 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
|
* 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-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 bug #72197 pg_lo_create arbitrary readAnatol Belski2016-05-121-1/+3
| |
* | Fixed bug #72195 (pg_pconnect/pg_connect cause use-after-free)Xinchen Hui2016-05-121-4/+11
| |
* | 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.
* | Fix escape sequences in pgsql.cNikita Popov2016-04-211-2/+2
| |
* | Fixed bug #72028 (pg_query_params(): NULL converts to empty string)Xinchen Hui2016-04-151-1/+1
| | | | | | | | | | I don't have a pgsql server by hand, so no test script, but the fix must be right.
* | Fixed #71062 pg_convert() doesn't accept ISO 8601 for datatype timestampAnatol Belski2016-04-151-1/+1
| |
* | Fixed bug #71998 Function pg_insert does not insert when column type = inetAnatol Belski2016-04-101-3/+6
| |
* | Fixed bug #71820 pg_fetch_object bind parameters before call constructorAnatol Belski2016-03-171-3/+21
| | | | | | | | | | | | If we want to fetch into an object of a custom class that implemens __set handler, the corstructor has to be called first. The data passed to the constructor can be possibly required in __set handler.
* | Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-031-1/+1
| | | | | | | | Also re bug #71575.
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-03-021-1/+1
|\ \ | |/ | | | | | | * PHP-5.6: show correct MINFO with libpq >= 9.5.x
| * show correct MINFO with libpq >= 9.5.xAnatol Belski2016-03-021-1/+1
| |
* | Added missing semicolonDmitry Stogov2016-02-151-1/+1
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
* | Avoid reallocationsDmitry Stogov2015-09-141-3/+1
| |
* | remove TSRMLS_*Anatol Belski2015-08-021-1/+1
| | | | | | | | either remains or merged in from PHP5
* | Fixed Bug #70092 pg_field_type() is too slowYasuo Ohgaki2015-07-261-1/+1
| |
* | Various warning fixesNikita Popov2015-07-171-6/+3
| |
* | Switch position of ce in exception ce variable namesAaron Piotrowski2015-07-031-3/+3
| |
* | Change zend_exception_get_default() to zend_exception_ceAaron Piotrowski2015-07-031-3/+3
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-45/+45
| | | | | | | | semantick changes).
* | Fix more proto commentsRasmus Lerdorf2015-06-231-4/+4
| |
* | Make convert_to_* safe with rc>1Nikita Popov2015-06-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This only involves switching zval_dtor to zval_ptr_dtor for arrays and making the convert_to_object for arrays a bit more generic. All the other changes outside zend_operators.c just make use of this new ability (use COPY instead of DUP). What's still missing: Proper references handling. I've seen many convert_to* calls that will break when a reference is used. Also fixes bug #69788.
* | Merge branch 'PHP-5.6'Remi Collet2015-05-201-2/+7
|\ \ | |/ | | | | | | | | | | | | | | | | | | * PHP-5.6: NEWS 5.6 NEWS 5.5 Fixed Bug #69667 segfault in php_pgsql_meta_data fix test output (32bits) Conflicts: ext/pgsql/pgsql.c
| * Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2015-05-201-2/+7
| |\ | | | | | | | | | | | | | | | | | | * PHP-5.5: NEWS 5.5 Fixed Bug #69667 segfault in php_pgsql_meta_data fix test output (32bits)
| | * Fixed Bug #69667 segfault in php_pgsql_meta_dataRemi Collet2015-05-201-2/+7
| | | | | | | | | | | | Incomplete fix for #68741
* | | Merge branch 'PHP-5.6'Stanislav Malyshev2015-04-141-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: (27 commits) fix non-standard C update NEWS 5.4.41 next fix CVE num update NEWS Fix bug #69441 (Buffer Overflow when parsing tar/zip/phar in phar_set_inode) fix test fix type in fix for #69085 fix memory leak & add test Fix tests fix CVE num Fix bug #69337 (php_stream_url_wrap_http_ex() type-confusion vulnerability) Fix test Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) ... Conflicts: Zend/zend_exceptions.c ext/curl/interface.c ext/dom/document.c ext/fileinfo/libmagic/softmagic.c ext/gd/gd.c ext/hash/hash.c ext/pgsql/pgsql.c ext/phar/phar.c ext/phar/phar_internal.h ext/standard/http_fopen_wrapper.c ext/standard/link.c ext/standard/streamsfuncs.c ext/xmlwriter/php_xmlwriter.c ext/zlib/zlib.c
| * | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-04-141-1/+1
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: (27 commits) fix non-standard C update NEWS 5.4.41 next fix CVE num update NEWS Fix bug #69441 (Buffer Overflow when parsing tar/zip/phar in phar_set_inode) fix test fix type in fix for #69085 fix memory leak & add test Fix tests fix CVE num Fix bug #69337 (php_stream_url_wrap_http_ex() type-confusion vulnerability) Fix test Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) ... Conflicts: ext/standard/http_fopen_wrapper.c
| | * Merge branch 'PHP-5.4.40' into PHP-5.5.24Stanislav Malyshev2015-04-111-1/+1
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4.40: Additional fix for bug #69324 More fixes for bug #69152 Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions) Fixed bug #69324 (Buffer Over-read in unserialize when parsing Phar) Fixed bug #69316 (Use-after-free in php_curl related to CURLOPT_FILE/_INFILE/_WRITEHEADER) Fix bug #68486 and bug #69218 (segfault in apache2handler with apache 2.4) Fix bug #68819 (Fileinfo on specific file causes spurious OOM and/or segfault) Fixed bug #68901 (use after free) Fixed bug #68740 (NULL Pointer Dereference) Fix bug #66550 (SQLite prepared statement use-after-free) Better fix for #68601 for perf https://bitbucket.org/libgd/gd-libgd/commits/81e9a993f2893d651d225646378e3fd1b7465467 Fix bug #68601 buffer read overflow in gd_gif_in.c Revert "Merge branch 'PHP-5.4' of https://git.php.net/repository/php-src into PHP-5.4" Fixed bug #69293 Add ZEND_ARG_CALLABLE_INFO to allow internal function to type hint against callable.
| | | * Fixed bug #69353 (Missing null byte checks for paths in various PHP extensions)Stanislav Malyshev2015-04-111-1/+1
| | | |
| * | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-03-221-0/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-5.5: Bacport fix bug #68741 - Null pointer dereference Check that the type is correct
| | * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-03-221-0/+3
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | * PHP-5.4: Bacport fix bug #68741 - Null pointer dereference Check that the type is correct
| | | * Bacport fix bug #68741 - Null pointer dereferenceStanislav Malyshev2015-03-221-0/+3
| | | |
* | | | Fixed unsigned underflowDmitry Stogov2015-04-081-4/+3
| | | |
* | | | cleanup mod version macros and mod defs, round xAnatol Belski2015-03-231-1/+1
| | | |
* | | | Optimize zend_string_realloc() add more specialized versions ↵Dmitry Stogov2015-03-201-2/+2
| | | | | | | | | | | | | | | | zend_string_extend() and zend_string_truncate()
* | | | Use specialized macro for string zval creationDmitry Stogov2015-03-121-5/+5
| | | |
* | | | ZTS cleanupReeze Xia2015-03-081-2/+2
| | | |
* | | | Remove unnecessary debug warning (that also broke tests).Adam Harvey2015-03-051-3/+0
| | | |