1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext
Niels Dossche fcc159b4f6 Fix GH-20374: PHP with tidy and custom-tags
Both enums and integers map to TidyInteger, however, in the TidyInteger
case we always used zval_get_long(). So for a non-numeric string, this
would get turned into 0. 0 is the first enum value in that case, so the
wrong enum value could be selected.

To solve this, add special handling for strings and (stringable) objects
such that we can explicitly check for numeric strings, and if they're
not, handle them as normal strings instead of as 0.

Closes GH-20387.
2025-11-04 20:00:22 +01:00
..
2025-10-15 19:38:51 +02:00
2025-10-07 18:33:17 +02:00
2025-09-15 14:17:32 +01:00
2025-06-01 18:21:23 +02:00
2025-05-27 20:40:35 +02:00
2025-10-27 17:45:17 +00:00
2024-11-27 19:54:06 +00:00
2025-07-22 15:52:29 +02:00
2025-10-28 00:49:32 +01:00
2025-10-13 16:16:39 +02:00
2025-05-27 20:40:35 +02:00
2025-07-16 18:26:54 +02:00
2025-11-01 09:30:04 +01:00