-
Notifications
You must be signed in to change notification settings - Fork 501
How to install pthreads extension as a shared extension. #2
Comments
Should be fixed in latest commit, can you confirm ? |
let me take a look. maybe I'll send a patch for this. |
sorry, I can't find how to fix this problem. probably this extension should be compile with php on linux machine. here is my report. Install pthreads extension as a shared lib.
run a thread
can't find okay, check zend_activate symbols
there is no build environment
Thanks |
I have a solution to this that presents an opportunity for some optimization, but haven't the time to implement it for a few days. It will be fixed in the next week or so ... hope you're getting on with it otherwise ... |
I'm afraid that after a closer look, this cannot be reasonable solved. Copying these functions into the pthreads source will be a maintenance nightmare ... |
no problem, thank you! |
Just to give you an update, you can now build shared ... I still don't recommend it, but it's got to be an option for testing, and so it is ... in production you should compile statically, initialization of the threads environment is less than optimal when loading pthreads as a DSO. |
@krakjoe Thank you. this would be helpful that testing pthreads features.
i think you should add this attention to README.md. |
Thanks Joe, glad you got this working. You're awesome! |
Hi I'm interested in how to use TSRM API correctly as I'm playing php-uv (libuv extension).
your project is very good reference about TSRM I've ever seen!
anyway, how to install this extension as a shared extension?
some unexported functions (e.g
zend_activate
...) used inpthreads_object.h
and shared extension can't resolve those.on OSX.
btw, I've tested with static extension and it seems good.
Thanks,
The text was updated successfully, but these errors were encountered: