Re: Can't load 'SimpleXML' as 'libxml' is not loaded in Unknown line 0.

From: Date: Tue, 16 Oct 2007 14:28:28 +0000
Subject: Re: Can't load 'SimpleXML' as 'libxml' is not loaded in Unknown line 0.
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-28564@lists.php.net to get a copy of this message
I will be fixing this soon to support the new .30 libxml2 builds (just been lazy). For now, all you need to do is edit the config.w32 file in ext/libxml with the following (not on my windows system so might not be 100% accurate): change: if (CHECK_LIB("libxml2_a.lib;libxml2.lib", "libxml") && to if (CHECK_LIB("libxml2_a_dll.lib;libxml2_a.lib;libxml2.lib", "libxml") && change: ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC "); to: ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC /D LIBXML_STATIC_FOR_DLL "); do buildconf, then configure again and finally nmake. That will now build using the new static for dll lib of libxml2. Rob Chhaya Sharma wrote:
I am trying to integrate libxml2 with PHP by linking it with libxml2_a_dll.lib.However this is not happening.Apache throws following warning. PHP Warning: Cannot load module 'SimpleXML' because required module 'libxml' is not loaded in Unknown on line 0 I have added libxml.obj to STATIC_EXT_OBJS and libxml2_a_dll.lib to STATIC_EXT_LIBS and LIBXML_STATIC_FOR_DLL to STATIC_EXT_CFLAGS. Following are the two crucial lines in the makefile for obtaining library libxml2_a_dll.lib . .c{$(LIBXML_STATIC)}.obj: $(CC) $(INCLUDE_FLAGS) $(CFLAGS) /D "LIBXML_STATIC" /D "LIBXML_STATIC_FOR_DLL" /Fo$(LIBXML_STATIC)\ /c $< all: $(STATIC_OBJS) $(SO_OBJS) lib.exe /nologo /OUT:$(LIBXML_STATIC)\libxml2_a_dll.lib $(STATIC_OBJS) I am novice to such kind of job.Can anyone please help me. Thanks, Chhaya


« previous php.windows (#28564) next »