Home
last modified time | relevance | path

Searched refs:doc_root (Results 1 – 16 of 16) sorted by relevance

/php-src/sapi/cli/tests/
H A Dphp_cli_server.inc20 $doc_root = __DIR__ . DIRECTORY_SEPARATOR . basename($_SERVER['PHP_SELF'], '.php');
21 @mkdir($doc_root);
24 file_put_contents($doc_root . '/' . ($router ?: 'index.php'), '<?php ' . $code . ' ?>');
27 $cmd = [$php_executable, '-t', $doc_root, '-n', ...$cmd_args, '-S', 'localhost:0'];
46 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru…
100 function($handle) use($router, $doc_root, $output_file) {
109 remove_directory($doc_root);
120 return new CliServerInfo($doc_root, $handle);
H A Dphp_cli_server_012.phpt11 $doc_root = $info->docRoot;
12 file_put_contents($doc_root . '/request.php', '<?php print_r($_REQUEST); ?>');
32 @unlink($doc_root . '/request.php');
H A Dphp_cli_server_015.phpt12 $doc_root = php_cli_server_start('require("syntax_error.php");')->docRoot;
14 file_put_contents($doc_root . "/syntax_error.php", "<?php non_exists_function(); ?>");
32 @unlink($doc_root . "/syntax_error.php");
H A Dbug61977.phpt10 $doc_root = php_cli_server_start('<?php ?>', null)->docRoot;
22 file_put_contents($doc_root . "/foo.{$mimetype}", '');
36 @unlink($doc_root . "/foo.{$mimetype}");
/php-src/ext/opcache/tests/
H A Dphp_cli_server.inc8 $doc_root = __DIR__;
14 $cmd = [$php_executable, '-t', $doc_root, '-n', ...$ini_array, '-S', PHP_CLI_SERVER_ADDRESS];
20 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru…
/php-src/sapi/fpm/tests/
H A Dphp-admin-doc-root.phpt2 FPM: php_admin_value doc_root usage
22 php_admin_value[doc_root] = $docRoot
H A Dfcgi-env-pif-apache-handler-without-docroot.phpt6 if (ini_get('doc_root')) {
7 die('skip: The doc_root ini has to be unset for this test to work');
/php-src/ext/curl/tests/
H A Dserver.inc5 $doc_root = __DIR__;
7 $cmd = [$php_executable, '-t', $doc_root, '-n', '-S', 'localhost:0', $router];
13 …$handle = proc_open($cmd, $descriptorspec, $pipes, $doc_root, null, array("suppress_errors" => tru…
/php-src/sapi/cgi/
H A Dcgi_main.c816 s1 = (char *) doc_root;
821 s2 = (char *) doc_root;
914 char *doc_root; local
919 doc_root = FCGI_GETENV(request, "DOCUMENT_ROOT");
921 doc_root = getenv("DOCUMENT_ROOT");
924 if (doc_root) {
925 size_t doc_root_len = strlen(doc_root);
931 doc_root = estrndup(doc_root, doc_root_len);
932 zend_str_tolower(doc_root, doc_root_len);
937 efree(doc_root);
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_main.c640 static void php_cgi_ini_activate_user_config(char *path, int path_len, const char *doc_root, int do… in php_cgi_ini_activate_user_config() argument
676 s1 = (char *) doc_root; in php_cgi_ini_activate_user_config()
681 s2 = (char *) doc_root; in php_cgi_ini_activate_user_config()
712 char *path, *doc_root, *server_name; in sapi_cgi_activate() local
756 doc_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); in sapi_cgi_activate()
758 if (doc_root) { in sapi_cgi_activate()
759 doc_root_len = strlen(doc_root); in sapi_cgi_activate()
760 if (doc_root_len > 0 && IS_SLASH(doc_root[doc_root_len - 1])) { in sapi_cgi_activate()
764 php_cgi_ini_activate_user_config(path, path_len, doc_root, doc_root_len); in sapi_cgi_activate()
1085 if (!env_document_root && PG(doc_root)) { in init_request_info()
[all …]
/php-src/main/
H A Dphp_globals.h79 char *doc_root; member
H A Dfopen_wrappers.c415 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) &&
416 IS_ABSOLUTE_PATH(PG(doc_root), length)) {
419 memcpy(ZSTR_VAL(filename), PG(doc_root), length);
H A Dmain.c720 …STD_PHP_INI_ENTRY("doc_root", NULL, PHP_INI_SYSTEM, OnUpdateStringUnempty, doc_root, php_c…
/php-src/sapi/litespeed/
H A Dlsapi_main.c906 char *doc_root; member
929 ctx->doc_root = sapi_lsapi_getenv("DOCUMENT_ROOT", 0); in lsapi_activate_user_ini_basic_checks()
930 DEBUG_MESSAGE("doc_root: %s", ctx->doc_root); in lsapi_activate_user_ini_basic_checks()
1032 docroot_len = ctx->doc_root && ctx->doc_root[0] in lsapi_activate_user_ini_walk_down_the_path()
1033 ? pathlen_without_trailing_slash(ctx->doc_root) in lsapi_activate_user_ini_walk_down_the_path()
1038 strncmp(ctx->path, ctx->doc_root, docroot_len) != 0; in lsapi_activate_user_ini_walk_down_the_path()
1044 walk_down_the_path(ctx->doc_root, ctx->path, in lsapi_activate_user_ini_walk_down_the_path()
/php-src/
H A Dphp.ini-development762 ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
767 doc_root =
H A Dphp.ini-production764 ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
769 doc_root =

Completed in 50 milliseconds