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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC