Niels Dossche
b3a56bd558
Fix GH-14290: Member access within null pointer in extension spl
...
php_pcre_replace_impl() can fail and return NULL. We should take that
error condition into account. Because other failures return false, we
return false here as well.
At first, I also thought there was a potential memory leak in the error
check of replacement_str, but found that the error condition can never
trigger, so replace that with an assertion.
Closes GH-14292.
2024-05-21 23:20:32 +02:00
..
2024-05-21 23:20:32 +02:00
2021-06-18 15:22:52 +01:00
2021-06-18 15:22:52 +01:00
2022-07-21 15:05:34 +02:00
2023-12-01 09:09:17 +01:00
2021-05-26 09:36:23 +02:00
2022-07-21 15:05:34 +02:00
2022-08-02 16:37:12 +02:00
2023-08-30 22:26:36 +02:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00
2022-11-22 12:26:03 +00:00
2024-03-17 18:37:52 +01:00
2022-08-02 16:37:12 +02:00
2022-11-22 12:26:03 +00:00
2022-08-02 16:37:12 +02:00
2022-09-14 11:28:06 +02:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00
2021-06-18 15:22:52 +01:00
2021-02-18 13:01:51 +01:00
2021-05-06 12:16:35 +02:00
2021-05-06 12:16:35 +02:00
2021-02-18 13:01:51 +01:00
2022-08-30 07:46:32 -04:00
2024-02-27 23:04:23 +01:00
2021-05-06 12:16:35 +02:00
2022-08-30 07:46:32 -04:00
2022-04-13 20:34:23 +01:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00
2022-09-14 11:28:06 +02:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00
2024-05-21 23:20:32 +02:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00
2022-09-14 11:13:23 +02:00
2022-08-02 16:37:12 +02:00
2022-08-02 16:37:12 +02:00