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

12

/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/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 Dphp_fopen_wrapper.c248 if (!strcmp(sapi_module.name, "cli")) {
261 if (!strcmp(sapi_module.name, "cli")) {
274 if (!strcmp(sapi_module.name, "cli")) {
292 if (strcmp(sapi_module.name, "cli")) {
H A Dinfo.c53 #define SECTION(name) if (!sapi_module.phpinfo_as_text) { \
107 if (!sapi_module.phpinfo_as_text) {
120 if (!sapi_module.phpinfo_as_text) {
128 if (!sapi_module.phpinfo_as_text) {
145 if (!sapi_module.phpinfo_as_text) {
166 if (!sapi_module.phpinfo_as_text) {
209 if (!sapi_module.phpinfo_as_text) {
219 if (!sapi_module.phpinfo_as_text) {
228 if (!sapi_module.phpinfo_as_text) {
234 if (!sapi_module
[all...]
/PHP_TRUNK/sapi/nsapi/
H A Dnsapi.c793 static int php_nsapi_startup(sapi_module_struct *sapi_module) argument
795 if (php_module_startup(sapi_module, &nsapi_module_entry, 1)==FAILURE) {
/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/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/main/
H A Dphp_variables.c284 if (sapi_module.input_filter(PARSE_POST, var->ptr, &val, vlen, &new_vlen)) {
459 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) {
470 if (sapi_module.input_filter(arg, var, &val, val_len, &new_val_len)) {
594 if (sapi_module.register_server_variables) {
595 sapi_module.register_server_variables(&PG(http_globals)[TRACK_VARS_SERVER]);
671 sapi_module.treat_data(PARSE_GET, NULL, NULL);
690 sapi_module.treat_data(PARSE_POST, NULL, NULL);
705 sapi_module.treat_data(PARSE_COOKIE, NULL, NULL);
H A Dphp_ini.c90 esc_html = !sapi_module.phpinfo_as_text;
92 if (!sapi_module.phpinfo_as_text) {
103 esc_html = !sapi_module.phpinfo_as_text;
105 if (!sapi_module.phpinfo_as_text) {
133 if (!sapi_module.phpinfo_as_text) {
396 if (sapi_module.ini_defaults) {
397 sapi_module.ini_defaults(&configuration_hash);
405 if (sapi_module.php_ini_path_override) {
406 php_ini_file_name = sapi_module.php_ini_path_override;
407 php_ini_search_path = sapi_module
[all...]
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 Drfc1867.c264 actual_read = (int)sapi_module.read_post(buf, bytes_to_read);
718 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));
737 sapi_module.sapi_error(E_WARNING, "Missing boundary in multipart/form-data POST data");
748 sapi_module.sapi_error(E_WARNING, "Invalid boundary in multipart/form-data POST data");
762 sapi_module.sapi_error(E_WARNING, "Unable to initialize the input buffer");
876 if (++count <= PG(max_input_vars) && sapi_module.input_filter(PARSE_POST, param, &value, value_len, &new_val_len)) {
929 sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
934 sapi_module.sapi_error(E_WARNING, "File Upload Mime headers garbled");
999 sapi_module.sapi_error(E_NOTICE, "No file uploaded");
1019 sapi_module
[all...]
H A Dmain.c275 if (sapi_module.executable_location) {
277 if (!strchr(sapi_module.executable_location, '/')) {
290 snprintf(search_path, MAXPATHLEN, "%s/%s", search_dir, sapi_module.executable_location);
303 } else if (!VCWD_REALPATH(sapi_module.executable_location, binary_location) || VCWD_ACCESS(binary_location, X_OK)) {
393 cgi_or_cli = (!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module.name, "cgi"));
698 if (sapi_module.log_message) {
699 sapi_module.log_message(log_message);
1140 if ((!strcmp(sapi_module.name, "cli") || !strcmp(sapi_module
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_webdata_transfer.c69 if (sapi_module.name) {
70 ZVAL_STRING(&zv[6], sapi_module.name);
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.c586 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
589 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
593 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
596 if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len)) {
603 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) {
1649 /* sapi_module.deactivate is where to backup things, last chance before mm_shutdown... */
/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/apache2handler/
H A Dsapi_apache2.c287 if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len)) {
292 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri, strlen(ctx->r->uri), &new_val_len)) {
353 static int php_apache2_startup(sapi_module_struct *sapi_module) argument
355 if (php_module_startup(sapi_module, &php_apache_module, 1)==FAILURE) {
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c735 if (sapi_module.get_stat &&
739 zend_stat_t *tmpbuf = sapi_module.get_stat();
2122 if (sapi_module.name) {
2124 if (strcmp(sapi_module.name, *sapi_name) == 0) {
2129 strcmp(sapi_module.name, "cli") == 0) {
2251 strcmp(sapi_module.name, "cli") == 0) {
/PHP_TRUNK/ext/libxml/
H A Dlibxml.c843 if (sapi_module.name) {
853 if (strcmp(sapi_module.name, *sapi_name) == 0) {
/PHP_TRUNK/sapi/cgi/
H A Dcgi_main.c595 if (sapi_module.input_filter(filter_arg, var, &val, strlen(val), &new_val_len)) {
678 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
687 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
903 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
905 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
2200 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());
2202 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/cli/
H A Dphp_cli.c353 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) {
356 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) {
361 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &script_filename, len, &len)) {
364 if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &script_filename, len, &len)) {
369 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) {
417 static int php_cli_startup(sapi_module_struct *sapi_module) /* {{{ */ argument
419 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) {
1174 sapi_module_struct *sapi_module = &cli_sapi_module; local
1270 sapi_module = &cli_server_sapi_module;
1279 sapi_module
[all...]
H A Dphp_cli_server.c482 static int sapi_cli_server_startup(sapi_module_struct *sapi_module) /* {{{ */ argument
484 if (php_module_startup(sapi_module, &cli_server_module_entry, 1) == FAILURE) {
592 if (sapi_module.input_filter(PARSE_SERVER, (char*)key, &new_val, strlen(val), &new_val_len)) {
1172 if (sapi_module.log_message) {
1173 sapi_module.log_message(buf);
2096 send_header_func = sapi_module.send_headers;
2100 sapi_module.send_headers = sapi_cli_server_discard_headers;
2102 sapi_module.send_headers = send_header_func;
2494 sapi_module.phpinfo_as_text = 0;
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_main.c554 if (var && sapi_module.input_filter(filter_arg, var->val, &val, strlen(val), &new_val_len)) {
588 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
595 if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, php_self_len, &php_self_len)) {
801 static int php_cgi_startup(sapi_module_struct *sapi_module) argument
803 if (php_module_startup(sapi_module, &cgi_module_entry, 1) == FAILURE) {
1683 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());
1685 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());

Completed in 49 milliseconds

12