the last few days I have been using PHP threads (pthreads) with PHP 7.0.1 (with -enable-maintainer-zts in configure), and everything works fine when using Thread or Worker. When I tried to create a class that inherits from Stackable for Worker, I got "Fatal error: Class" Stackable "not found".
With get_declared_classes (), I realized that for the threads I only had the Threaded, Volatile, Thread, Worker and Pool classes. I thought this was a problem with the pthreads version (it was the latest version 3.1.15), but there was an error uninstalling it and setting it back to 3.0.0.
Also, the PHP manual (in English) does not mention the Stackable class, although it is important to do Worker's work. What am I missing here?
source
share