php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #71265
Patch pthreads-php-7-0-1 revision 2016-01-02 23:47 UTC by konstantinos at wgr dot gr

Patch pthreads-php-7-0-1 for pthreads Bug #71265

Patch version 2016-01-02 23:47 UTC

Return to Bug #71265 | Download this patch
Patch Revisions:

Developer: konstantinos@wgr.gr

class My extends Thread {
    public function run() {
        global $std;
        
        Thread::globally(function(){
            $std = new stdClass;
        });
        
        var_dump($std);
    }
}
$my = new My();
$my->start();
// result: PHP Fatal error:  Uncaught Error: Call to undefined method Thread::globally()
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jul 28 16:01:23 2021 UTC