]> granicus.if.org Git - php/commitdiff
fixed bug #29283
authorGeorg Richter <georg@php.net>
Thu, 2 Sep 2004 04:53:01 +0000 (04:53 +0000)
committerGeorg Richter <georg@php.net>
Thu, 2 Sep 2004 04:53:01 +0000 (04:53 +0000)
ext/mysqli/php_mysqli.h

index 7a29d8b6d3f83bd1f48f1f9f4d5eac171060c7da..dfd4f6cd4c0e1f6a973b1cf5dd03584491153a8a 100644 (file)
@@ -181,7 +181,7 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry * TSRML
        } \
        __ptr = (__type)my_res->ptr; \
        if (!strcmp((char *)__name, "mysqli_stmt")) {\
-               if (!((MYSQL_STMT *)__ptr)->mysql) {\
+               if (!((MY_STMT *)__ptr)->stmt->mysql) {\
                        php_error(E_WARNING, "Statement isn't valid anymore");\
                        RETURN_NULL();\
                }\