File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -465,7 +465,9 @@ function_entry basic_functions[] = {
465465 PHP_FE (opendir , NULL )
466466 PHP_FE (closedir , NULL )
467467 PHP_FE (chdir , NULL )
468+ #if !defined (ZEND_WIN32 )&& !defined (ZTS )
468469 PHP_FE (chroot , NULL )
470+ #endif
469471 PHP_FE (getcwd , NULL )
470472 PHP_FE (rewinddir , NULL )
471473 PHP_STATIC_FE ("readdir" , php_if_readdir , NULL )
Original file line number Diff line number Diff line change @@ -222,6 +222,8 @@ PHP_FUNCTION(closedir)
222222}
223223
224224/* }}} */
225+
226+ #if !defined(ZEND_WIN32 )&& !defined(ZTS )
225227/* {{{ proto int chroot(string directory)
226228 Change root directory */
227229
@@ -253,6 +255,8 @@ PHP_FUNCTION(chroot)
253255}
254256
255257/* }}} */
258+ #endif
259+
256260/* {{{ proto int chdir(string directory)
257261 Change the current directory */
258262
Original file line number Diff line number Diff line change @@ -28,7 +28,9 @@ PHP_RINIT_FUNCTION(dir);
2828PHP_FUNCTION (opendir );
2929PHP_FUNCTION (closedir );
3030PHP_FUNCTION (chdir );
31+ #if !defined(ZEND_WIN32 )&& !defined(ZTS )
3132PHP_FUNCTION (chroot );
33+ #endif
3234PHP_FUNCTION (getcwd );
3335PHP_FUNCTION (rewinddir );
3436PHP_NAMED_FUNCTION (php_if_readdir );
You can’t perform that action at this time.
0 commit comments