Open Gizmo091 opened 2 years ago
Hi @Gizmo091 , could you please test our new version https://github.com/javanile/php-imap2/releases/tag/0.1.9
Hi @francescobianco, I can confirm that this bug still exists in v0.1.10.
Like @Gizmo091 already noted, the variable $section
is never initialized in the bodyStruct function. The Section is actually passed as $flag
argument (which is unused in this function): https://github.com/javanile/php-imap2/blob/0.1.10/bootstrap.php#L945
Summary
Trying to use imap2_bodystruct, the function throw a notice for an undefined variable called section.
Current behavior
A call to imap2_bodystruct function trigger an "undefined variable" notice.
Indeed, the $section variable is never declared or instantiated.