Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

PHP mysqlnd svn commit: r561 - in trunk: php5/ext/mysql php6/ext/mysql

From: <ahristov(at)mysql.com>
Date: Thu Jun 28 2007 - 08:00:21 EDT


Author: ahristov
Date: 2007-06-28 14:00:21 +0200 (Thu, 28 Jun 2007) New Revision: 561

Modified:

   trunk/php5/ext/mysql/php_mysql.c
   trunk/php6/ext/mysql/php_mysql.c
Log:
Fix crash in 003.phpt

Modified: trunk/php5/ext/mysql/php_mysql.c


  • trunk/php5/ext/mysql/php_mysql.c 2007-06-28 11:53:41 UTC (rev 560) +++ trunk/php5/ext/mysql/php_mysql.c 2007-06-28 12:00:21 UTC (rev 561) @@ -2045,7 +2045,8 @@
    #endif

#ifdef ZEND_ENGINE_2

-	if (into_object) {
+	/* mysqlnd might return FALSE if no more rows */
+	if (into_object && Z_TYPE_P(return_value) != IS_BOOL) {
 		zval dataset = *return_value;
 		zend_fcall_info fci;
 		zend_fcall_info_cache fcc;

Modified: trunk/php6/ext/mysql/php_mysql.c


  • trunk/php6/ext/mysql/php_mysql.c 2007-06-28 11:53:41 UTC (rev 560) +++ trunk/php6/ext/mysql/php_mysql.c 2007-06-28 12:00:21 UTC (rev 561) @@ -2019,7 +2019,8 @@ mysqlnd_fetch_into(mysql_result, MYSQLND_FETCH_ASSOC, return_value, MYSQLND_MYSQL);
    #endif
    • if (into_object) { + /* mysqlnd might return FALSE if no more rows */ + if (into_object && Z_TYPE_P(return_value) != IS_BOOL) { zval dataset = *return_value; zend_fcall_info fci; zend_fcall_info_cache fcc;
-- 
MySQL Code Commits Mailing List
For list archives: 
http://lists.mysql.com/commits
To unsubscribe:    
http://lists.mysql.com/commits?unsub=lists@pantek.com
Received on Thu Jun 28 08:00:45 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 28 2007 - 08:10:02 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library