Niels Dossche
2ca4f31bc7
Update Lexbor ( #15573 )
...
Updates Lexbor to lexbor/lexbor@31d86445d0
2024-08-25 14:19:11 +02:00
Niels Dossche
904e8dc197
Merge branch 'PHP-8.3'
...
* PHP-8.3:
[ci skip] Fix mistake in UPGRADING
2024-08-25 13:19:16 +02:00
Niels Dossche
cd6bac7f9f
[ci skip] Fix mistake in UPGRADING
2024-08-25 13:19:03 +02:00
Kamil Tekiela
195d59a83c
Remove dead code
2024-08-25 10:32:50 +02:00
Kamil Tekiela
2446500d97
Remove unsupported mysqlnd options
2024-08-25 10:32:50 +02:00
Kamil Tekiela
082b964dfa
Remove ifdefs from stub file
2024-08-25 10:32:50 +02:00
Peter Kokot
207ae12f59
Autotools: Sync CS in ext/tidy ( #15561 )
...
- AS_* macros used
- When TIDY_DIR is not set error out in its own "if" sentence
- break 2 used instead of break to exit also the first for loop
2024-08-24 23:17:22 +02:00
Kamil Tekiela
c5bce0d8a2
Deprecate disabling use_only_cookies ( #13578 )
2024-08-24 16:33:45 +02:00
Orlando Thöny
9c267778d2
FPM: Remove usage of non-existing MAX_LINE_LENGTH constant ( #5634 )
2024-08-24 15:26:58 +01:00
Flavio Heleno
67aac59cfc
Add PHP-FPM memory peak to the scoreboard
...
Closes #14153
2024-08-24 15:25:18 +01:00
Niels Dossche
a092bcb4d7
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-15565: --disable-ipv6 during compilation produces error EAI_SYSTEM not found
2024-08-24 14:16:40 +02:00
Niels Dossche
8da94cfc41
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15565: --disable-ipv6 during compilation produces error EAI_SYSTEM not found
2024-08-24 14:14:57 +02:00
Niels Dossche
4b6575a1f9
Fix GH-15565: --disable-ipv6 during compilation produces error EAI_SYSTEM not found
...
Closes GH-15567.
2024-08-24 14:14:20 +02:00
Máté Kocsis
8d12f666ae
Fix registration of internal readonly child classes ( #15459 )
...
Currently, internal classes are registered with the following code:
INIT_CLASS_ENTRY(ce, "InternalClass", class_InternalClass_methods);
class_entry = zend_register_internal_class_ex(&ce, NULL);
class_entry->ce_flags |= ...;
This has worked well so far, except if InternalClass is readonly. It is because some inheritance checks are run by zend_register_internal_class_ex before ZEND_ACC_READONLY_CLASS is added to ce_flags.
The issue is fixed by adding a zend_register_internal_class_with_flags() zend API function that stubs can use from now on. This function makes sure to add the flags before running any checks. Since the new API is not available in lower PHP versions, gen_stub.php has to keep support for the existing API for PHP 8.3 and below.
2024-08-24 12:36:54 +02:00
Peter Kokot
6351468a5e
Autotools: Replace break 2 with break ( #15563 )
...
As there is not nested loop here, a single break can do as well.
2024-08-24 00:49:13 +02:00
Peter Kokot
dc8f18af0b
Fix GH-15534: Bump minimum libxml2 version to 2.9.4 ( #15536 )
...
The xmlDictPtr was moved before the includes in libxml2 2.9.4 so the
<libxml/dict.h> can be included directly but for earlier versions the
<libxml/tree.h> needs to be included before. Since PHP requires libxml2
2.9.0 or later and this also fixes builds on Solaris 10.
As earlier 2.9.0-2.9.3 libxml2 versions also include several security
issues, this change bumps the required minimum libxml2 version to 2.9.4
On Windows, a check for minimum libxml2 version is also added.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
2024-08-23 23:14:38 +02:00
Peter Kokot
2cbde5ae77
Autotools: Use a no-op command in PKG_CHECK_MODULES ( #15562 )
...
Instead of using a space for the "do nothing" command in the
PKG_CHECK_MODULES 2nd argument when libexslt is not found, the no-op
command ":" is perhaps a bit clearer and is in most cases used in such
scenarios and macro arguments.
2024-08-23 22:35:59 +02:00
Peter Kokot
2e3132b3fd
Autotools: Sync CS in ext/standard ( #15560 )
...
- Overquoted arguments reduced
- Added missing quotes in algorithms checks
- Synced indentations for algorithms checks
2024-08-23 22:30:09 +02:00
Gina Peter Banyard
01c6b48e31
Phar offset exist issue with entry classes not based on PharFileInfo ( #14503 )
...
* ext/phar: expand test to cover issue with offsetGet
* ext/phar: offsetExists should return false when file entry is not based on PharFileInfo
2024-08-23 21:06:28 +01:00
Niels Dossche
6a07400699
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-15551: Segmentation fault (access null pointer) in ext/dom/xml_common.h
2024-08-23 19:43:32 +02:00
Niels Dossche
8a00faa2bb
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-15551: Segmentation fault (access null pointer) in ext/dom/xml_common.h
2024-08-23 19:42:36 +02:00
Niels Dossche
9af574c26e
Fix GH-15551: Segmentation fault (access null pointer) in ext/dom/xml_common.h
...
Closes GH-15556.
2024-08-23 19:40:42 +02:00
Niels Dossche
d32b97a1c7
Fix NULL pointer dereference with NULL content in legacy nodes in title getting ( #15558 )
2024-08-23 19:38:13 +02:00
Niels Dossche
7ae7b4e388
Correctly specify secret instead of seed in ext/hash deprecation message ( #15557 )
...
Reference: 74eff98c84 (r145528001)
2024-08-23 19:37:57 +02:00
Gina Peter Bnayard
f9c69bc392
ext/phar: Reorganise some headers
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
d55074ede4
ext/phar: Use zend_string instead of char* len pair
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
51bb8cfcb5
ext/phar: Add some const qualifiers
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
6f986837ec
ext/phar: Simplify a return condition in Phar::offsetExists()
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
20f7e08687
ext/phar: Use more specialized types instead of int
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
81d232fed5
ext/phar: Move some header functions into util.c
...
They were only used there, therefore mark them static
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
d015af60df
ext/phar: Adjust return types for methods that always return true
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
03be1ac0ad
ext/phar: Refactor part of tar.c
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
009039d447
ext/phar: Use size_t for string lenghts
...
And remove useless casts
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
947f72c181
ext/phar: Use standard naming for PHP functions
2024-08-23 17:42:37 +01:00
Gina Peter Bnayard
937c4e4ac6
ext/hash: Make return type zend_result for serialize function typedef
2024-08-23 17:41:33 +01:00
Gina Peter Bnayard
c26e77c4c5
ext/hash: Specialize copy function typedef
2024-08-23 17:41:33 +01:00
Peter Kokot
babf18c52e
Autotools: Remove obsolete compiler reset ( #15549 )
...
This was once added via 827ad656cb to
store the compiler variable when being modified due to using libtool
passing pthread_cflags to linker.
2024-08-23 16:54:21 +02:00
Peter Kokot
062e9f9134
Remove unused buffer variables ( #15550 )
...
These emit warning: unused variable 'buffer'.
2024-08-23 16:40:19 +02:00
Gina Peter Banyard
d9695401e4
Zend: Voidify virtual_cwd_(de)activate() ( #15554 )
...
It always returned 0
2024-08-23 15:28:37 +01:00
Ilija Tovilo
8fcf34d598
Remove ZEND_ACC_ABSTRACT from prop variance check
...
Abstract properties are now virtual, unless they actually contain concrete hook
implementations using the backing field.
2024-08-23 16:13:23 +02:00
Máté Kocsis
7e45e57d8f
Suppress deprecation notices when ext/dom properties are accessed by the get_debug_info handler ( #15530 )
2024-08-23 10:39:11 +02:00
Niels Dossche
793f6321e7
Fix NULL pointer dereference with NULL content in legacy nodes ( #15546 )
2024-08-23 08:56:06 +02:00
Jakub Zelenka
d6c06edaec
[skip ci] Update NEWS with info about GH-14930 fix which is only in master now
2024-08-22 23:50:11 +01:00
Jakub Zelenka
40e48920b9
Merge branch 'PHP-8.3'
2024-08-22 23:45:35 +01:00
Jakub Zelenka
70c5e366f6
Revert fix for GH-14930: truncating readdir output ( #15533 )
2024-08-22 23:41:34 +01:00
Peter Kokot
f952263bcd
Fix Solaris 10 build: missing libproc.h ( #15525 )
...
The libproc.h header file was added on Solaris as of 11.4.
* Also add guard check to the entire function
* When libproc.h isn't available also sys/procfs.h is redundant
* Move the <sys/lwp.h> out of the guard
* Exclude more stuff from Solaris 10
2024-08-22 20:26:44 +02:00
Go Kudo
0c73553959
Update extension skeleton .gitignore ( #15542 )
...
[ci skip]
2024-08-22 19:31:06 +02:00
Peter Kokot
c79e723725
Autotools: Check re2c version with AS_VERSION_COMPARE ( #15465 )
...
This simplifies the version check a bit.
2024-08-22 17:39:03 +02:00
Peter Kokot
1b3c204033
Autotools: Add min-version argument to PHP_PROG_PHP macro ( #15477 )
...
This makes a bit simpler to use this macro by optionally passing the
required minimum PHP version. If version is not passed it falls back
to 7.4 as before. Minimum version also added to configure.ac.
2024-08-22 17:30:08 +02:00
Peter Kokot
4e193b4113
Autotools: Move abs_srcdir and abs_builddir to init macro ( #15537 )
...
This syncs the abs_srcdir and abs_builddir variables assignments between
the php-src build and phpize. The `&&` was picked over `;` as it is more
rigorous - the pwd command would fail if cd fails for some reason.
2024-08-22 16:26:48 +02:00