summaryrefslogtreecommitdiff
path: root/src/sp_execute.c
diff options
context:
space:
mode:
authorjvoisin2020-08-12 08:48:59 +0000
committerGitHub2020-08-12 10:48:59 +0200
commita0d21a189cf04bb963dce93dcbd0bd9694584a0b (patch)
tree59fa646b7536fbef7de42eb111c82df592262a12 /src/sp_execute.c
parentf3360c4de72b6735bc5f5873dd671c2e56292ce6 (diff)
Allow empty configuration (#342)
This commit allows php to run (with a warning) if there is no specified snuffleupagus configuration, instead of refusing to start.
Diffstat (limited to 'src/sp_execute.c')
-rw-r--r--src/sp_execute.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp_execute.c b/src/sp_execute.c
index 73cc560..140e227 100644
--- a/src/sp_execute.c
+++ b/src/sp_execute.c
@@ -19,10 +19,11 @@ ZEND_COLD static inline void terminate_if_writable(const char *filename) {
19 } 19 }
20 if (true == config_ro_exec->simulation) { 20 if (true == config_ro_exec->simulation) {
21 sp_log_simulation("readonly_exec", 21 sp_log_simulation("readonly_exec",
22 "Attempted execution of a writable file (%s).", filename); 22 "Attempted execution of a writable file (%s).",
23 filename);
23 } else { 24 } else {
24 sp_log_drop("readonly_exec", 25 sp_log_drop("readonly_exec",
25 "Attempted execution of a writable file (%s).", filename); 26 "Attempted execution of a writable file (%s).", filename);
26 zend_bailout(); 27 zend_bailout();
27 } 28 }
28 } else { 29 } else {