History log of /PHP-8.2/ext/zend_test/test_arginfo.h (Results 26 – 50 of 98)
Revision Date Author Comments
# e61dbe54 01-Aug-2023 Ilija Tovilo

Fix zend/test arginfo stub hash


# 62228a25 31-Jul-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Disable global state test on Windows

It looks like the config.w32 uses CHECK_HEADER_ADD_INCLUDE to add the include
path to libxml into the search path.
That doesn't happen in zend-te

Disable global state test on Windows

It looks like the config.w32 uses CHECK_HEADER_ADD_INCLUDE to add the include
path to libxml into the search path.
That doesn't happen in zend-test.
To add to the Windows trouble, libxml is statically linked in, ext/libxml can
only be built statically but ext/zend-test can be built both statically and
dynamically.
So the regression tests won't work in all possible configurations anyway on Windows.
All of this is no problem on Linux because it just uses dynamic linking
and pkg-config, without any magic.

Signed-off-by: Ben Ramsey <ramsey@php.net>

show more ...


# 855dd276 31-Jul-2023 Derick Rethans

Fixed another broken merge (sorry)


# dcc42955 31-Jul-2023 Derick Rethans

Fixed artifacts from merging


# c283c3ab 15-Jul-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Sanitize libxml2 globals before parsing

Fixes GHSA-3qrf-m4j2-pcrr.

To parse a document with libxml2, you first need to create a parsing context.
The parsing context contains par

Sanitize libxml2 globals before parsing

Fixes GHSA-3qrf-m4j2-pcrr.

To parse a document with libxml2, you first need to create a parsing context.
The parsing context contains parsing options (e.g. XML_NOENT to substitute
entities) that the application (in this case PHP) can set.
Unfortunately, libxml2 also supports providing default set options.
For example, if you call xmlSubstituteEntitiesDefault(1) then the XML_NOENT
option will be added to the parsing options every time you create a parsing
context **even if the application never requested XML_NOENT**.

Third party extensions can override these globals, in particular the
substitute entity global. This causes entity substitution to be
unexpectedly active.

Fix it by setting the parsing options to a sane known value.
For API calls that depend on global state we introduce
PHP_LIBXML_SANITIZE_GLOBALS() and PHP_LIBXML_RESTORE_GLOBALS().
For other APIs that work directly with a context we introduce
php_libxml_sanitize_parse_ctxt_options().

show more ...


# ef4f0883 04-Jul-2023 Ilija Tovilo

Revert "Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs"

This reverts commit d7ab0ff0c81bf672c3d4ac73e1b2cbd158296eef.


# d7ab0ff0 03-Jul-2023 Máté Kocsis

Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs


# 0ac55e9b 15-Apr-2023 Jakub Zelenka

Add zend_test_crash funtion to segfault PHP process

This is useful for testing PHP-FPM handling of crashed children.

Closes GH-11082


# 8a9b80cf 07-Mar-2023 Derick Rethans

Add test case


# ff62d117 04-Mar-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-8646: Memory leak PHP FPM 8.1

Fixes GH-8646
See https://github.com/php/php-src/issues/8646 for thorough discussion.

Interned strings that hold class entries can get a cor

Fix GH-8646: Memory leak PHP FPM 8.1

Fixes GH-8646
See https://github.com/php/php-src/issues/8646 for thorough discussion.

Interned strings that hold class entries can get a corresponding slot in map_ptr for the CE cache.
map_ptr works like a bump allocator: there is a counter which increases to allocate the next slot in the map.

For class name strings in non-opcache we have:
- on startup: permanent + interned
- on request: interned
For class name strings in opcache we have:
- on startup: permanent + interned
- on request: either not interned at all, which we can ignore because they won't get a CE cache entry
or they were already permanent + interned
or we get a new permanent + interned string in the opcache persistence code

Notice that the map_ptr layout always has the permanent strings first, and the request strings after.
In non-opcache, a request string may get a slot in map_ptr, and that interned request string
gets destroyed at the end of the request. The corresponding map_ptr slot can thereafter never be used again.
This causes map_ptr to keep reallocating to larger and larger sizes.

We solve it as follows:
We can check whether we had any interned request strings, which only happens in non-opcache.
If we have any, we reset map_ptr to the last permanent string.
We can't lose any permanent strings because of map_ptr's layout.

Closes GH-10783.

show more ...


# 7fccdf72 10-Feb-2023 SATO Kentaro

Add support for generating namespaced constant

Closes GH-10552


# fdd088fc 03-Oct-2022 Martin Schröder

Properly deal with internal attributes used on promoted properties.

Closes GH-9661


# e4f23769 26-Sep-2022 Máté Kocsis

Improve string class constant code generation (#9577)

Using strlen() will make sure that non-constant values can also be used.


# 3e362f51 13-Aug-2022 George Peter Banyard

Add zend_string INI validators

Currently we only have validators for char* which is rather annoying as INI settings are saved as zend_string* in the first place

Closes GH-9328


# c547fc18 05-Sep-2022 Máté Kocsis

Add support for validation of missing class synopses (#9472)


# 869ab3c4 30-Aug-2022 Máté Kocsis

Adjust PHPDoc


# ef21bbe6 30-Aug-2022 Máté Kocsis

Fix zend/test aliases


# f7d42f64 23-Aug-2022 Andreas Braun

Update gen_stub to avoid compile errors on duplicate function names

Closes GH-9406


# b4ec3e9b 28-Aug-2022 Máté Kocsis

Do not generate CONST_CS when registering constants (#9439)


# 668dbaf6 30-Jul-2022 Máté Kocsis

Declare the TestInterface::DUMMY constant in stub


# 3c016467 28-Jul-2022 Andreas Braun

Escape \U and \u in generated stubs

This fixes an issue where a namespaced class beginning with "U" or "u"
would yield an invalid arginfo file due to the occurrence of a unicode
esca

Escape \U and \u in generated stubs

This fixes an issue where a namespaced class beginning with "U" or "u"
would yield an invalid arginfo file due to the occurrence of a unicode
escape sequence, causing a compile error.

Co-authored-by: Guilliam Xavier <guilliamxavier@users.noreply.github.com>

Closes GH-9154.

show more ...


# f4b5051c 25-Jul-2022 Máté Kocsis

Declare ext/zend_test constants in stubs (#9135)


# 4457dba1 22-Jul-2022 George Peter Banyard

Add support for stubs to declare intersection type class properties (#8751)


# 41a5b46e 21-Jul-2022 Ilija Tovilo

Fix RC debug of stub attribute (#9082)


# 6e24c16c 12-Jul-2022 Remi Collet

add compatibility for tentative-return-type


1234