php.net |  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: 2019-02-18 02:28 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: gullij at gulli dot net Assigned: carusogabriel (profile)
Status: Assigned Package: mailparse (PECL)
PHP Version: 7.1.10 OS: Fedora 25
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 — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 - 35 = ?
Subscribe to this entry?

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


Test script:
---------------
$reflection = new \ReflectionFunction('mailparse_rfc822_parse_addresses');
var_dump($reflection->getParameters());



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

Actual result:
--------------
Returns an empty array

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-07 15:36 UTC] carusogabriel34 at gmail dot com
This should be reported to https://pecl.php.net/package/mailparse, 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 https://bugs.php.net/report.php?package=mailparse 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] carusogabriel@php.net
-Status: Open +Status: Assigned
 [2019-02-18 02:24 UTC] carusogabriel@php.net
Looks like there's no Reflection information at all for mailparse_* functions: https://github.com/php/pecl-mail-mailparse/blob/7df6d614e79ebdb2bf75f4913450229b55e72078/mailparse.c#L74-L91.
 [2019-02-18 02:28 UTC] carusogabriel@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: carusogabriel
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 12:01:23 2019 UTC