Repository navigation
PHPLIB-1996: PHP 8.6 compatibility migration - #2078
Merged
Merged
Conversation
Member
|
Thank you @Visualq, this is really appreciated. We almost forgot to test our lib with PHP 8.6. |
This comment was marked as resolved.
This comment was marked as resolved.
GromNaN
force-pushed
the
feature/php86-migration
branch
from
November 16, 2026 17:04
9f9dd35 to
4912904
Compare
PHP 8.6 makes fclose() and file_put_contents() return false when the wrapper does not implement stream_flush().
GromNaN
force-pushed
the
feature/php86-migration
branch
from
November 16, 2026 17:35
6fb98c4 to
e248566
Compare
GromNaN
reviewed
Nov 16, 2026
| driver-version: ${{ matrix.driver-version || 'stable' }} | ||
| php-ini-values: "zend.assertions=1" | ||
| ignore-platform-req: ${{ matrix.php-version == '8.5' && 'true' || 'false' }} | ||
| ignore-platform-req: ${{ matrix.php-version == '8.6' && 'true' || 'false' }} |
Member
There was a problem hiding this comment.
This is a restriction from psalm. It's now compatible with PHP 8.5.
GromNaN
reviewed
Nov 16, 2026
| * | ||
| * @see https://php.net/manual/en/streamwrapper.stream-flush.php | ||
| */ | ||
| public function stream_flush(): bool |
Member
There was a problem hiding this comment.
fflush() returned false on every supported PHP version before this method existed, and now returns true. Data is still buffered until the stream is closed, so the flush is a no-op, but the return value change is not limited to PHP 8.6.
GromNaN
approved these changes
Nov 16, 2026
Merged
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PHP 8.6 to CI, replace is_integer() with is_int(), and replace deprecated SplObjectStorage aliases.
The ArrayObject object-backing deprecation remains open: tests on PHP 8.5 and 8.6 confirm that casting BSONDocument's stdClass input to an array breaks bidirectional propagation of updates, additions, and deletions; resolving this requires a separate compatibility decision.
AI was used to verify the correctness of this merge request.