|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
15 - 1 = ?
Subscribe to this entry?

 [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: Sat Jul 24 23:01:23 2021 UTC