]> granicus.if.org Git - php/commitdiff
use php_error_docref() instead of php_error() everywhere
authorAntony Dovgal <tony2001@php.net>
Tue, 18 Oct 2005 13:51:20 +0000 (13:51 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 18 Oct 2005 13:51:20 +0000 (13:51 +0000)
ext/mysqli/php_mysqli.h

index 5999d12551dbc9292616f88cdb8f35dd75d7717a..a55df7f26ee7ec11934e1c87a08d1b93cd94c4d0 100644 (file)
@@ -204,17 +204,17 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry * TSRML
        MYSQLI_RESOURCE *my_res; \
        mysqli_object *intern = (mysqli_object *)zend_object_store_get_object(*(__id) TSRMLS_CC);\
        if (!(my_res = (MYSQLI_RESOURCE *)intern->ptr)) {\
-               php_error(E_WARNING, "Couldn't fetch %s", intern->zo.ce->name);\
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't fetch %s", intern->zo.ce->name);\
                RETURN_NULL();\
        }\
        if (!intern->valid) { \
-               php_error(E_WARNING, "invalid resource %s", intern->zo.ce->name); \
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "invalid resource %s", intern->zo.ce->name); \
                RETURN_NULL(); \
        } \
        __ptr = (__type)my_res->ptr; \
        if (!strcmp((char *)__name, "mysqli_stmt")) {\
                if (!((MY_STMT *)__ptr)->stmt->mysql) {\
-                       php_error(E_WARNING, "Statement isn't valid anymore");\
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Statement isn't valid anymore");\
                        RETURN_NULL();\
                }\
        }\