Re: Symbol not found: _TSRMSLS_FETCH

From: Date: Tue, 10 Jun 2008 19:48:42 +0000
Subject: Re: Symbol not found: _TSRMSLS_FETCH
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-38151@lists.php.net to get a copy of this message
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

« previous php.internals (#38151) next »