|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76498 Unable to use callable as callback
Submitted: 2018-06-19 03:38 UTC Modified: 2020-09-14 13:38 UTC
Avg. Score:3.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: anrdaemon at freemail dot ru Assigned: cmb (profile)
Status: Closed Package: mailparse (PECL)
PHP Version: 7.1.18 OS: All
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:
36 - 21 = ?
Subscribe to this entry?

 [2018-06-19 03:38 UTC] anrdaemon at freemail dot ru
PHP Recoverable fatal error:  Object of class Closure could not be converted to string in …/parser.php on line 45

The construction is 

$parser = function(){};
mailparse_msg_extract_part_file(mailparse_msg_get_part($msg, $section), $file, $parser);


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-09-14 13:38 UTC]
The following pull request has been associated:

Patch Name: Fix #76498: Unable to use callable as callback
On GitHub:
 [2020-09-14 13:38 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-09-15 10:55 UTC]
Automatic comment on behalf of
Log: Fix #76498: Unable to use callable as callback
 [2020-09-15 10:55 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 07:03:33 2021 UTC