mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
There might be more systems which do not support chroot, so we check
for the existence of it. Additionally, if chroot is not supported, the warn_not_available function is invoked now.
This commit is contained in:
@@ -465,8 +465,10 @@ function_entry basic_functions[] = {
|
||||
PHP_FE(opendir, NULL)
|
||||
PHP_FE(closedir, NULL)
|
||||
PHP_FE(chdir, NULL)
|
||||
#if !defined(ZEND_WIN32)&&!defined(ZTS)
|
||||
#if defined(HAVE_CHROOT) && !defined(ZTS)
|
||||
PHP_FE(chroot, NULL)
|
||||
#else
|
||||
PHP_FALIAS(chroot, warn_not_available, NULL)
|
||||
#endif
|
||||
PHP_FE(getcwd, NULL)
|
||||
PHP_FE(rewinddir, NULL)
|
||||
|
||||
Reference in New Issue
Block a user