|  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: -
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:
Status: Open Package: mailparse (PECL)
PHP Version: 7.1.18 OS: All
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Apr 01 02:01:22 2020 UTC