Re: [PHP-DEV] Symbol not found: _TSRMSLS_FETCH

2008-06-10 Thread Christoph Dorn
> That's TSRMLS_FETCH() (you have extra S). So now I have: PHP_RINIT_FUNCTION(vardumpoverload) { zend_function *orig_1; TSRMLS_FETCH(); /* Override require_once with our own function */ zend_hash_find(CG(function_table), "require_once", 13, (void **)&orig_1); VARDUMPOVERLOA

[PHP-DEV] Symbol not found: _TSRMSLS_FETCH

2008-06-10 Thread Christoph Dorn
I am trying to call CG(function_table) from within my PHP_RINIT_FUNCTION() and from what I have found I need to call TSRMSLS_FETCH() first to populate the function table in a thread safe way. When I run the extension I get: dyld: lazy symbol binding failed: Symbol not found: _TSRMSLS_FETCH Refe

[PHP-DEV] Calling original function from an overloaded function

2008-06-09 Thread Christoph Dorn
I have been looking at xdebug and have figured out how to overload a function. As a test I have overloaded the var_dump function. Now how do I call the original var_dump function from my implementation? Borrowing from OO terminology I have subclassed the var_dump method, now I want to call parent: