projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix build
[m6w6/ext-psi]
/
src
/
types
/
decl.c
diff --git
a/src/types/decl.c
b/src/types/decl.c
index 94f43368c978c306f04f7f6c0456550330e5e2bc..f948b014350ad08028d41098457f537cee43ab32 100644
(file)
--- a/
src/types/decl.c
+++ b/
src/types/decl.c
@@
-28,14
+28,13
@@
#else
# include "php_config.h"
#endif
#else
# include "php_config.h"
#endif
-#include "php_psi.h"
-#include <dlfcn.h>
#include <fnmatch.h>
#include <fnmatch.h>
-
#include <Zend/zend_smart_str.h>
#include <Zend/zend_smart_str.h>
+#include "php_psi.h"
#include "data.h"
#include "data.h"
+#include "dl.h"
#define PSI_FUNC_REDIRS
#include "php_psi_predef.h"
#define PSI_FUNC_REDIRS
#include "php_psi_predef.h"
@@
-65,7
+64,7
@@
void psi_decl_free(struct psi_decl **d_ptr)
if (d->redir) {
zend_string_release(d->redir);
}
if (d->redir) {
zend_string_release(d->redir);
}
-
free(d
);
+
pefree(d, 1
);
}
}
}
}
@@
-127,7
+126,7
@@
static inline bool psi_decl_validate_func(struct psi_data *data,
"Failed to locate symbol '%s(%s)': %s",
func->var->name->val,
decl->redir ? decl->redir->val : "",
"Failed to locate symbol '%s(%s)': %s",
func->var->name->val,
decl->redir ? decl->redir->val : "",
- dlerror() ?: "not found");
+
psi_
dlerror() ?: "not found");
return false;
}
return true;
return false;
}
return true;