36#define PHPDBG_LIST_COMMAND_D(f, h, a, m, l, s, flags) \
37 PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[12], flags)
50 phpdbg_error(
"Not executing, and execution context not set");
54 switch (param->type) {
65 const char *abspath = param->file.name;
67 abspath = resolved_path_buf;
69 file = zend_string_init(abspath,
strlen(abspath), 0);
71 zend_string_release(
file);
98 phpdbg_error(
"Could not find %s::%s", param->method.class, param->method.name);
103 phpdbg_error(
"Could not find the class %s", param->method.class);
124 phpdbg_error(
"The requested class (%s) could not be found", param->str);
132 uint32_t
line, lastline;
136 phpdbg_error(
"Could not find information about included file...");
147 if (lastline >
data->lines) {
148 lastline =
data->lines;
152 uint32_t linestart =
data->line[
line++];
153 uint32_t linelen =
data->line[
line] - linestart;
159 if (highlight !=
line) {
166 if (*(
buffer + linelen - 1) !=
'\n' || !linelen) {
200 func_table = &
scope->function_table;
205 }
else if (!
EG(function_table)) {
209 func_table =
EG(function_table);
261 if (*bufptr ==
'\n') {
262 dataptr->
line[++
line] = (uint32_t)(bufptr -
data.buf) + 1;
284 filename = zend_string_init(resolved_path_buf,
strlen(resolved_path_buf), 0);
286 if (
file->opened_path) {
287 zend_string_release(
file->opened_path);
288 file->opened_path = filename;
290 zend_string_release(
file->filename);
291 file->filename = filename;
297 if (op_array ==
NULL) {
326 dataptr->
line[0] = 0;
328 if (*bufptr ==
'\n') {
329 dataptr->
line[++
line] = (uint32_t)(bufptr - dataptr->
buf) + 1;
337 if (op_array ==
NULL) {
348 zend_string_release(fake_name);
file(string $filename, int $flags=0, $context=null)
count(Countable|array $value, int $mode=COUNT_NORMAL)
const php_stream_filter_ops * ops
#define phpdbg_try_access
#define phpdbg_catch_access
zend_op_array *(* init_compile_file)(zend_file_handle *file_handle, int type)
#define phpdbg_end_try_access()
zend_op_array *(* compile_string)(zend_string *source_string, const char *filename, zend_compile_position position)
zend_op_array *(* compile_file)(zend_file_handle *file_handle, int type)
PHPDBG_API void phpdbg_resolve_pending_file_break(const char *file)
#define PHPDBG_END_COMMAND
#define phpdbg_default_switch_case()
struct _phpdbg_command_t phpdbg_command_t
#define PHPDBG_ASYNC_SAFE
void phpdbg_list_function(const zend_function *fbc)
void phpdbg_list_function_byname(const char *str, size_t len)
#define PHPDBG_LIST_COMMAND_D(f, h, a, m, l, s, flags)
zend_op_array * phpdbg_init_compile_file(zend_file_handle *file, int type)
void phpdbg_init_list(void)
const phpdbg_command_t phpdbg_list_commands[]
void phpdbg_list_update(void)
zend_op_array * phpdbg_compile_file(zend_file_handle *file, int type)
zend_op_array * phpdbg_compile_string(zend_string *source_string, const char *filename, zend_compile_position position)
void phpdbg_list_file(zend_string *filename, uint32_t count, int offset, uint32_t highlight)
#define PHPDBG_LIST(name)
#define phpdbg_error(strfmt,...)
#define phpdbg_out(fmt,...)
#define phpdbg_write(strfmt,...)
int phpdbg_safe_class_lookup(const char *name, int name_length, zend_class_entry **ce)
PHPDBG_API const char * phpdbg_current_file(void)
struct _zend_class_entry::@126215362204241324314155352336150042254204116267::@166057154351252324007362117353350250255142166322 user
union _zend_class_entry::@126215362204241324314155352336150042254204116267 info
ZEND_API void zend_message_dispatcher(zend_long message, const void *data)
#define ZMSG_FAILED_REQUIRE_FOPEN
#define ZMSG_FAILED_INCLUDE_FOPEN
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
#define estrndup(s, length)
#define erealloc(ptr, size)
ZEND_API zend_op_array *(* zend_compile_file)(zend_file_handle *file_handle, int type)
ZEND_API zend_op_array *(* zend_compile_string)(zend_string *source_string, const char *filename, zend_compile_position position)
enum _zend_compile_position zend_compile_position
#define ZEND_USER_FUNCTION
struct _zend_op_array zend_op_array
ZEND_API uint32_t zend_get_executed_lineno(void)
ZEND_API zend_class_entry * zend_get_executed_scope(void)
ZEND_API bool zend_is_executing(void)
union _zend_function zend_function
ZEND_API zend_result ZEND_FASTCALL zend_hash_del(HashTable *ht, zend_string *key)
struct _zend_file_handle zend_file_handle
struct _zend_string zend_string
ZEND_API char *ZEND_FASTCALL zend_str_tolower_dup(const char *source, size_t length)
struct _zend_class_entry zend_class_entry
ZEND_API zend_result zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len)
struct _zend_array HashTable
#define VCWD_REALPATH(path, real_path)
function(EX_VAR(opline->result.var))