1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00
Files
archived-php-src/ext
nielsdos da3ce6015d Propagate errors correctly in ps_files_cleanup_dir()
In SessionHandler::gc, we use a virtual call to PS(default_mod)->s_gc to
call the gc implementation. That return value is checked against
FAILURE (-1).
One of the call targets of PS(default_mod)->s_gc is ps_gc_files().
ps_gc_files() calls to ps_files_cleanup_dir(). The latter function has
some error checks and outputs a notice if something goes wrong. In cases
of errors, the function returns 0. This means that the check in
SessionHandler::gc will misinterpret this as a success and report that 0
files have been *successfully* cleaned up. Fix it by returning -1 to
indicate something *did* go wrong.

Closes GH-10644.
2023-02-21 16:09:22 +00:00
..
2022-06-25 07:39:55 +01:00
2022-07-27 12:13:32 +02:00
2023-02-12 21:33:39 -07:00
2022-09-13 11:33:09 +01:00
2022-04-25 14:29:44 +02:00
2023-01-09 14:08:40 +01:00
2022-09-27 23:32:15 +02:00
2022-06-13 14:43:51 +02:00
2022-08-31 14:22:44 +02:00
2022-12-18 23:20:29 -07:00
2022-10-13 16:00:36 +02:00
2022-06-20 18:46:17 +02:00
2022-06-15 15:39:00 +02:00
2022-06-25 07:39:55 +01:00