defined
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks whether a given named constant exists
defined
(
string $constant_name
):
bool
return
1
;
}
if (
config
(
'octane.swoole.ssl'
,
false
) ===
true
&& !
defined
(
'SWOOLE_SSL'
)) {
$this
->
error
(
'You must configure Swoole with `--enable-openssl` to support ssl.'
);
return
1
;
src/Commands/StartSwooleCommand.php
protected function
phpBinary
():
string
{
if (
defined
(
'PHP_BINARY'
)) {
return
PHP_BINARY
;
}
tests/BinaryBootstrapTest.php
return
PHP_BINARY
;
}
return
defined
(
'PHP_BINARY'
) ?
PHP_BINARY
: (new
PhpExecutableFinder
())->
find
();
}
}
tests/BinaryBootstrapTest.php