Skip to main content
Version: 20 R7 BETA

PHP SET OPTION

PHP SET OPTION ( option ; value {; *} )

ParameterTypeDescription
optionIntegerOption to be set
valueBooleanNew value of option
*OperatorIf passed: modification only applied to next call

This command is not thread-safe, it cannot be used in preemptive code.

Compatibility

PHP is deprecated in 4D. It is now recommended to use the 4D.SystemWorker class.

Description

The PHP SET OPTION command is used to set specific options before calling the PHP Execute command. The scope of this command is the current process.

Pass a constant from the "PHP" theme in the option parameter to designate the option to be modified and pass the new value for the option in the value parameter.

ConstantTypeValueComment
PHP raw resultLongint2Definition of processing mode for HTTP headers returned by PHP in the execution result when this result is of the Text type (when the result is of the BLOB type, headers are always kept).
Possible value(s): Boolean. False (default value = remove HTTP headers from result. True = keep HTTP headers.

By default, PHP SET OPTION sets the option for all subsequent calls to PHP Execute of the process. If you want to set it for the next call only, pass the star (*) parameter.

See also

PHP Execute
PHP GET OPTION