]> 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:21:11 +0000 (04:21 +0000)
committerSascha Schumann <sas@php.net>
Mon, 23 Jul 2001 04:21:11 +0000 (04:21 +0000)
Zend/zend_alloc.c

index 74c4808f82949c8e0f031c5bb1ca5aa0d1d48526..42bc335a9b13c96bc4c3274648c106f9fa0ed0e7 100644 (file)
@@ -268,7 +268,7 @@ ZEND_API void *_erealloc(void *ptr, size_t size, int allow_failure ZEND_FILE_LIN
 
        p = orig = (zend_mem_header *) ((char *)ptr-sizeof(zend_mem_header)-MEM_HEADER_PADDING);
 
-#if defined(ZTS) && ZEND_DEBUG
+#if defined(ZTS) && TSRM_DEBUG
        if (p->thread_id != tsrm_thread_id()) {
                void *new_p;