projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
build: fix package.xml
[m6w6/ext-psi]
/
src
/
module.c
diff --git
a/src/module.c
b/src/module.c
index 778f396b7e9cc6a5fd8bacffdad85bb096018005..e7948d8a0e9abec32534e7665797fa6109e65fdf 100644
(file)
--- a/
src/module.c
+++ b/
src/module.c
@@
-239,15
+239,15
@@
static PHP_MINIT_FUNCTION(psi)
PSI_G(context) = psi_context_init(NULL, ops, psi_error_wrapper, flags);
psi_context_build(PSI_G(context), PSI_G(directory));
PSI_G(context) = psi_context_init(NULL, ops, psi_error_wrapper, flags);
psi_context_build(PSI_G(context), PSI_G(directory));
- if (psi_check_env("PSI_DUMP")) {
- psi_context_dump(PSI_G(context), STDOUT_FILENO);
- }
-
return SUCCESS;
}
static PHP_MSHUTDOWN_FUNCTION(psi)
{
return SUCCESS;
}
static PHP_MSHUTDOWN_FUNCTION(psi)
{
+ if (psi_check_env("PSI_DUMP")) {
+ psi_context_dump(PSI_G(context), STDOUT_FILENO);
+ }
+
psi_context_free(&PSI_G(context));
UNREGISTER_INI_ENTRIES();
psi_context_free(&PSI_G(context));
UNREGISTER_INI_ENTRIES();