php-src/tests
Christoph M. Becker 87d59d7fdd
Fix GH-15905: Assertion failure for TRACK_VARS_SERVER
When the superglobals are eagerly initialized, but "S" is not contained
in `variables_order`, `TRACK_VARS_SERVER` is created as empty array
with refcount > 1.  Since this hash table may later be modified, a flag
is set which allows such COW violations for assertions.  However, when
`register_argc_argv` is on, the so far uninitialized hash table is
updated with `argv`, what causes the hash table to be initialized, what
drops the allow-COW-violations flag.  The following update with `argc`
then triggers a refcount violation assertion.

Since we consider `HT_ALLOW_COW_VIOLATION` a hack, we do not want to
keep the flag during hash table initialization, so we initialize the
hash table right away after creation for this code path.

Closes GH-15930.
2024-09-26 15:33:35 +02:00
..
basic Fix GH-15905: Assertion failure for TRACK_VARS_SERVER 2024-09-26 15:33:35 +02:00
classes Deprecate implicit dynamic properties 2021-11-26 14:10:11 +01:00
func Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
lang Fix Windows SKIPIF (#14219) 2024-05-13 22:09:47 +02:00
output Fix GH-15179: Segmentation fault (null pointer dereference) in ext/standard/url_scanner_ex.re 2024-08-03 02:05:06 +02:00
run-test run-tests: use the EXTENSIONS section for skipping 2021-03-22 09:53:38 +01:00
security Merge branch 'PHP-8.0' 2021-08-17 11:32:24 +02:00
strings Merge branch 'PHP-8.0' into PHP-8.1 2021-09-29 12:21:49 +02:00