Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Dec 22, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

ndossche and others added 16 commits December 22, 2025 11:51
By returning the stream directly, we avoid calling some helpers
functions and it becomes more clear on what stream the code actually
acts upon.
* PHP-8.3:
  intl: Fix leak in umsg_format_helper()
* PHP-8.4:
  intl: Fix leak in umsg_format_helper()
* PHP-8.5:
  intl: Fix leak in umsg_format_helper()
The current code causes the phar entry to remain in the fname cache.
This would be fine for uncompressed phars, but is a problem for
compressed phars when they try to reopen the file pointer.
The reopen code will try to use the compressed file pointer as if it
were an uncompressed file pointer. In that case, for the given test, the
file offsets are out of bounds for the compressed file pointer because
they are the uncompressed offsets. This results in empty files.
In other cases, it's possible to read compressed parts of the file that don't
belong to that particular file.
To solve this, we simply remove the phar entry from the fname cache if
the file pointer was closed but the phar is compressed. This will make
sure that reopening the phar will not go through the cache and instead
opens up a fresh file pointer with the right decompression settings.

Closes GH-20754.
* PHP-8.4:
  Fix bug #74154: Phar extractTo creates empty files
* PHP-8.5:
  Fix bug #74154: Phar extractTo creates empty files
PHP 8.5 defines constant ZEND_VM_KIND since GH-19574, but this name is also
used by zend_vm_gen.php. This causes zend_vm_gen.php to generate invalid
code when executed with PHP 8.5 in an older branch.

Here I rename the constant in zend_vm_gen.php.
* PHP-8.3:
  Fix zend_vm_gen.php when executed with PHP 8.5
* PHP-8.4:
  Fix zend_vm_gen.php when executed with PHP 8.5
* PHP-8.5:
  Fix zend_vm_gen.php when executed with PHP 8.5
With macos Tahoe and clang "17.0.0" (Xcode) the ext/posix/tests/posix_getgrgid_macosx.phpt test crashes as follow:

ext/posix/posix.c:681:19: runtime error: load of misaligned address 0x60800000e972 for type 'char **', which requires 8 byte alignment
0x60800000e972: note: pointer points here
70 00  2a 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00
seems memcpy had been translated to a load instruction ?
anyhow, we force to copy a "proper" char * source.

close GH-20744
* PHP-8.3:
  ext/posix: (Further) fix groups array creation on macos.
* PHP-8.4:
  ext/posix: (Further) fix groups array creation on macos.
* PHP-8.5:
  ext/posix: (Further) fix groups array creation on macos.
@pull pull bot locked and limited conversation to collaborators Dec 22, 2025
@pull pull bot added the ⤵️ pull label Dec 22, 2025
@pull pull bot merged commit c1e450d into turkdevops:master Dec 22, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants