Re: problem with zend_register_internal_class

From: Date: Mon, 16 Jan 2006 17:54:26 +0000
Subject: Re: problem with zend_register_internal_class
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-21560@lists.php.net to get a copy of this message
On 16.01.2006 19:38, Jan Pieper wrote:
Antony Dovgal wrote:
You forgot to add TSRMLS_CC macro: zend_register_internal_class(&ce TSRMLS_CC);
see also http://www.php.net/manual/en/zend-api.zend-register-internal-class.php
Yeah thanks. It works, but I am wondering why it works without the TSRMLS_CC macro by another self-written class. Both classes were written in php-5.1.1.
Because in that case your code was compiled without thread safety enabled (and TSRMLS_* macros were not used at all, i.e. they were defined as empty). -- Wbr, Antony Dovgal

« previous php.internals (#21560) next »