Re: 2 problems with extension
| From: | Adam Klobukowski | Date: | Thu, 12 Jun 2008 12:29:16 +0000 |
| Subject: | Re: 2 problems with extension | ||
| References: | 1 2 3 4 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5517@lists.php.net to get a copy of this message | ||
Antony Dovgal pisze:
On 12.06.2008 15:47, Adam Klobukowski wrote:Ok, but ;) it hangs even with one request. Besides, I have this library tested in other multithreaded program... Using php_log_err, I was able to trace that: PHP_MINIT happesn exactly befor my function is called. That means that structure is initialized. Anyway... I can have debug information on stderr or any other std stream. Unfortunately I do not see that in logs or anywhere else... is there a way to get it? about that macros: Most of examples I could find, works with simple variables (int, long). Where can I find some with custom structures? Adam KlobukowskiPHP_ADD_LIBRARY_WITH_PATH() Look for examples in PECL/*/*.m4.a cannot be linked dynamically, it's a static library. You'll need .so to link it dynamically.Ok, not dynamically my mistake. So instead, I'd like to link with .a. What should I add to my config.m4?It means that you should make sure that the library can be used in multithreaded environment and if it is - make use of global macros (that are added to the sources automatically by ext-skel script).You probably have multithreaded Apache2 build.Ok, what does this mean for me?