last few days I am using PHP threads (pthreads) with PHP 7.0.1 (with –enable-maintainer-zts in the configure) and all works well when using Thread or Worker. When I tried to create a class that inherits from Stackable for a Worker I got “Fatal error: Class 'Stackable' not found” .
With get_declared_classes() I realized that for threads I had only the classes Threaded , Volatile , Thread , Worker and Pool. I thought it was a problem with the version of pthreads (it was the latest 3.1.15) but uninstalling it and installing back to 3.0.0 the same error occurred.
Also the PHP manual (in English) doesn't mention the Stackable class although it is essential to make a Worker work. What am I missing here?