Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$message->getSize() throws an exception #411

Closed
TonyMarston opened this issue May 31, 2023 · 1 comment
Closed

$message->getSize() throws an exception #411

TonyMarston opened this issue May 31, 2023 · 1 comment
Labels
bug Something isn't working validated

Comments

@TonyMarston
Copy link

Describe the bug
A call to $message->getSize() fails with:

Uncaught exception: Cannot use object of type stdClass as array, code=0, file=F:\Apache2\HTDOCS\GMX-Transix\includes\vendor\webklex\php-imap\src\Connection\Protocols\LegacyProtocol.php, line=339

Used config

Code to Reproduce
The troubling code section which produces the reported bug.

$size = $message->getSize();

Expected behavior
I expect it to return the size of the message body.

Screenshots

Desktop / Server (please complete the following information):

  • OS: Windows 10
  • PHP: 8.2.5
  • Version 5.2
  • Provider Office365

Additional context

@Webklex Webklex added bug Something isn't working validated labels Jun 23, 2023
@Webklex Webklex reopened this Jun 23, 2023
@Webklex
Copy link
Owner

Webklex commented Jun 23, 2023

Hi @TonyMarston,
many thanks for your report. I was able to reproduce the issue and pushed a fix.

If you have any more questions or need further assistance, feel free to let me know.

Best regards and happy coding!

@Webklex Webklex closed this as completed Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validated
Projects
None yet
Development

No branches or pull requests

2 participants