one should, could somebody comment/commit etc.
The patch includes a number of changes... -
pcntl_zend_extension_active does not appear to be getting set when using modules
Can you explain what you mean by modules, are you refering to building
as a dynamic .so?
Yes. dl("pcntl.so");
added a new function
pcntl_doevents = works a bit like gtk::do_events();
basically calls any pending signal callbacks. - as the pcntl_zend_extension_statement_handler did not appear to get called when running from a module.
Can you explain how you are/would be using this function. The reason why
pcntl_zend_extension_statement_handler is set to s zend_statement_handle
is becuase there is the possibiilty that PHP/Zend could be in the
process of chaging an internal datastructure when a signal is recieved,
and if another php routine is executed at that state of time, corruption
could possibly occur, resulting in a segfault. Insuring that a php
signal handle is only executed between opcodes makes pcntl async safe.
I eventually worked out that all I needed was usleep(1), it appears that it does actually work, yeah, This was one of the concerns we had looking at the pthreads (next task read your post on that :)