The following code works fine for me.
<?php
namespace LF\Utility;
require_once 'callme.php';
use LF\Utility\Callme;
class Threaded extends \Thread {
public function __construct(){
//Constructor stuff
}
public function run(){
echo "in thread" . PHP_EOL;
$test = new Callme(1);
}
}
$t = new Threaded();
$t->start();
How are you loading the "Callme" class in the main class? Autoloader? Or something else? Please check that.