Searched refs:path_translated (Results 1 - 25 of 31) sorted by relevance

12

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_php_trace.c61 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) {
H A Dfpm_php.c161 return SG(request_info).path_translated;
H A Dfpm_main.c764 if (!SG(request_info).path_translated) {
785 path_len = strlen(SG(request_info).path_translated);
788 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
790 memcpy(path, SG(request_info).path_translated, path_len + 1);
794 path = estrndup(SG(request_info).path_translated, path_len);
997 request_info.path_translated variable, the latter should
1052 * broken stuff and set path_translated to the cgi script location */
1058 SG(request_info).path_translated = NULL;
1258 char *path_translated = NULL; local
1271 path_translated
1288 char *path_translated = NULL; local
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_module.c91 if (!SG(request_info).path_translated ||
92 strlen(SG(request_info).path_translated) < len ||
93 memcmp(SG(request_info).path_translated, ZCG(accel_directives).restrict_api, len) != 0) {
/PHP_TRUNK/main/
H A DSAPI.h87 char *path_translated; member in struct:__anon284
H A Dfopen_wrappers.c404 filename = SG(request_info).path_translated;
427 filename = SG(request_info).path_translated;
436 if (SG(request_info).path_translated != filename) {
441 /* we have to free SG(request_info).path_translated here because
445 if (SG(request_info).path_translated) {
446 efree(SG(request_info).path_translated);
447 SG(request_info).path_translated = NULL;
457 if (SG(request_info).path_translated != filename) {
462 if (SG(request_info).path_translated) {
463 efree(SG(request_info).path_translated);
[all...]
/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c353 ADD_STRINGX("PATH_TRANSLATED", SG(request_info).path_translated);
410 file_handle.filename = SG(request_info).path_translated;
447 /* path_translated is the absolute path to the file */
448 SG(request_info).path_translated = safe_strdup(Ns_DStringValue(&ds));
451 SG(request_info).request_uri = strdup(SG(request_info).path_translated + strlen(root));
482 free(SG(request_info).path_translated);
/PHP_TRUNK/sapi/apache/
H A Dsapi_apache.c43 if (highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC) != SUCCESS) {
49 file_handle.filename = SG(request_info).path_translated;
H A Dmod_php7.c259 zval *path_translated; local
286 && (path_translated = zend_hash_str_find(symbol_table, "SCRIPT_FILENAME", sizeof("SCRIPT_FILENAME")-1)) != NULL) {
287 php_register_variable("PATH_TRANSLATED", Z_STRVAL_P(path_translated), track_vars_array TSRMLS_CC);
528 SG(request_info).path_translated = r->filename;
/PHP_TRUNK/sapi/apache_hooks/
H A Dsapi_apache.c42 if (highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC)){
50 file_handle.filename = SG(request_info).path_translated;
H A Dmod_php7.c389 zval **path_translated; local
411 && zend_hash_find(symbol_table, "SCRIPT_FILENAME", sizeof("SCRIPT_FILENAME"), (void **) &path_translated)==SUCCESS) {
412 php_register_variable("PATH_TRANSLATED", Z_STRVAL_PP(path_translated), track_vars_array TSRMLS_CC);
580 SG(request_info).path_translated = r->filename;
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c832 if (!SG(request_info).path_translated) {
859 path_len = strlen(SG(request_info).path_translated);
862 if (!IS_SLASH(SG(request_info).path_translated[path_len])) {
864 memcpy(path, SG(request_info).path_translated, path_len + 1);
868 path = estrndup(SG(request_info).path_translated, path_len);
1088 request_info.path_translated variable, the latter should
1141 * broken stuff and set path_translated to the cgi script location */
1147 SG(request_info).path_translated = NULL;
1296 char *path_translated = NULL; local
1309 path_translated
1326 char *path_translated = NULL; local
[all...]
/PHP_TRUNK/sapi/continuity/
H A Dcapi.c416 char *path_translated = lstFset_get(NSG(t->vars), "path"); local
424 SG(request_info).path_translated = capi_strdup(path_translated);
435 capi_free(SG(request_info).path_translated);
447 file_handle.filename = SG(request_info).path_translated;
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c173 if ( SG(request_info).path_translated )
175 efree( SG(request_info).path_translated );
479 SG(request_info).path_translated = estrdup( LSAPI_GetScriptFileName());
528 fp = fopen( SG(request_info).path_translated, "rb" );
535 file_handle->filename = SG(request_info).path_translated;
550 file_handle->filename = SG(request_info).path_translated;
556 len = strlen( SG(request_info).path_translated );
561 memccpy( p, SG(request_info).path_translated + len, 0, 46 );
580 highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC);
836 SG(request_info).path_translated
[all...]
/PHP_TRUNK/sapi/phttpd/
H A Dphttpd.c190 SG(request_info).path_translated = malloc(MAXPATHLEN);
192 if (url_expand(PHG(cip)->hip->url, SG(request_info).path_translated, MAXPATHLEN, &PHG(sb), NULL, NULL) == NULL) {
208 /* path_translated is the absolute path to the file */
209 SG(request_info).path_translated = strdup(Ns_DStringValue(&ds));
212 SG(request_info).request_uri = SG(request_info).path_translated + strlen(root);
237 free(SG(request_info).path_translated);
252 file_handle.filename = SG(request_info).path_translated;
/PHP_TRUNK/sapi/webjames/
H A Dwebjames.c135 ADD_STRING("PATH_TRANSLATED", SG(request_info).path_translated);
175 if (path) SG(request_info).path_translated = estrdup(path);
207 file_handle.filename = SG(request_info).path_translated;
/PHP_TRUNK/sapi/caudium/
H A Dcaudium.c498 php_register_variable("PATH_TRANSLATED", SG(request_info).path_translated,
610 /* path_translated is apparently the absolute path to the file, not
613 SG(request_info).path_translated =
/PHP_TRUNK/sapi/isapi/
H A Dphp7isapi.c497 php_register_variable("SCRIPT_FILENAME", SG(request_info).path_translated, track_vars_array TSRMLS_CC);
758 SG(request_info).path_translated = estrdup(static_variable_buf);
766 SG(request_info).path_translated = estrdup(humi.lpszPath);
770 SG(request_info).path_translated = estrdup(lpECB->lpszPathTranslated);
774 if (strstr(SG(request_info).path_translated,"..")) {
776 efree(SG(request_info).path_translated);
777 SG(request_info).path_translated = NULL;
852 file_handle.filename = SG(request_info).path_translated;
871 if (SG(request_info).path_translated)
872 efree(SG(request_info).path_translated);
[all...]
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c768 php_register_variable("SCRIPT_FILENAME", SG(request_info).path_translated, track_vars_array TSRMLS_CC);
804 SG(request_info).path_translated,
976 char *path_translated = pblock_findval("script", pb); local
981 if (!path_translated) {
982 path_translated = pblock_findval("path", rq->vars);
1025 SG(request_info).path_translated = path_translated;
1035 file_handle.filename = SG(request_info).path_translated;
1039 fst = request_stat_path(SG(request_info).path_translated, rq);
1057 log_error(LOG_WARN, pblock_findval("fn", pb), sn, rq, "Cannot execute PHP script: %s (File not found)", SG(request_info).path_translated);
[all...]
/PHP_TRUNK/sapi/pi3web/
H A Dpi3web_sapi.c271 SG(request_info).path_translated = lpCB->lpszPathTranslated;
/PHP_TRUNK/sapi/roxen/
H A Droxen.c637 /* path_translated is apparently the absolute path to the file, not
640 SG(request_info).path_translated =
/PHP_TRUNK/sapi/apache2filter/
H A Dsapi_apache2.c410 SG(request_info).path_translated = safe_strdup(f->r->filename);
449 if (SG(request_info).path_translated) {
450 free(SG(request_info).path_translated);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c130 char *path_translated; member in struct:php_cli_server_request
708 if (SG(request_info).path_translated) {
709 sapi_cli_server_register_variable(track_vars_array, "SCRIPT_FILENAME", SG(request_info).path_translated TSRMLS_CC);
1339 req->path_translated = NULL;
1362 if (req->path_translated) {
1363 pefree(req->path_translated, 1);
1464 request->path_translated = buf;
1470 request->path_translated = buf;
1775 request_info->path_translated = client->request.path_translated;
[all...]
/PHP_TRUNK/sapi/thttpd/
H A Dthttpd.c282 php_register_variable("PATH_TRANSLATED", SG(request_info).path_translated, track_vars_array TSRMLS_CC);
423 highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC);
426 file_handle.filename = SG(request_info).path_translated;
448 SG(request_info).path_translated = s.c;
475 free(SG(request_info).path_translated);
/PHP_TRUNK/sapi/tux/
H A Dphp_tux.c204 php_register_variable("PATH_TRANSLATED", SG(request_info).path_translated, track_vars_array TSRMLS_CC);
297 file_handle.filename = SG(request_info).path_translated;
328 SG(request_info).path_translated = s.c;
357 free(SG(request_info).path_translated);

Completed in 43 milliseconds

12