OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*******************************************************************************/
-#include "php_psi_stdinc.h"
-#include "php_psi.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#else
+# include "php_config.h"
+#endif
-#include <dlfcn.h>
#include <fnmatch.h>
-
#include <Zend/zend_smart_str.h>
+#include "php_psi.h"
#include "data.h"
+#include "dl.h"
#define PSI_FUNC_REDIRS
-#include "php_psi_posix.h"
+#include "php_psi_predef.h"
struct psi_decl *psi_decl_init(struct psi_decl_arg *func, struct psi_plist *args)
{
if (d->redir) {
zend_string_release(d->redir);
}
- free(d);
+ pefree(d, 1);
}
}
"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;