projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
flush
[m6w6/ext-psi]
/
src
/
module.c
diff --git
a/src/module.c
b/src/module.c
index 389cbc5752e123fc33cd1fab4eb8a4f7c264da80..90a838da0e849aef935d7ae4bd55b5e689eaca1c 100644
(file)
--- a/
src/module.c
+++ b/
src/module.c
@@
-26,6
+26,9
@@
PHP_INI_END();
static int psi_select_dirent(const struct dirent *entry)
{
static int psi_select_dirent(const struct dirent *entry)
{
+#ifndef FNM_CASEFOLD
+#define FNM_CASEFOLD 0
+#endif
return 0 == fnmatch("*.psi", entry->d_name, FNM_CASEFOLD);
}
return 0 == fnmatch("*.psi", entry->d_name, FNM_CASEFOLD);
}
@@
-83,9
+86,11
@@
PHP_MINIT_FUNCTION(psi)
zend_function_entry *closures = PSI_CompilerCompile(&C);
if (closures) {
zend_function_entry *closures = PSI_CompilerCompile(&C);
if (closures) {
- zend_register_functions(NULL, closures, NULL, MODULE_PERSISTENT);
+ if (SUCCESS != zend_register_functions(NULL, closures, NULL, MODULE_PERSISTENT)) {
+ fprintf(stderr, "Failed to register functions!\n");
+ }
}
}
- PSI_CompilerDtor(&C);
+
//
PSI_CompilerDtor(&C);
}
jit_context_build_end(ctx);
}
}
jit_context_build_end(ctx);
}