|  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: -
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-2019 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 01:01:25 2019 UTC