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

stream_read must return "" on eof (false means error) #3

Open
wants to merge 1 commit into
base: FRAMEWORK_6_0
Choose a base branch
from

Conversation

prigaux
Copy link

@prigaux prigaux commented Mar 3, 2024

fix needed for PHP 7.4 since commit « Report errors from stream read and write operations » d59aac58b3e7da7ad01a194fe9840d89725ea229

it especially fixes file_put_contents in imp addAttachmentFromPart on PHP 7.4

fix needed for PHP 7.4 since commit « Report errors from stream read and write operations » d59aac58b3e7da7ad01a194fe9840d89725ea229

it especially fixes file_put_contents in imp addAttachmentFromPart on PHP 7.4
@prigaux
Copy link
Author

prigaux commented Mar 3, 2024

Dixit https://www.php.net/manual/en/streamwrapper.stream-read.php :

If no more data is available, an empty string should be returned. To signal that reading failed, false should be returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant