summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
Commit message (Collapse)AuthorAgeFilesLines
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-328/+326
|
* Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-11-261-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (102 commits) fix dir separator in test fix TS build fix TS build Better fix for bug #68446 Revert "Merge remote-tracking branch 'origin/PHP-5.6'" Revert NEWS and set test to XFAIL Revert "Fix bug #68446 (bug with constant defaults and type hints)" Improved zend_hash_clean() and added new optimized zend_symtable_clean() Use inline version of zval_ptr_dtor() Added new optimized zend_array_destroy() function Moved i_zval_ptr_dtor() from zend_execute.h to zend_variables.h fix REGISTER_NS_*_CONSTANT macros Removed useless assert. EG(uninitialized_zval) can't be refcounted. Use specialized destructors when types of zvals are known. move tests into proper place Improved assignment to object property Reuse zend_assign_to_variable() in zend_std_write_property() cleanup comments from svn/cvs era fix dir separator in test fork test for windows ...
| * typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-231-3/+3
| |
* | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-11-181-61/+72
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (398 commits) NEWS add test for bug #68381 Fixed bug #68381 Set FPM log level earlier during init proper dllexport move to size_t where zend_string is used internally fix some datatype mismatches return after the warning, to fix uninitialized salt usage fix datatype mismatches add missing type specifier fix datatype mismatches fix unsigned check "extern" shouldn't be used for definitions joined identical conditional blocks simplify fpm tests SEND_VAR_NO_REF optimization Add test for bug #68442 Add various tests for FPM - covering recent bugs (68420, 68421, 68423, 68428) - for UDS - for ping and status URI - for multi pool and multi mode Include small MIT FastCGI client library from https://github.com/adoy/PHP-FastCGI-Client Get rid of zend_free_op structure (use zval* instead). Get rid of useless TSRMLS arguments. Add new FPM test for IPv4/IPv6 ... Conflicts: win32/build/config.w32
| * fix datatype mismatchesAnatol Belski2014-10-311-34/+43
| |
| * fix datatype mismatchesAnatol Belski2014-10-311-27/+29
| |
* | converted ext/ereg, ext/phar and ext/pgsql for static tsrmls usageAnatol Belski2014-10-161-0/+6
| |
* | bring back all the TSRMLS_FETCH() stuffAnatol Belski2014-10-151-0/+2
| | | | | | | | for better comparability with the mainstream
* | cleaunp TSRMLS_FETCH in ext/pgsqlAnatol Belski2014-09-261-2/+0
|/
* Move smart_str implementation into Zend/Nikita Popov2014-09-211-1/+1
| | | | | | | | So we can use it there as well... For now I've retained the zend_smart_str_public.h header, though it would probably be better to just move that one struct into zend_types.h.
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|
* Fixed useless or duplicated IS_INTERNED() checksDmitry Stogov2014-09-191-3/+3
|
* avoid strlen usage in the loopAnatol Belski2014-09-151-11/+11
|
* Revert "Removing ext/ereg and dependencies"Dmitry Stogov2014-09-111-15/+19
| | | | This reverts commit 86de7963fe69638431c0aa8f413d25e01bf99d68.
* Removing ext/ereg and dependenciesTjerk Meesters2014-09-111-19/+15
| | | | | | | | | | | | Affected extensions: - opcache (use pcre) - mbstring (removed ereg functions overloading) - pgsql (use pcre) - reflection (test cases using 'ereg') SAPI: - apache (header only) - apache_hooks (header only)
* remove the expression parts, which are always trueAnatol Belski2014-08-281-5/+5
|
* fix some types and unnecessary castsAnatol Belski2014-08-281-6/+6
|
* fix pg_last_notice()Anatol Belski2014-08-281-5/+10
|
* fix remaining 's' args for pgsqlAnatol Belski2014-08-281-2/+3
|
* 's' works with size_t round 2Anatol Belski2014-08-271-12/+18
|
* first show to make 's' work with size_tAnatol Belski2014-08-271-19/+23
|
* fixed several long vs zend_long castsAnatol Belski2014-08-261-1/+1
|
* master renames phase 7PRE_AST_MERGEAnatol Belski2014-08-251-7/+7
|
* master renames phase 3Anatol Belski2014-08-251-8/+8
|
* master renames phase 1Anatol Belski2014-08-251-248/+248
|
* fixes to %pd format usageAnatol Belski2014-08-241-7/+7
|
* fix zppAnatol Belski2014-08-211-1/+1
|
* ported ext/pgsqlAnatol Belski2014-08-191-76/+76
|
* basic macro replacements, all at onceAnatol Belski2014-08-191-190/+190
|
* Merge branch 'master' into testDmitry Stogov2014-07-071-1/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (48 commits) change locale - looks like not everybody has sl_SI Fix bug #66921 - Wrong argument type hint for function intltz_from_date_time_zone fix format Fix bug #67052 (NumberFormatter::parse() resets LC_NUMERIC setting) Make sure the generator script also creates a newline at the end of file Add newline at end of file to prevent compilation warning Fix handling of session user module custom handlers. Reference bug report instead of github issue in NEWS file add more exts for Travis Update NEWS Fix phpdbg.1 man page installation when build != src directory BFN for bug #67551 (php://input temp file will be located in sys_temp_dir instead of upload_tmp_dir) reorder restore API compatibility finish refactor php_stream_temp_create{,_ex} and use it for the php://input stream refactor _php_stream_fopen_{temporary_,tmp}file() fix length overflow of HTTP_RAW_POST_DATA Update NEWS Fixed bug #67215 (php-cgi work with opcache, may be segmentation fault happen) ... Conflicts: ext/opcache/zend_accelerator_util_funcs.c ext/session/mod_user.c ext/spl/spl_array.c ext/spl/spl_dllist.c ext/standard/file.c ext/standard/streamsfuncs.c ext/standard/string.c main/streams/memory.c
| * Fix ext/pgsql builds against libpq 7.3.Adam Harvey2014-07-021-0/+2
| | | | | | | | Fixes bug #67555 (Cannot build against libpq 7.3).
| * Merge branch 'PHP-5.5' into PHP-5.6Adam Harvey2014-07-011-1/+1
| |\ | | | | | | | | | | | | * PHP-5.5: Fix ext/pgsql builds with libpq < 7.3.
| | * Merge branch 'PHP-5.4' into PHP-5.5Adam Harvey2014-07-011-1/+1
| | |\ | | | | | | | | | | | | | | | | * PHP-5.4: Fix ext/pgsql builds with libpq < 7.3.
| | | * Fix ext/pgsql builds with libpq < 7.3.Adam Harvey2014-07-011-1/+1
| | | | | | | | | | | | | | | | Fixes bug #67550 (Error in code "form" instead of "from", pgsql.c, line 756).
* | | | Avoid useless mergeDmitry Stogov2014-06-041-2/+8
| | | |
* | | | Use new zend_hash APIDmitry Stogov2014-05-281-37/+12
| | | |
* | | | Fixed incorrect Z_LVAL() usageDmitry Stogov2014-05-191-2/+2
| | | |
* | | | Fixed memleak (3 tests fails now)Xinchen Hui2014-05-191-1/+1
| | | |
* | | | Fixed resources apply_dtorXinchen Hui2014-05-191-1/+2
| | | |
* | | | It's a zend_array not Hashtable (fixed segfault)Xinchen Hui2014-05-191-1/+2
| | | |
* | | | Fixed segfaultXinchen Hui2014-05-191-1/+3
| | | |
* | | | Refactoring ext/pgsql (incompleted, only compilable)Xinchen Hui2014-05-191-720/+650
| | | |
* | | | Merge mainstream 'master' branch into refactoringDmitry Stogov2014-04-261-562/+908
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During merge I had to revert: Nikita's patch for php_splice() (it probably needs to be applyed again) Bob Weinand's patches related to constant expression handling (we need to review them carefully) I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway) Conflicts: Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_compile.c Zend/zend_compile.h Zend/zend_constants.c Zend/zend_exceptions.c Zend/zend_execute.c Zend/zend_execute.h Zend/zend_execute_API.c Zend/zend_hash.c Zend/zend_highlight.c Zend/zend_language_parser.y Zend/zend_language_scanner.c Zend/zend_language_scanner_defs.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/date/php_date.c ext/dom/documenttype.c ext/hash/hash.c ext/iconv/iconv.c ext/mbstring/tests/zend_multibyte-10.phpt ext/mbstring/tests/zend_multibyte-11.phpt ext/mbstring/tests/zend_multibyte-12.phpt ext/mysql/php_mysql.c ext/mysqli/mysqli.c ext/mysqlnd/mysqlnd_reverse_api.c ext/mysqlnd/php_mysqlnd.c ext/opcache/ZendAccelerator.c ext/opcache/zend_accelerator_util_funcs.c ext/opcache/zend_persist.c ext/opcache/zend_persist_calc.c ext/pcre/php_pcre.c ext/pdo/pdo_dbh.c ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c ext/reflection/php_reflection.c ext/session/session.c ext/spl/spl_array.c ext/spl/spl_observer.c ext/standard/array.c ext/standard/basic_functions.c ext/standard/html.c ext/standard/mail.c ext/standard/php_array.h ext/standard/proc_open.c ext/standard/streamsfuncs.c ext/standard/user_filters.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re main/php_variables.c sapi/phpdbg/phpdbg.c sapi/phpdbg/phpdbg_bp.c sapi/phpdbg/phpdbg_frame.c sapi/phpdbg/phpdbg_help.c sapi/phpdbg/phpdbg_list.c sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt.c
| * | | Fix bug #66015 by reverting "Removed operations on constant arrays."Bob Weinand2014-04-111-3/+1
| | | |
| * | | Remove some usages of hashtable internalsNikita Popov2014-04-091-17/+6
| | | |
| * | | Support async pgsql connections and non-blocking queriesDaniel Lowrey2014-03-171-98/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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().
| * | | simplify the metadata partAnatol Belski2014-02-171-18/+6
| | | |
| * | | Imprement FR #25854 Return value for pg_insert should be resource instead of ↵Yasuo Ohgaki2014-02-171-3/+51
| | | | | | | | | | | | | | | | bool
| * | | Implement FR #41146 - Add "description" with exteneded flag pg_meta_data().Yasuo Ohgaki2014-02-171-39/+57
| | | | | | | | | | | | | | | | | | | | 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-84/+125
| | | | | | | | | | | | | | | | | | | | 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.