Searched refs:sapi_module (Results 1 - 25 of 33) sorted by relevance

12

/PHP_TRUNK/ext/session/
H A Dmod_mm.c276 int mod_name_len = strlen(sapi_module.name);
302 memcpy(ps_mm_path + save_path_len, sapi_module.name, mod_name_len);
/PHP_TRUNK/TSRM/
H A Dtsrm_win32.c521 if (strcmp(sapi_module.name, "cli") != 0) {
/PHP_TRUNK/sapi/embed/
H A Dphp_embed.c107 static int php_embed_startup(sapi_module_struct *sapi_module) argument
109 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_rinit_hook.c36 if (!strcmp(sapi_module.name, PHPDBG_NAME)) {
H A Dphpdbg_wait.c202 PHPDBG_G(sapi_name_ptr) = sapi_module.name = strdup(Z_STRVAL_P(zvp));
204 PHPDBG_G(sapi_name_ptr) = sapi_module.name = NULL;
235 if (!sapi_module.name || strcmp(sapi_module.name, Z_STRVAL_P(module))) {
H A Dphpdbg_webdata_transfer.c69 if (sapi_module.name) {
70 ZVAL_STRING(&zv[6], sapi_module.name);
H A Dphpdbg.c851 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
854 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
858 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
861 if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
868 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) {
/PHP_TRUNK/main/
H A DSAPI.c81 SAPI_API sapi_module_struct sapi_module; variable
87 sapi_module = *sf;
224 if (!sapi_module.default_post_reader) {
227 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type);
241 if(sapi_module.default_post_reader) {
242 sapi_module.default_post_reader();
250 if (!sapi_module.read_post) {
254 read_bytes = sapi_module.read_post(buffer, buflen);
279 if (sapi_module.read_post) {
425 SG(request_info).cookie_data = sapi_module
[all...]
H A DSAPI.h72 extern SAPI_API sapi_module_struct sapi_module; /* true global */
225 int (*startup)(struct _sapi_module_struct *sapi_module);
226 int (*shutdown)(struct _sapi_module_struct *sapi_module);
H A Dmain.c243 if (sapi_module.executable_location) {
245 if (!strchr(sapi_module.executable_location, '/')) {
258 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location);
271 } else if (!VCWD_REALPATH(sapi_module.executable_location, binary_location) || VCWD_ACCESS(binary_location, X_OK)) {
361 cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi"));
666 if (sapi_module.log_message) {
667 sapi_module.log_message(log_message);
1108 if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module
[all...]
H A Dphp_ini.c86 esc_html = !sapi_module.phpinfo_as_text;
88 if (!sapi_module.phpinfo_as_text) {
99 esc_html = !sapi_module.phpinfo_as_text;
101 if (!sapi_module.phpinfo_as_text) {
129 if (!sapi_module.phpinfo_as_text) {
392 if (sapi_module.ini_defaults) {
393 sapi_module.ini_defaults(&configuration_hash);
401 if (sapi_module.php_ini_path_override) {
402 php_ini_file_name = sapi_module.php_ini_path_override;
403 php_ini_search_path = sapi_module
[all...]
H A Drfc1867.c265 actual_read = (int)sapi_module.read_post(buf, bytes_to_read);
721 sapi_module.sapi_error(E_WARNING, "POST Content-Length of " ZEND_LONG_FMT " bytes exceeds the limit of " ZEND_LONG_FMT " bytes", SG(request_info).content_length, SG(post_max_size));
740 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
751 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
765 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer");
879 if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, value_len, &new_val_len)) {
932 sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
937 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled");
1002 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1022 sapi_module
[all...]
H A Dphp_variables.c283 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) {
464 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) {
475 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) {
601 if (sapi_module.register_server_variables) {
602 sapi_module.register_server_variables(&PG(http_globals)[TRACK_VARS_SERVER]);
675 sapi_module.treat_data(PARSE_GET, NULL, NULL);
694 sapi_module.treat_data(PARSE_POST, NULL, NULL);
709 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL);
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c281 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len)) {
286 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val_len)) {
347 static int php_apache2_startup(sapi_module_struct *sapi_module) argument
349 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) {
/PHP_TRUNK/ext/standard/
H A Dcredits.c30 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
34 if (!sapi_module.phpinfo_as_text) {
52 if (!sapi_module.phpinfo_as_text) {
128 if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) {
H A Dinfo.c50 #define SECTION(name) if (!sapi_module.phpinfo_as_text) { \
104 if (!sapi_module.phpinfo_as_text) {
117 if (!sapi_module.phpinfo_as_text) {
125 if (!sapi_module.phpinfo_as_text) {
142 if (!sapi_module.phpinfo_as_text) {
163 if (!sapi_module.phpinfo_as_text) {
206 if (!sapi_module.phpinfo_as_text) {
216 if (!sapi_module.phpinfo_as_text) {
225 if (!sapi_module.phpinfo_as_text) {
231 if (!sapi_module
[all...]
H A Dphp_fopen_wrapper.c251 if (!strcmp(sapi_module.name, "cli")) {
267 if (!strcmp(sapi_module.name, "cli")) {
283 if (!strcmp(sapi_module.name, "cli")) {
304 if (strcmp(sapi_module.name, "cli")) {
/PHP_TRUNK/sapi/litespeed/
H A Dlsapi_main.c91 static int php_lsapi_startup(sapi_module_struct *sapi_module) argument
93 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) {
96 argv0 = sapi_module->executable_location;
212 if (sapi_module.input_filter(filter_arg, (char *)pKey, &new_val, valLen, &new_val_len)) {
810 php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
812 php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c556 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) {
619 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
626 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
836 static int php_cgi_startup(sapi_module_struct *sapi_module) /* {{{ */ argument
838 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
1733 php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
1735 php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
/PHP_TRUNK/ext/libxml/
H A Dlibxml.c846 if (sapi_module.name) {
856 if (strcmp(sapi_module.name, *sapi_name) == 0) {
/PHP_TRUNK/ext/mbstring/
H A Dmb_gpc.c332 if (sapi_module.input_filter(info->data_type, var, &val, val_len, &new_val_len)) {
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_server.c478 static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */ argument
480 if (php_module_startup(sapi_module, &cli_server_module_entry, 1) == FAILURE) {
588 if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) {
1168 if (sapi_module.log_message) {
1169 sapi_module.log_message(buf);
2095 send_header_func = sapi_module.send_headers;
2099 sapi_module.send_headers = sapi_cli_server_discard_headers;
2101 sapi_module.send_headers = send_header_func;
2493 sapi_module.phpinfo_as_text = 0;
H A Dphp_cli.c357 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) {
360 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) {
365 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &script_filename, len, &len)) {
368 if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &script_filename, len, &len)) {
373 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) {
421 static int php_cli_startup(sapi_module_struct *sapi_module) /* {{{ */ argument
423 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) {
1178 sapi_module_struct *sapi_module = &cli_sapi_module; local
1274 sapi_module = &cli_server_sapi_module;
1283 sapi_module
[all...]
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c609 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) {
692 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
701 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
917 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
919 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
2216 php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
2218 php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2015 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c748 if (sapi_module.get_stat &&
752 zend_stat_t *tmpbuf = sapi_module.get_stat();
2343 if (sapi_module.name) {
2345 if (strcmp(sapi_module.name, *sapi_name) == 0) {
2350 strcmp(sapi_module.name, "cli") == 0
2351 || strcmp(sapi_module.name, "phpdbg") == 0)) {
2509 strcmp(sapi_module.name, "cli") == 0) {

Completed in 97 milliseconds

12