Lines Matching refs:exec
118 pg->exec = NULL; in php_phpdbg_globals_ctor()
199 if (PHPDBG_G(exec)) { in PHP_MSHUTDOWN_FUNCTION()
200 free(PHPDBG_G(exec)); in PHP_MSHUTDOWN_FUNCTION()
201 PHPDBG_G(exec) = NULL; in PHP_MSHUTDOWN_FUNCTION()
261 zend_string *exec; in PHP_FUNCTION() local
263 if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &exec) == FAILURE) { in PHP_FUNCTION()
271 if (VCWD_STAT(ZSTR_VAL(exec), &sb) != FAILURE) { in PHP_FUNCTION()
273 if (PHPDBG_G(exec)) { in PHP_FUNCTION()
274 ZVAL_STRINGL(return_value, PHPDBG_G(exec), PHPDBG_G(exec_len)); in PHP_FUNCTION()
275 free(PHPDBG_G(exec)); in PHP_FUNCTION()
279 PHPDBG_G(exec) = zend_strndup(ZSTR_VAL(exec), ZSTR_LEN(exec)); in PHP_FUNCTION()
280 PHPDBG_G(exec_len) = ZSTR_LEN(exec); in PHP_FUNCTION()
286 …(E_WARNING, "Failed to set execution context (%s), not a regular file or symlink", ZSTR_VAL(exec)); in PHP_FUNCTION()
290 …d_error(E_WARNING, "Failed to set execution context (%s) the file does not exist", ZSTR_VAL(exec)); in PHP_FUNCTION()
822 if (PHPDBG_G(exec)) { in php_sapi_phpdbg_register_vars()
824 …if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &PHPDBG_G(exec), PHPDBG_G(exec_len), &len))… in php_sapi_phpdbg_register_vars()
825 php_register_variable("PHP_SELF", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
827 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_NAME", &PHPDBG_G(exec), PHPDBG_G(exec_len), &le… in php_sapi_phpdbg_register_vars()
828 php_register_variable("SCRIPT_NAME", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
831 …if (sapi_module.input_filter(PARSE_SERVER, "SCRIPT_FILENAME", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
832 php_register_variable("SCRIPT_FILENAME", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
834 …if (sapi_module.input_filter(PARSE_SERVER, "PATH_TRANSLATED", &PHPDBG_G(exec), PHPDBG_G(exec_len),… in php_sapi_phpdbg_register_vars()
835 php_register_variable("PATH_TRANSLATED", PHPDBG_G(exec), track_vars_array); in php_sapi_phpdbg_register_vars()
1131 char *exec = NULL; in main() local
1191 exec = settings->exec; in main()
1295 if (!exec && strlen(argv[php_optind])) { in main()
1296 exec = strdup(argv[php_optind]); in main()
1371 phpdbg_do_help_cmd(exec); in main()
1390 if (exec) { in main()
1391 free(exec); in main()
1428 if (exec) { /* set execution context */ in main()
1429 PHPDBG_G(exec) = phpdbg_resolve_path(exec); in main()
1430 PHPDBG_G(exec_len) = PHPDBG_G(exec) ? strlen(PHPDBG_G(exec)) : 0; in main()
1432 free(exec); in main()
1433 exec = NULL; in main()
1454 SG(request_info).argv[0] = PHPDBG_G(exec) ? estrdup(PHPDBG_G(exec)) : estrdup(""); in main()
1547 } else if (PHPDBG_G(exec)) { in main()
1674 …if (PHPDBG_G(exec) && strcmp("Standard input code", PHPDBG_G(exec)) == SUCCESS) { /* i.e. executio… in main()
1675 …phpdbg_file_source *data = zend_hash_str_find_ptr(&PHPDBG_G(file_sources), PHPDBG_G(exec), PHPDBG_… in main()
1692 if (PHPDBG_G(exec)) { in main()
1693 settings->exec = zend_strndup(PHPDBG_G(exec), PHPDBG_G(exec_len)); in main()