summaryrefslogtreecommitdiff
path: root/ext/pgsql/php_pgsql.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix pgsql use after free trying to reuse closed connectionNikita Popov2019-04-101-0/+1
| | | | | | | | | | | 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.
* year++Xinchen Hui2018-01-021-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'PHP-7.0'Nikita Popov2016-03-031-1/+1
|\
| * Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-031-1/+1
| | | | | | | | Also re bug #71575.
* | Merge branch 'PHP-7.0'Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| * 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
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Improve FR #48532 implementation (Allow pg_fetch_all() to index numerically).Yasuo Ohgaki2015-12-181-3/+2
| | | | | | | | | | | | Made result type option be consistent with pg_fetch_row().
* | | Implemented FR #48532 (Allow pg_fetch_all() to index numerically).Yasuo Ohgaki2015-12-171-2/+2
|/ /
* | switch to the unified globals accessor where appropriateAnatol Belski2015-07-291-6/+2
| |
* | cleanup mod version macros and mod defs, round xAnatol Belski2015-03-231-0/+3
| |
* | made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-161-1/+1
| | | | | | | | which also comply with the current semantics for such macros
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-14/+14
| |
* | converted ext/ereg, ext/phar and ext/pgsql for static tsrmls usageAnatol Belski2014-10-161-1/+4
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | master renames phase 1Anatol Belski2014-08-251-9/+9
| |
* | ported ext/pgsqlAnatol Belski2014-08-191-9/+9
| |
* | Refactoring ext/pgsql (incompleted, only compilable)Xinchen Hui2014-05-191-5/+5
|/
* Support async pgsql connections and non-blocking queriesDaniel Lowrey2014-03-171-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - New functions (each accepts a pgsql $connection resource): . pg_connect_poll . pg_socket . pg_consume_input . pg_flush - Modified functions The following functions now additionally return zero if the underlying socket is set to non-blocking mode and the send operation does not complete immediately. Previously these functions returned only boolean TRUE/FALSE and blocked execution while polling until all data was sent: . pg_send_execute . pg_send_prepare . pg_send_query . pg_send_query_params - New constants Used with pg_connect() to initiate an asynchronous connection attempt: . PGSQL_CONNECT_ASYNC Used with pg_connection_status() to determine the current state of an async connection attempt: . PGSQL_CONNECTION_STARTED . PGSQL_CONNECTION_MADE . PGSQL_CONNECTION_AWAITING_RESPONSE . PGSQL_CONNECTION_AUTH_OK . PGSQL_CONNECTION_SSL_STARTUP . PGSQL_CONNECTION_SETENV Used with pg_connect_poll() to determine the result of an async connection attempt: . PGSQL_POLLING_FAILED . PGSQL_POLLING_READING . PGSQL_POLLING_WRITING . PGSQL_POLLING_OK . PGSQL_POLLING_ACTIVE - Polling via returned pg_socket() stream pg_socket() returns a read-only socket stream that may be cast to a file descriptor for select (and similar) polling operations. Blocking behavior of the pgsql connection socket can be controlled by calling stream_set_blocking() on the stream returned by pg_socket().
* Imprement FR #25854 Return value for pg_insert should be resource instead of ↵Yasuo Ohgaki2014-02-171-0/+3
| | | | bool
* Implement FR #41146 - Add "description" with exteneded flag pg_meta_data().Yasuo Ohgaki2014-02-171-1/+1
| | | | | pg_meta_data(resource $conn, string $table [, bool extended]) It also made pg_meta_data() return "is enum" always.
* EXPERIMENTAL flags for pg_select/pg_insert/pg_update/pg_delete are removed.Yasuo Ohgaki2014-02-161-0/+1
| | | | | Use string escape for exotic types that allows to handle any data types. i.e. Array, JSON, JSONB, etc will work. Add escape only query for better performance which removes meta data look up. Limitations forced by pg_convert() can be avoided with this. PGSQL_DML_ESCAPE constant is added for it.
* Merge branch 'PHP-5.5' into PHP-5.6Yasuo Ohgaki2014-02-151-1/+1
|\
| * Refactor and cleanup. WS is cleaned up. Use -b if it is needed.Yasuo Ohgaki2014-02-151-1/+1
| | | | | | | | Added compatibility macros, PQescapeStringConn, PGSQLescapeLiteral/Identifier, PGSQLfree.
* | Merge branch 'PHP-5.5' into PHP-5.6Lior Kaplan2014-02-141-1/+1
|\ \ | |/
| * a few typofixesVeres Lajos2014-02-141-1/+1
| |
| * Bump yearXinchen Hui2014-01-031-1/+1
| |
| * Happy New YearXinchen Hui2013-01-011-1/+1
| |
| * add pg_escape_identifier/pg_escape_literalYasuo Ohgaki2012-04-191-0/+2
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
* | Added pg_lo_truncate() and 64bit large object support from PostgreSQL 9.3 and upYasuo Ohgaki2014-01-151-0/+3
| |
* | Bump yearXinchen Hui2014-01-031-1/+1
| |
* | Happy New YearXinchen Hui2013-01-011-1/+1
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | add pg_escape_identifier/pg_escape_literalYasuo Ohgaki2011-11-251-0/+2
|/
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)Dmitry Stogov2008-01-301-1/+5
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* MFH: Added pg_field_table() as per req: #36750Edin Kadribasic2006-05-071-0/+1
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* Added pg_fetch_all_columns() function to fetch all values of a column fromIlia Alshanetsky2005-07-081-0/+1
| | | | | a result cursor.
* - MFH43: Fixed bug #32699 (pg_affected_rows() was defined when it was notDerick Rethans2005-04-131-0/+2
| | | | | available).
* Tweak some #if's to be more orthogonal.Christopher Kings-Lynne2005-03-221-0/+3
| | | | | | | | | (PHP pg_set_error_verbosity) New function to set PostgreSQL error verbosity (PHP pg_copy_from) Use non-deprecated API if it is available (PHP pg_copy_to) Use non-deprecated API if it is available