Skip to content

sync #13

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

Merged
merged 159 commits into from
Dec 24, 2021
Merged

sync #13

merged 159 commits into from
Dec 24, 2021

Conversation

chopins
Copy link
Owner

@chopins chopins commented Dec 24, 2021

No description provided.

dstogov and others added 30 commits December 6, 2021 11:30
* PHP-8.0:
  Fix refcount inferemce ($a += $a returns old array with RCN)
* PHP-8.1:
  Fix refcount inferemce ($a += $a returns old array with RCN)
* PHP-8.1:
  Fix use after free because of data clobbering by user error handler
* PHP-8.0:
  JIT: Fix incorrect elimination of type store
* PHP-8.1:
  JIT: Fix incorrect elimination of type store
* PHP-8.0:
  Fixed incorrect DCE of a constructor call
* PHP-8.1:
  Fixed incorrect DCE of a constructor call
* PHP-8.0:
  Fix #75917: SplFileObject::seek broken with CSV flags
* PHP-8.1:
  Fix #75917: SplFileObject::seek broken with CSV flags
This is the same change as 56b18d4
but for ASSIGN_OP. Changing the operand type may change the error
message and can result in different behavior with operator overloading.

As with the other patch, if there is strong interest this could be
added to the DFA pass instead, with an appropriate type check.
* PHP-8.1:
  Don't convert assign op operand types in opcache
* PHP-8.1:
  Separate "cold" code
For some reason, this test fails now with "Incorrect syntax near ''.
[SELECT '�' as test FROM test WHERE id = '1']", so we skip it.
* PHP-8.0:
  Skip bug_36798.phpt for PDO_DBLIB
* PHP-8.1:
  Skip bug_36798.phpt for PDO_DBLIB
Now we flush only delayed opcodes realted to this nullsafe operator.

Fixes oss-fuzz #42152
* PHP-8.1:
  Fix crush after compilation of nullsafe operator introduced in 307e476
Fixes oss-fuzz #42155
* PHP-8.0:
  Fix incorrect JMP optimization
* PHP-8.1:
  Fix incorrect JMP optimization
The amount of allocated system memory is kept in `real_size`, including
the allocated `cached_chunks`.  Thus, we need to keep the proper count
at the end of the shutdown.

Closes GH-7745.
* PHP-8.0:
  Fix #81585: cached_chunks are not counted to real_size on shutdown
* PHP-8.1:
  Fix #81585: cached_chunks are not counted to real_size on shutdown
devnexen and others added 29 commits December 21, 2021 07:18
* PHP-8.0:
  zend gdb detection fix on FreeBSD.
* PHP-8.1:
  zend gdb detection fix on FreeBSD.
for systems using SO_PASSCRED sockopt flag but not using ucred struct.
* PHP-8.0:
  socket: ancillary credentials build fix for non linux systems.
* PHP-8.1:
  socket: ancillary credentials build fix for non linux systems.
* PHP-8.0:
  socket cmsg credential test fixes, "backporting" from the FreeBSD PR.
* PHP-8.1:
  socket cmsg credential test fixes, "backporting" from the FreeBSD PR.
When converting text to/from wchars, mbstring makes one function call
for each and every byte or wchar to be converted. Typically, each of
these conversion functions contains a state machine, and its state has
to be restored and then saved for every single one of these calls.
It doesn't take much to see that this is grossly inefficient.

Instead of converting one byte or wchar on each call, the new
conversion functions will either fill up or drain a whole buffer of
wchars on each call. In benchmarks, this is about 3-10× faster.

Adding the new, faster conversion functions for all supported legacy
text encodings still needs some work. Also, all the code which uses
the old-style conversion functions needs to be converted to use the
new ones. After that, the old code can be dropped. (The mailparse
extension will also have to be fixed up so it will still compile.)
This allows elimination of some Z_ISUNDEF(Bucket->val) checks.
* PHP-8.1:
  Fix the value param of SimpleXMLElement::addAttribute()
* PHP-8.0:
  $context parameter of get_headers() is nullable
* PHP-8.1:
  $context parameter of get_headers() is nullable
PHP 8.0 bumped the min curl version to 7.29.0

Closes GH-7805.
* PHP-8.0:
  [ci skip] Update the min curl version in the sync-constants.php script
* PHP-8.1:
  [ci skip] Update the min curl version in the sync-constants.php script
This is a tiny improvement to run-tests.php which helps keep it from
tripping over hidden files, including autosave files from various
editors, metadata on certain platforms, etc.

Closes GH-7783.
On NetBSD, ifconf.ifc_buf member, unlike most of platforms, is a void
pointer.

We also fix the cpuinfo declarations with empty parameter lists.

Closes GH-7819.
* PHP-8.0:
  Avoid void* arithmetic in sockets/multicast.c on NetBSD
* PHP-8.1:
  Avoid void* arithmetic in sockets/multicast.c on NetBSD
While the `path` is not supposed to be `NULL` for normal operation, it
is possible to create `SplFileInfo` objects where that is the case, and
we must not follow the null pointer.

Closes GH-7814.
* PHP-8.1:
  Fix GH-7809: Cloning a faked SplFileInfo object may segfault
@chopins chopins merged commit e80e7c1 into chopins:master Dec 24, 2021
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.