From bf09f297b2c9abace0ae03f40fcd33d557b8f451 Mon Sep 17 00:00:00 2001 From: vlakoff Date: Sat, 19 Mar 2016 03:27:16 +0100 Subject: [PATCH 1/3] Standalone "clear-compiled" script for use in Composer --- bootstrap/clear-compiled.php | 4 ++++ composer.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 bootstrap/clear-compiled.php diff --git a/bootstrap/clear-compiled.php b/bootstrap/clear-compiled.php new file mode 100644 index 00000000000..2c988d4b6ad --- /dev/null +++ b/bootstrap/clear-compiled.php @@ -0,0 +1,4 @@ + Date: Sat, 19 Mar 2016 05:28:20 +0100 Subject: [PATCH 2/3] Be kind to the upgrading user --- bootstrap/clear-compiled.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bootstrap/clear-compiled.php b/bootstrap/clear-compiled.php index 2c988d4b6ad..558c0d0daa3 100644 --- a/bootstrap/clear-compiled.php +++ b/bootstrap/clear-compiled.php @@ -1,4 +1,5 @@ Date: Sat, 19 Mar 2016 05:45:20 +0100 Subject: [PATCH 3/3] Check for file existence instead of "blind deleting" Be kind to xdebug.scream and the like. On the contrary, if file deletion fails, SHOUT. --- bootstrap/clear-compiled.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/bootstrap/clear-compiled.php b/bootstrap/clear-compiled.php index 558c0d0daa3..d609a2d7480 100644 --- a/bootstrap/clear-compiled.php +++ b/bootstrap/clear-compiled.php @@ -1,5 +1,13 @@