Subject: | PayPal API does not work with SOAP::Constants::DO_NOT_USE_XML_PARSER |
SOAP::Lite by default loads the XML::Parser module, but you can disable it by setting this
constant:
$SOAP::Constants::DO_NOT_USE_XML_PARSER = 1;
This is described in the POD docs for SOAP::Lite. However, if you set the constant above
Business::Paypal::API fails to work entirely. It reports this error:
404 Not Found at /ipix/perl/lib/site_perl/5.8.7/Business/PayPal/API.pm line 142
This is highly desirable for people who don't have XML::Parser installed, or are using Apache/
mod_perl. SOAP::Lite will cause segmentation faults in Apache because XML::Parser links to
"expat" which Apache already has loaded.
perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=linux, osvers=2.6.11-1.1369_fc4smp, archname=i686-linux
uname='linux tester01.eng.admission.net 2.6.11-1.1369_fc4smp #1 smp thu jun 2
23:08:39 edt 2005 i686 athlon i386 gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.0.1 20050727 (Red Hat 4.0.1-5)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.5.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Sep 28 2005 12:05:14
@INC:
/ipix/perl/lib/5.8.7/i686-linux
/ipix/perl/lib/5.8.7
/ipix/perl/lib/site_perl/5.8.7/i686-linux
/ipix/perl/lib/site_perl/5.8.7
/ipix/perl/lib/site_perl
.
uname -a
Linux dev01.eng.admission.net 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT
2005 i686 i686 i386 GNU/Linux