mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ext/pgsql: pg_convert/pg_insert/pg_update/pg_delete caching regexes.
Close GH-15039
This commit is contained in:
parent
2cfcfe09a0
commit
ba54cebb44
3 changed files with 77 additions and 76 deletions
|
@ -175,14 +175,17 @@ static const php_stream_ops php_stream_pgsql_fd_ops = {
|
|||
php_pgsql_fd_set_option
|
||||
};
|
||||
|
||||
#define PGSQL_MAX_REGEXES 11
|
||||
|
||||
ZEND_BEGIN_MODULE_GLOBALS(pgsql)
|
||||
zend_long num_links,num_persistent;
|
||||
zend_long max_links,max_persistent;
|
||||
bool allow_persistent;
|
||||
int ignore_notices;
|
||||
int ignore_notices;
|
||||
zend_long auto_reset_persistent;
|
||||
int log_notices;
|
||||
zend_object *default_link; /* default link when connection is omitted */
|
||||
zend_string *regexes[PGSQL_MAX_REGEXES];
|
||||
HashTable field_oids;
|
||||
HashTable table_oids;
|
||||
HashTable connections;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue