Lines Matching refs:sapi_module

354 	if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &php_self, len, &len)) {  in sapi_cli_register_variables()
357 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &php_self, len, &len)) { in sapi_cli_register_variables()
362 if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &script_filename, len, &len)) { in sapi_cli_register_variables()
365 if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &script_filename, len, &len)) { in sapi_cli_register_variables()
370 if (sapi_module.input_filter(PARSE_SERVER, "DOCUMENT_ROOT", &docroot, len, &len)) { in sapi_cli_register_variables()
421 static int php_cli_startup(sapi_module_struct *sapi_module) /* {{{ */ in php_cli_startup() argument
423 if (php_module_startup(sapi_module, NULL, 0)==FAILURE) { in php_cli_startup()
1212 sapi_module_struct *sapi_module = &cli_sapi_module; in WinMain() local
1315 sapi_module = &cli_server_sapi_module; in WinMain()
1328 sapi_module = &cli_sapi_module; in WinMain()
1337 sapi_module->ini_defaults = sapi_cli_ini_defaults; in WinMain()
1338 sapi_module->php_ini_path_override = ini_path_override; in WinMain()
1339 sapi_module->phpinfo_as_text = 1; in WinMain()
1340 sapi_module->php_ini_ignore_cwd = 1; in WinMain()
1341 sapi_startup(sapi_module); in WinMain()
1344 sapi_module->php_ini_ignore = ini_ignore; in WinMain()
1346 sapi_module->executable_location = argv[0]; in WinMain()
1348 if (sapi_module == &cli_sapi_module) { in WinMain()
1360 sapi_module->ini_entries = ini_entries; in WinMain()
1363 if (sapi_module->startup(sapi_module) == FAILURE) { in WinMain()
1394 if (sapi_module == &cli_sapi_module) { in WinMain()