PHP pthreads: difference between Threaded and Stackable

I am confused as to what is the difference between the two classes Threadedand Stackablethe pthreads PHP extension.

PHP is not mentioned in the manual pages Stackable, but it exists, and many pthreads texts mention this class; eg:

The call get_class_methods()shows that both classes implement the same methods and get_parent_class()returns FALSEfor both.

At the moment, I assume it Stackableis an alias Threaded. It is right?

+4
source share
1 answer
$stackable = new Stackable;
var_dump(get_class($stackable));

Outputs: line (8) "Threaded"

It seems my guess was correct.

+3
source

All Articles