Here's an gist of what I'm attempting
As you can see, it should overload run within pthreads_thread_entry parent, but it doesn't.
<?php
$test = new Test();
$test->start();
$test->join();
?>
Should print a thread id and sleep 10 seconds, but it doesn't print anything (but var_dump($test->start())
returns bool true) and it does't sleep. However, directly calling $test->run();
will work (however likely not within it's own thread - haven't tested)
What gives? How do you overload Threaded::run inside of a custom internal class within pthread ext?