1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-19021: deprecation for tidyOptIsReadOnly

The tidyOptGetCategory function (added in libtidy 5.4.0) if only useable if TidyInternalCategory (added in libtidy 5.6.0) is also present, so check for the latter instead.

close GH-19053
This commit is contained in:
Arjen de Korte
2025-08-16 18:59:41 +02:00
committed by David Carlier
parent 987a3a5c8e
commit a97717d23e
2 changed files with 8 additions and 1 deletions

5
NEWS
View File

@@ -17,6 +17,11 @@ PHP NEWS
- Standard:
. Fixed bug GH-16649 (UAF during array_splice). (alexandre-daubois)
- Tidy:
. Fixed GH-19021 build issue with libtidy in regard of tidyOptIsReadonly
deprecation and TidyInternalCategory being available later than
tidyOptGetCategory. (arjendekorte)
28 Aug 2025, PHP 8.3.25
- Core:

View File

@@ -62,7 +62,9 @@ if test "$PHP_TIDY" != "no"; then
AC_DEFINE(HAVE_TIDYRELEASEDATE,1,[ ])
], [], [])
PHP_CHECK_LIBRARY($TIDY_LIB_NAME,tidyOptGetCategory,
dnl The tidyOptGetCategory function (added in libtidy 5.4.0) if only useable
dnl if TidyInternalCategory (added in libtidy 5.6.0) is also present.
PHP_CHECK_LIBRARY($TIDY_LIB_NAME,TidyInternalCategory,
[
AC_DEFINE(HAVE_TIDYOPTGETCATEGORY,1,[ ])
], [], [])