|
|||||||||||
|
PHP mysqlnd svn commit: r835 - in trunk: php5/ext/mysql php5/ext/mysqli php6/ext/mysqli
From: <ahristov(at)mysql.com>
Date: Mon Jul 23 2007 - 12:50:43 EDT
Modified: trunk/php5/ext/mysql/php_mysql.c trunk/php5/ext/mysqli/config9.m4 trunk/php5/ext/mysqli/mysqli_api.c trunk/php5/ext/mysqli/mysqli_nonapi.c trunk/php6/ext/mysqli/config9.m4 trunk/php6/ext/mysqli/mysqli_api.c trunk/php6/ext/mysqli/mysqli_nonapi.cLog: Merged code from cvs.php.net Modified: trunk/php5/ext/mysql/php_mysql.c
#ifdef ZEND_ENGINE_2
Modified: trunk/php5/ext/mysqli/config9.m4
PHP_ARG_WITH(mysqli, for MySQLi support, -[ --with-mysqli[=FILE] Include MySQLi support. FILE is the optional pathname to mysql_config. +[ --with-mysqli[=FILE] Include MySQLi support. FILE is the optional pathname to mysql_config [mysql_config].
If mysqlnd is passed as FILE, the MySQL native driver will be used])
PHP_ARG_ENABLE(embedded_mysqli, whether to enable embedded MySQLi support, Modified: trunk/php5/ext/mysqli/mysqli_api.c
/* remove some insecure options */
- flags ^= CLIENT_MULTI_STATEMENTS; /* don't allow multi_queries via connect parameter */
- if (PG(open_basedir) && strlen(PG(open_basedir))) {
+ flags &= ~CLIENT_MULTI_STATEMENTS; /* don't allow multi_queries via connect parameter */
+ if (PG(open_basedir) && PG(open_basedir)[0] != '\0') {
flags ^= CLIENT_LOCAL_FILES;
}
Modified: trunk/php5/ext/mysqli/mysqli_nonapi.c
Modified: trunk/php6/ext/mysqli/config9.m4
PHP_ARG_WITH(mysqli, for MySQLi support, -[ --with-mysqli[=FILE] Include MySQLi support. FILE is the optional pathname to mysql_config. +[ --with-mysqli[=FILE] Include MySQLi support. FILE is the optional pathname to mysql_config [mysql_config].
If mysqlnd is passed as FILE, the MySQL native driver will be used])
PHP_ARG_ENABLE(embedded_mysqli, whether to enable embedded MySQLi support, Modified: trunk/php6/ext/mysqli/mysqli_api.c
+ if (PG(open_basedir) && PG(open_basedir)[0] != '\0') {
+ if(mysql_option == MYSQL_OPT_LOCAL_INFILE) {
+ RETURN_FALSE;
+ }
+ }
+
switch (Z_TYPE_PP(&mysql_value)) {
case IS_UNICODE:
zval_unicode_to_string(mysql_value TSRMLS_CC);
- +
for (i = mysql_stmt_field_count(stmt->stmt) - 1; i >=0; --i) {
if (stmt->stmt->fields && stmt->stmt->fields[i].type == MYSQL_TYPE_BLOB) {
my_bool tmp=1;
Modified: trunk/php6/ext/mysqli/mysqli_nonapi.c
-- MySQL Code Commits Mailing List For list archives: http://lists.mysql.com/commits To unsubscribe: http://lists.mysql.com/commits?unsub=lists@pantek.comReceived on Mon Jul 23 12:52:59 2007 This archive was generated by hypermail 2.1.8 : Thu Aug 09 2007 - 19:11:36 EDT |
||||||||||
|
|||||||||||