Lines Matching refs:prompt_spec
140 char *prompt_spec = CLIR_G(prompt) ? CLIR_G(prompt) : DEFAULT_PROMPT; in cli_get_prompt() local
143 if (*prompt_spec == '\\') { in cli_get_prompt()
144 switch (prompt_spec[1]) { in cli_get_prompt()
147 prompt_spec++; in cli_get_prompt()
151 prompt_spec++; in cli_get_prompt()
155 prompt_spec++; in cli_get_prompt()
159 prompt_spec++; in cli_get_prompt()
165 prompt_spec++; in cli_get_prompt()
169 prompt_spec++; in cli_get_prompt()
173 prompt_spec++; in cli_get_prompt()
177 prompt_spec++; in cli_get_prompt()
183 } else if (*prompt_spec == '`') { in cli_get_prompt()
184 char *prompt_end = strstr(prompt_spec + 1, "`"); in cli_get_prompt()
188 code = estrndup(prompt_spec + 1, prompt_end - prompt_spec - 1); in cli_get_prompt()
192 zend_eval_stringl(code, prompt_end - prompt_spec - 1, NULL, "php prompt code" TSRMLS_CC); in cli_get_prompt()
196 prompt_spec = prompt_end; in cli_get_prompt()
199 smart_str_appendc(&retval, *prompt_spec); in cli_get_prompt()
201 } while (++prompt_spec && *prompt_spec); in cli_get_prompt()