From e8e5314f44dbbbaf5e421aaad88408ff20c5a248 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 13 Jul 2018 12:23:20 +0200 Subject: Document even more the `print`/`echo` situation --- doc/source/config.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/config.rst b/doc/source/config.rst index 1b37071..dfe2799 100644 --- a/doc/source/config.rst +++ b/doc/source/config.rst @@ -310,9 +310,10 @@ It's currently not possible to: - Hook on the return value of user-defined functions - Use extra-convoluted rules for matching, like ``${$A}$$B->${'}[1]``, because if you're writing things like this, odds are that you're doing something wrong anyway. -- Hooks on ``print`` will be logged - (`for now`__) as hooks - on ``echo`` because of how PHP implements its internals. +- Hooks on ``echo`` and on ``print`` are equivalent: there is no way to hook one + without hooking the other, at least + `for now`__). + This is why hooked ``print`` will be displayed as ``echo`` in the logs. Examples -- cgit v1.3