|
|||||||||||
|
PHP mysqlnd svn commit: r559 - in trunk: mysqlnd php4/ext/mysql php5/ext/mysql php6/ext/mysql
From: <ahristov(at)mysql.com>
Date: Thu Jun 28 2007 - 07:32:50 EDT
Modified: trunk/mysqlnd/mysqlnd.c trunk/php4/ext/mysql/php_mysql.c trunk/php5/ext/mysql/php_mysql.c trunk/php6/ext/mysql/php_mysql.c Log: Fix crashes. Make error message better. Modified: trunk/mysqlnd/mysqlnd.c
if (FAIL == PACKET_READ_ALLOCA(ok_packet, conn) || ok_packet.field_count >= 0xFE) {
if (ok_packet.field_count == 0xFE) {
- /* pre41 server !*/
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "mysqlnd cannot connect to MySQL < 4.1 servers");
+ /* old authentication with new server !*/
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "mysqlnd cannot connect to MySQL 4.1+ using old authentication");
} else if (ok_packet.field_count == 0xFF) {
if (ok_packet.sqlstate[0]) {
if (!self_alloced) {
Modified: trunk/php4/ext/mysql/php_mysql.c
-#ifndef HAVE_MYSQLND
if ((result_type & MYSQL_BOTH) == 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The result type should be either MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH.");
}
ZEND_FETCH_RESOURCE(mysql_result, MYSQL_RES *, result, -1, "MySQL result", le_result);
+#ifndef HAVE_MYSQLND
if ((mysql_row=mysql_fetch_row(mysql_result))==NULL
|| (mysql_row_lengths=mysql_fetch_lengths(mysql_result))==NULL) {
RETURN_FALSE;
Modified: trunk/php5/ext/mysql/php_mysql.c
-#ifndef HAVE_MYSQLND
if ((result_type & MYSQL_BOTH) == 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The result type should be either MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH");
}
ZEND_FETCH_RESOURCE(mysql_result, MYSQL_RES *, result, -1, "MySQL result", le_result);
+#ifndef HAVE_MYSQLND
if ((mysql_row=mysql_fetch_row(mysql_result))==NULL
|| (mysql_row_lengths=mysql_fetch_lengths(mysql_result))==NULL) {
RETURN_FALSE;
Modified: trunk/php6/ext/mysql/php_mysql.c
-#ifndef HAVE_MYSQLND
if ((result_type & MYSQL_BOTH) == 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "The result type should be either MYSQL_NUM, MYSQL_ASSOC or MYSQL_BOTH");
}
ZEND_FETCH_RESOURCE(mysql_result, MYSQL_RES *, result, -1, "MySQL result", le_result);
+#ifndef HAVE_MYSQLND
if ((mysql_row=mysql_fetch_row(mysql_result))==NULL
|| (mysql_row_lengths=mysql_fetch_lengths(mysql_result))==NULL) {
RETURN_FALSE;
-- 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 Thu Jun 28 07:33:33 2007 This archive was generated by hypermail 2.1.8 : Thu Jun 28 2007 - 07:40:04 EDT |
||||||||||
|
|||||||||||