johannes                Fri Jan  9 14:28:31 2009 UTC

  Modified files:              
    /php-src/ext/mysqli mysqli_api.c 
  Log:
  Fix #46653 mysqlnd: can't extend mysqli
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/mysqli_api.c?r1=1.170&r2=1.171&diff_format=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.170 
php-src/ext/mysqli/mysqli_api.c:1.171
--- php-src/ext/mysqli/mysqli_api.c:1.170       Wed Dec 31 11:12:33 2008
+++ php-src/ext/mysqli/mysqli_api.c     Fri Jan  9 14:28:31 2009
@@ -17,7 +17,7 @@
   |          Ulf Wendel <u...@php.net>                                     |
   +----------------------------------------------------------------------+
 
-  $Id: mysqli_api.c,v 1.170 2008/12/31 11:12:33 sebastian Exp $ 
+  $Id: mysqli_api.c,v 1.171 2009/01/09 14:28:31 johannes Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -1366,7 +1366,7 @@
        MYSQLI_RESOURCE *mysqli_resource;
        MY_MYSQL *mysql;
 
-       if (getThis() && instanceof_function(Z_OBJCE_P(getThis()), 
mysqli_link_class_entry TSRMLS_CC)) {
+       if (getThis() && ((mysqli_object *) 
zend_object_store_get_object(getThis() TSRMLS_CC))->ptr) {
                return;
        }
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to