summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/faq.rst16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/source/faq.rst b/doc/source/faq.rst
index 285f0c8..3c09409 100644
--- a/doc/source/faq.rst
+++ b/doc/source/faq.rst
@@ -245,3 +245,19 @@ if someone can manage to get better results than us.
245The possibility of having this natively in PHP has 245The possibility of having this natively in PHP has
246`been discussed <https://marc.info/?l=php-internals&m=141692988212413&w=2>`_, 246`been discussed <https://marc.info/?l=php-internals&m=141692988212413&w=2>`_,
247but as 2017, nothing has been merged yet. 247but as 2017, nothing has been merged yet.
248
249Nop'ing function execution
250""""""""""""""""""""""""""
251
252Snuffleupagus can be configured to either *allow* or *drop* the execution of
253particular functions and optionally *log* and *dump* them, but it doesn't
254provide any mechanism to *nop* their execution.
255
256We thought about adding this, but didn't for several reasons:
257
258- What should the return value of a *nop'ed* function be?
259- It would add confusion between ``drop``, ``nop`` and ``log``.
260- Usually, when a specific function is called, either it's a dangerous one
261 and you want to stop the execution immediately, or you want to let it
262 continue and log it. There isn't really any middle-ground, or at least we
263 failed to find any.