Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38151 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10812 invoked from network); 10 Jun 2008 19:48:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2008 19:48:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:15218] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/34-15621-5AADE484 for ; Tue, 10 Jun 2008 15:48:54 -0400 Received: from [192.168.17.58] ([192.168.17.58]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Jun 2008 22:48:54 +0300 Message-ID: <484EDA9A.40602@zend.com> Date: Tue, 10 Jun 2008 22:48:42 +0300 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: christoph@christophdorn.com CC: internals@lists.php.net References: <484ECDA2.3040609@christophdorn.com> <484ED5F1.7030306@zend.com> <484ED970.6020507@christophdorn.com> In-Reply-To: <484ED970.6020507@christophdorn.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Jun 2008 19:48:54.0901 (UTC) FILETIME=[03E29250:01C8CB33] Subject: Re: [PHP-DEV] Symbol not found: _TSRMSLS_FETCH From: stas@zend.com (Stanislav Malyshev) > So now I have: > > PHP_RINIT_FUNCTION(vardumpoverload) > { > zend_function *orig_1; > > TSRMLS_FETCH(); You don't need fetch here, RINIT already gets it as a parameter. > When I don't use TSRMLS_FETCH(); at all I get a "Bus error" when running > the extension and calling require_once(). You shouldn't look for require_once in function table, it's not a function, it's syntax construct. If you do look stuff up, it is a good idea to check the return value of the lookup function. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com