From c99c1a1a349ce442445536cacd54529c2b3632bd Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 18 Aug 2022 20:48:05 +0200 Subject: Fix some formatting in the documentation --- doc/source/config.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/source/config.rst b/doc/source/config.rst index ac8aef1..9d2d0ed 100644 --- a/doc/source/config.rst +++ b/doc/source/config.rst @@ -82,6 +82,7 @@ It's possible to use conditions to have configuration portable across several setups. :: + @condition PHP_VERSION_ID < 80000; # some rules @condition PHP_VERSION_ID >= 80000; @@ -91,6 +92,7 @@ several setups. Conditions accept variables and the special function ``extension_loadod()``. :: + @condition extension_loaded("sqlite3"); sp.ini.key("sqlite3.extension_dir").ro(); @end_condition; @@ -98,6 +100,7 @@ Conditions accept variables and the special function ``extension_loadod()``. Conditions cannot be nested, but arithmetic and logical operations can be applied. :: + @condition extension_loaded("session") && PHP_VERSION_ID <= 80200; set whitelist "my_fun,cos" sp.eval_whitelist.list(whitelist).simulation().dump("/tmp/dump_result/"); @@ -109,6 +112,7 @@ variables You may set a configuration variable using the ``set`` keyword (or ``@set``) and use it instead of arguments. :: + @set CMD "ls" sp.disable_function.function("system").pos("0").value(CMD).allow(); -- cgit v1.3