File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -449,14 +449,12 @@ static PHP_FUNCTION(phpdbg_start_oplog)
449
449
450
450
if (!prev ) {
451
451
PHPDBG_G (oplog_arena ) = zend_arena_create (64 * 1024 );
452
-
453
- PHPDBG_G (oplog_cur ) = ((phpdbg_oplog_entry * ) zend_arena_alloc (& PHPDBG_G (oplog_arena ), sizeof (phpdbg_oplog_entry ))) + 1 ;
454
- PHPDBG_G (oplog_cur )-> next = NULL ;
455
452
}
456
453
457
454
PHPDBG_G (oplog_list ) = emalloc (sizeof (phpdbg_oplog_list ));
458
455
PHPDBG_G (oplog_list )-> prev = prev ;
459
- PHPDBG_G (oplog_list )-> start = PHPDBG_G (oplog_cur );
456
+ PHPDBG_G (oplog_cur ) = & PHPDBG_G (oplog_list )-> start ;
457
+ PHPDBG_G (oplog_cur )-> next = NULL ;
460
458
}
461
459
462
460
static zend_always_inline zend_bool phpdbg_is_ignored_opcode (zend_uchar opcode ) {
@@ -633,7 +631,7 @@ static PHP_FUNCTION(phpdbg_end_oplog)
633
631
return ;
634
632
}
635
633
636
- cur = PHPDBG_G (oplog_list )-> start ;
634
+ cur = PHPDBG_G (oplog_list )-> start . next ;
637
635
prev = PHPDBG_G (oplog_list )-> prev ;
638
636
639
637
efree (PHPDBG_G (oplog_list ));
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ struct _phpdbg_oplog_entry {
40
40
typedef struct _phpdbg_oplog_list phpdbg_oplog_list ;
41
41
struct _phpdbg_oplog_list {
42
42
phpdbg_oplog_list * prev ;
43
- phpdbg_oplog_entry * start ;
43
+ phpdbg_oplog_entry start ; /* Only "next" member used. */
44
44
};
45
45
46
46
#endif /* PHPDBG_OPCODE_H */
You can’t perform that action at this time.
0 commit comments