/php-src/sapi/cli/tests/ |
H A D | php_cli_server.inc | 20 $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 D | php_cli_server_012.phpt | 11 $doc_root = $info->docRoot; 12 file_put_contents($doc_root . '/request.php', '<?php print_r($_REQUEST); ?>'); 32 @unlink($doc_root . '/request.php');
|
H A D | php_cli_server_015.phpt | 12 $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 D | bug61977.phpt | 10 $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 D | php_cli_server.inc | 8 $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 D | php-admin-doc-root.phpt | 2 FPM: php_admin_value doc_root usage 22 php_admin_value[doc_root] = $docRoot
|
H A D | fcgi-env-pif-apache-handler-without-docroot.phpt | 6 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 D | server.inc | 5 $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 D | cgi_main.c | 819 s1 = (char *) doc_root; 824 s2 = (char *) doc_root; 917 char *doc_root; local 922 doc_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); 924 doc_root = getenv("DOCUMENT_ROOT"); 927 if (doc_root) { 928 size_t doc_root_len = strlen(doc_root); 934 doc_root = estrndup(doc_root, doc_root_len); 935 zend_str_tolower(doc_root, doc_root_len); 940 efree(doc_root); [all …]
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_main.c | 637 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 673 s1 = (char *) doc_root; in php_cgi_ini_activate_user_config() 678 s2 = (char *) doc_root; in php_cgi_ini_activate_user_config() 709 char *path, *doc_root, *server_name; in sapi_cgi_activate() local 753 doc_root = FCGI_GETENV(request, "DOCUMENT_ROOT"); in sapi_cgi_activate() 755 if (doc_root) { in sapi_cgi_activate() 756 doc_root_len = strlen(doc_root); in sapi_cgi_activate() 757 if (doc_root_len > 0 && IS_SLASH(doc_root[doc_root_len - 1])) { in sapi_cgi_activate() 761 php_cgi_ini_activate_user_config(path, path_len, doc_root, doc_root_len); in sapi_cgi_activate() 1082 if (!env_document_root && PG(doc_root)) { in init_request_info() [all …]
|
/php-src/main/ |
H A D | php_globals.h | 79 char *doc_root; member
|
H A D | fopen_wrappers.c | 427 if (PG(doc_root) && path_info && (length = strlen(PG(doc_root))) && 428 IS_ABSOLUTE_PATH(PG(doc_root), length)) { 431 memcpy(ZSTR_VAL(filename), PG(doc_root), length);
|
H A D | main.c | 767 …STD_PHP_INI_ENTRY("doc_root", NULL, PHP_INI_SYSTEM, OnUpdateStringUnempty, doc_root, php_c…
|
/php-src/sapi/litespeed/ |
H A D | lsapi_main.c | 905 char *doc_root; member 928 ctx->doc_root = sapi_lsapi_getenv("DOCUMENT_ROOT", 0); in lsapi_activate_user_ini_basic_checks() 929 DEBUG_MESSAGE("doc_root: %s", ctx->doc_root); in lsapi_activate_user_ini_basic_checks() 1031 docroot_len = ctx->doc_root && ctx->doc_root[0] in lsapi_activate_user_ini_walk_down_the_path() 1032 ? pathlen_without_trailing_slash(ctx->doc_root) in lsapi_activate_user_ini_walk_down_the_path() 1037 strncmp(ctx->path, ctx->doc_root, docroot_len) != 0; in lsapi_activate_user_ini_walk_down_the_path() 1043 walk_down_the_path(ctx->doc_root, ctx->path, in lsapi_activate_user_ini_walk_down_the_path()
|
/php-src/ |
H A D | php.ini-development | 748 ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 753 doc_root =
|
H A D | php.ini-production | 750 ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root 755 doc_root =
|