diff --git a/features/commandline.xml b/features/commandline.xml index 389bfd7762..6fb1d9d686 100644 --- a/features/commandline.xml +++ b/features/commandline.xml @@ -198,6 +198,14 @@ e.g. register_argc_argv). + + + It is recommended to set + ignore_user_abort for + command line scripts. See ignore_user_abort for + more info. + + diff --git a/reference/misc/functions/ignore-user-abort.xml b/reference/misc/functions/ignore-user-abort.xml index 177e44a9e1..7de22afe6e 100644 --- a/reference/misc/functions/ignore-user-abort.xml +++ b/reference/misc/functions/ignore-user-abort.xml @@ -15,6 +15,12 @@ Sets whether a client disconnect should cause a script to be aborted. + + When running PHP as a command line script, and the script's tty goes + away without the script being terminated then the script will die the + next time it tries to write anything, unless + value is to to &true; +