]> granicus.if.org Git - php/commitdiff
tsrm_error is only available, if TSRM_DEBUG is defined.
authorSascha Schumann <sas@php.net>
Mon, 23 Jul 2001 04:19:32 +0000 (04:19 +0000)
committerSascha Schumann <sas@php.net>
Mon, 23 Jul 2001 04:19:32 +0000 (04:19 +0000)
Zend/zend_alloc.c

index 9709528d8c6cfededac324dad47bba66fe2286dc..74c4808f82949c8e0f031c5bb1ca5aa0d1d48526 100644 (file)
@@ -200,7 +200,7 @@ ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
        DECLARE_CACHE_VARS();
        ALS_FETCH();
 
-#if defined(ZTS) && ZEND_DEBUG
+#if defined(ZTS) && TSRM_DEBUG
        if (p->thread_id != tsrm_thread_id()) {
                tsrm_error(TSRM_ERROR_LEVEL_ERROR, "Memory block allocated at %s:(%d) on thread %x freed at %s:(%d) on thread %x, ignoring",
                        p->filename, p->lineno, p->thread_id,