CodeIgniter Forums

Full Version: Threading integration in codeigniter ver 3.1 and php ver >=5.6 not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello Everyone could anyone help me for the below.

I am trying create on library class which has do some curl call using my model method.
see below code snippet-
PHP Code:
class CI_Multi_thread extends Thread {
   protected $CI;
   public function __construct($data=array()) {
       $this->CI =&get_instance();
   public function run($data=array()) {

but &get_instance(); is not working. show "Fatal error: Cannot assign by reference to overloaded object in C:\xampp\htdocs\darshan\system\libraries\Multi_thread.php on line 8
also my server is also close my current process when last running thread is stop.

after all it stop my complete server working for 5 second.

I am also attaching my libraries and model file here.