]> granicus.if.org Git - php/commitdiff
Fixed bug #25744 (make ZTS build of ext/sybase compile)
authorIlia Alshanetsky <iliaa@php.net>
Fri, 3 Oct 2003 13:03:40 +0000 (13:03 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 3 Oct 2003 13:03:40 +0000 (13:03 +0000)
ext/sybase/php_sybase_db.c

index 40f09dd427aecc66da982a5e638e4199f1775589..3c5b345dba46e29438009738fef2fbc48eaaeb0d 100644 (file)
@@ -144,6 +144,7 @@ static int php_sybase_error_handler(DBPROCESS *dbproc,int severity,int dberr,
                                                                                int oserr,char *dberrstr,char *oserrstr)
 {
        if (severity >= php_sybase_module.min_error_severity) {
+               TSRMLS_FETCH();
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase error:  %s (severity %d)",dberrstr,severity);
        }
        return INT_CANCEL;  
@@ -155,6 +156,7 @@ static int php_sybase_message_handler(DBPROCESS *dbproc,DBINT msgno,int msgstate
                                                                                char *procname,DBUSMALLINT line)
 {
        if (severity >= php_sybase_module.min_message_severity) {
+               TSRMLS_FETCH();
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase message:  %s (severity %d)",msgtext,severity);
        }
        STR_FREE(php_sybase_module.server_message);