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-01-29 19:12:18 +09:00
2025-08-07 19:08:32 +02:00
2024-11-29 16:30:01 +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-09-21 14:23:53 +01:00
2025-03-14 10:45:17 +01:00
2025-10-13 18:43:24 +02:00
2025-06-01 18:21:23 +02:00
2025-10-15 20:23:59 +02:00
2025-02-17 10:27:11 +03:00
2025-05-27 20:40:35 +02:00
2025-04-11 23:35:00 +02:00
2025-10-26 23:38:09 +01:00
2025-10-27 17:45:17 +00:00
2024-12-19 18:26:35 +01:00
2024-11-27 19:54:06 +00:00
2025-07-22 15:52:29 +02:00
2025-10-29 14:35:08 -03:00
2025-10-28 00:49:32 +01:00
2025-10-18 10:26:19 +02:00
2024-10-24 15:56:25 +02:00
2025-07-17 13:44:21 +02:00
2025-10-14 22:14:54 +02:00
2025-08-08 20:32:29 +02:00
2025-10-16 22:55:17 +02:00
2025-10-15 21:49:00 +02:00
2025-07-03 21:09:44 +09:00
2025-06-09 11:24:13 +02:00
2025-10-13 16:16:39 +02:00
2025-10-23 15:11:14 +02:00
2025-06-27 15:46:20 +02:00
2025-03-13 07:46:18 +01:00
2025-05-27 20:40:35 +02:00
2024-11-20 11:12:19 +01:00
2025-04-15 09:01:40 +09:00
2025-10-23 18:45:34 +02:00
2025-05-05 19:30:23 +02:00
2025-06-09 11:24:48 +02:00
2025-07-27 12:54:43 +01:00
2025-03-20 23:13:42 +01:00
2025-11-04 19:59:38 +01:00
2025-10-31 08:04:25 +01:00
2024-12-30 12:40:32 -04:00
2025-11-04 08:32:22 +01:00
2025-07-27 15:33:48 +02:00
2025-02-21 09:32:10 +01:00
2025-01-24 14:04:58 +00:00
2025-10-12 11:24:45 +02:00
2025-04-11 23:33:58 +02:00
2025-10-02 19:38:44 +02:00
2025-07-17 21:50:35 +02:00
2025-09-05 08:09:06 +02:00
2025-06-21 20:13:09 +02:00
2025-10-28 00:49:32 +01:00
2024-11-03 13:39:41 +00:00
2024-10-26 15:07:57 +02:00
2025-11-04 20:00:22 +01:00
2025-07-16 18:26:54 +02:00
2025-10-11 23:57:11 +02:00
2024-10-12 15:12:40 +02:00
2025-09-29 16:07:34 +02:00
2025-10-01 11:24:58 +02:00
2025-11-02 21:15:07 +00:00
2025-11-01 09:30:04 +01:00