|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75446 Reflection error
Submitted: 2017-10-27 11:30 UTC Modified: 2020-09-14 11:54 UTC
Avg. Score:2.0 ± 1.0
Reproduced:0 of 0 (0.0%)
From: gullij at gulli dot net Assigned: carusogabriel (profile)
Status: Closed Package: mailparse (PECL)
PHP Version: 7.1.10 OS: Fedora 25
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: gullij at gulli dot net
New email:
PHP Version: OS:


 [2017-10-27 11:30 UTC] gullij at gulli dot net
Reflection on mailparse_rfc822_parse_addresses gives wrong information about the function. This was originally reported in phpstan bug tracker on github:

Test script:
$reflection = new \ReflectionFunction('mailparse_rfc822_parse_addresses');

Expected result:
Reflection should return one parameter in the array.

Actual result:
Returns an empty array


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-07 15:36 UTC] carusogabriel34 at gmail dot com
This should be reported to, not PHP itself.
 [2018-02-07 16:37 UTC] gullij at gulli dot net
I did report it to the PECL mailparse package, the "Report new bug" link on that page leads to where I filled in the report.

This bug is marked with package mailparse (PECL), I don't know what more is required.
 [2019-02-18 02:24 UTC]
-Status: Open +Status: Assigned
 [2019-02-18 02:24 UTC]
Looks like there's no Reflection information at all for mailparse_* functions:
 [2019-02-18 02:28 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: carusogabriel
 [2020-09-14 11:54 UTC]
-Status: Assigned +Status: Closed
 [2020-09-14 11:54 UTC]
This is fixed as of mailparse 3.1.0.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 09:03:35 2021 UTC