|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71338 Call to undefined method Thread::detach()
Submitted: 2016-01-11 15:15 UTC Modified: 2017-04-01 21:45 UTC
From: ts_9 at hotmail dot fr Assigned: tpunt (profile)
Status: Closed Package: pthreads (PECL)
PHP Version: 7.0.2 OS: Ubuntu
Private report: No CVE-ID: None
 [2016-01-11 15:15 UTC] ts_9 at hotmail dot fr
From manual page:

Although threads are working the static method Thread::detach appears not even exists with a fatal error “Call to undefined method Thread::detach()”.

Test script:
class NotificationRecorder extends Thread{
        function run(){
                echo "run";
$fork = new NotificationRecorder();


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-01 21:45 UTC]
-Status: Open +Status: Closed -Package: threads +Package: pthreads -Assigned To: +Assigned To: tpunt
 [2017-04-01 21:45 UTC]
The Thread::detach method was removed in pthreads v3 (targeting PHP 7). I have documented this on its manual page.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jun 16 21:01:24 2021 UTC