Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99063 invoked by uid 1010); 16 Jan 2006 17:54:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99048 invoked from network); 16 Jan 2006 17:54:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2006 17:54:33 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:19628] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A8/39-13436-7DDDBC34 for ; Mon, 16 Jan 2006 12:54:32 -0500 Received: (qmail 30060 invoked from network); 16 Jan 2006 17:54:27 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 16 Jan 2006 17:54:27 -0000 Message-ID: <43CBDDD2.7030509@zend.com> Date: Mon, 16 Jan 2006 20:54:26 +0300 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: Jan Pieper CC: internals@lists.php.net References: <3D.16.13436.064DAC34@pb1.pair.com> <43CBAB7D.1070805@zend.com> <43CBAC98.9020805@php.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] problem with zend_register_internal_class From: antony@zend.com (Antony Dovgal) 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