| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
better performance. Thanks Zeev.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Major changes to _restore_connection_defaults
- added code block to finds and releases the active mysql result (if any)
- this should prevent the 'Commands out of sync' error that would be
raised when a query is made when unfreed results exist
Minor changes to _restore_connection_defaults
- replaced calls to mysql_real_query with mysql_query
- we probably should not be using mysql_real_query without checking to
see if we have a version that supports the function.
- given that we control the query strings here and do not need to
worry about binary safety, I am using mysql_query instead
- see the bug report for further discussion
|
|
|
|
| |
setting in php.ini-dist and ensures that the default behavior is to leave connect_timeout alone.
|
|
|
|
|
| |
an E_WARNING a few lines above.
|
|
|
|
|
| |
Added mysql_result_seek() which is alias of mysql_data_seek().
|
|
|
|
|
|
|
| |
#- This will remove the annoying notices, while this function is used in
# a lot of scripts. There is not reason why we should discontinue it's use
# as it works perfect for about 99% of the time.
|
|
|
|
|
|
|
| |
- in _restore_connection_default:
- unset the selected database (thx to Paul DuBois)
- set session variable autocommit to default (=1)
|
| |
|
| |
|
|
|
|
| |
pg_client_encoding() is available from PHP4.0.3 and this function is available from PHP 4.3.0
|
| |
|
| |
|
| |
|
|
|
|
|
| |
SSL is only available for MYSQL_VERSION_ID >= 40000
|
| |
|
| |
|
| |
|
|
|
|
|
| |
inserted zak and me in author list/credits
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Why:
1) Its not the common way to add additionally functionality for functions or
features which are already implemented in SQL. Therefore also a lot of
mysql functions are marked as deprecated (and will be removed in near future)
2) The implemented workaround works only when mysql_select_db was called
before (fetching the databasename from mysql->conn.db). It returns invalid
or inconsistent results e.g.:
- when "USE databasename" via mysql_query was used
- when database was dropped or grant privileges had changed.
In conjunction with persistent connection, there are also some inconsistencies,
cause mysql_select_db returns the databasename from an old connection.
To determine the database name just use the SQL command "SELECT DATABASE()"
|
|
|
|
|
| |
allocated 1 more byte for '\0' terminating character
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MYSQL_CLIENT_SSL for ssl connections
MYSQL_CLIENT_COMPRESS for compressed protocol
MYSQL_CLIENT_IGNORE_SPACES for spaces after function names
MYSQL_CLIENT_INTERACTIVE for closing connections after timeout_interactive seconds
2) Optional parameter client_flags for mysql_connect and mysql_pconnect
For parameter desctiption see 1.
This also should fix bug #13589
3) New internal function _rollback_mysql_transactions, which is called via
PHP_RSHUTDOWN_FUNCTION
This fixes bug #12513
|
| |
|
| |
|
|
|
|
|
| |
@ the previously selected database name. (Jani)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Clean up mysql_list_processes
|
|
|
|
|
|
| |
# I really think we should just add a database handle
# parameter to mysql_escape_string()
|
|
|
|
|
|
|
| |
Improved logic of parameter parsing code for mysql_ping
- made test for no arguments more explicit
- combined to if blocks into one if/else if block
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
b) changed mysql_list_processes, mysql_stat (zend_parse_parameters)
c) New functions:
1) mysql_real_escape_string this function is similar to mysql_escape_string (deprecated).
it needs a mysql-connection to escape a string according to the
current character set
2) mysql_character_set_name returns the current character set for the connection
3) mysql_thread_id return the pid for the current connection. This function is usefull
when using mysql_list_processes
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
information on the processes running in the
MySQL server.
(PHP mysql_stat) Returns a string containing information on the status
of the MySQL server.
@- Added two new functions: mysql_list_processes and mysql_stat (Georg)
@- mysql_list_processes() fetches information on the processes running on
@ the MySQL server.
@- mysql_stat() returns status information for a MySQL server.
# Committed for Georg by Zak
|
|
|
|
|
|
|
| |
- Some tests were only run when compiling with the bundled libs.
(caused some compile warnings with external mysql libs)
- Another try to fix the zlib issue..(uncompress)
|