Hello, trying to set a default global value using a static method cause a segfault.
Inspecting the code, seems that on Global.cpp -> Global &Global::update() the active_symbol_table isn't already built.
Adding this check before the zend_hash_add solves the segfault, but when i try to read this value with PHP::GLOBALS it's always null (maybe because Globals::operator[] read from symbol_table and not from active_symbol_table ???).
if(!EG(active_symbol_table))
zend_rebuild_symbol_table(TSRMLS_C);
I'm missing something?
Thank you.
Hello, trying to set a default global value using a static method cause a segfault.
Inspecting the code, seems that on Global.cpp -> Global &Global::update() the active_symbol_table isn't already built.
Adding this check before the zend_hash_add solves the segfault, but when i try to read this value with PHP::GLOBALS it's always null (maybe because Globals::operator[] read from symbol_table and not from active_symbol_table ???).
I'm missing something?
Thank you.