mirror of
https://github.com/php/php-src.git
synced 2025-01-19 18:24:15 +08:00
- MFH Add compiler globals as
This commit is contained in:
parent
64b5048d80
commit
edc7e3054e
3
.gdbinit
3
.gdbinit
@ -2,13 +2,16 @@ define ____executor_globals
|
||||
if basic_functions_module.zts
|
||||
set $tsrm_ls = ts_resource_ex(0, 0)
|
||||
set $eg = ((zend_executor_globals) (*((void ***) $tsrm_ls))[executor_globals_id-1])
|
||||
set $cg = ((zend_compiler_globals) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
|
||||
else
|
||||
set $eg = executor_globals
|
||||
set $cg = compiler_globals
|
||||
end
|
||||
end
|
||||
|
||||
document ____executor_globals
|
||||
portable way of accessing executor_globals, set $eg
|
||||
this also sets compiler_globals to $cg
|
||||
ZTS detection is automatically based on ext/standard module struct
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user