From:             michal dot taborsky at gmail dot com
Operating system: CentOS 4.3 x86_64
PHP version:      5.1.4
PHP Bug Type:     SOAP related
Bug description:  SOAP call response is not parsed

Description:
------------
The bug was reported and supposedly fixed long time ago as 29844 (and few
more). But I get exactly the same result. The webservice works fine on
other versions (namely 5.0.3) and other servers, but with this one it just
returns NULL, though the __getLastResponse() contains proper response.

Configure options:
'./configure' '--build=x86_64-redhat-linux-gnu'
'--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64'
'--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-libdir=lib64' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic'
'--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf'
'--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv'
'--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell'
'--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib'
'--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes'
'--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg'
'--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx'
'--with-pear=/usr/share/pear' '--without-kerberos'
'--enable-ucd-snmp-hack' '--enable-memory-limit' '--enable-shmop'
'--enable-calendar' '--enable-dbx' '--enable-dio'
'--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite'
'--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs'
'--with-mysql' '--with-gd' '--with-dom' '--disable-dba' '--with-pgsql'
'--enable-soap'

Reproduce code:
---------------
<?php
try {
    $s= new SoapClient('authority.wsdl', array("trace" => true,
"exceptions"=>true));
    $r=$s->getTokens('aaa','bbb','ccc');
    var_dump($r);
} catch (SoapFault $e) {
    echo $e;
}
echo $s->__getLastRequest();
echo $s->__getLastResponse();

?>


Expected result:
----------------
string(129) "<?xml version="1.0"?>
<authorityResponse>
<error>
<code>1</code>
<message>Login incorrect</message>
</error>
</authorityResponse>"
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Body><SOAP-ENV:getTokens><username>aaa</username><password>bbb</password><service>ccc</service></SOAP-ENV:getTokens></SOAP-ENV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Body><SOAP-ENV:getTokensResponse><tokens>&lt;?xml
version="1.0"?&gt;
&lt;authorityResponse&gt;
&lt;error&gt;
&lt;code&gt;1&lt;/code&gt;
&lt;message&gt;Login incorrect&lt;/message&gt;
&lt;/error&gt;
&lt;/authorityResponse&gt;</tokens></SOAP-ENV:getTokensResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>


Actual result:
--------------
NULL
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Body><SOAP-ENV:getTokens><username>aaa</username><password>bbb</password><service>ccc</service></SOAP-ENV:getTokens></SOAP-ENV:Body></SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";><SOAP-ENV:Body><SOAP-ENV:getTokensResponse><tokens>&lt;?xml
version="1.0"?&gt;
&lt;authorityResponse&gt;
&lt;error&gt;
&lt;code&gt;1&lt;/code&gt;

&lt;message&gt;Login incorrect&lt;/message&gt;
&lt;/error&gt;
&lt;/authorityResponse&gt;</tokens></SOAP-ENV:getTokensResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>


-- 
Edit bug report at http://bugs.php.net/?id=37783&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37783&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37783&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37783&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37783&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37783&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37783&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37783&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37783&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37783&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37783&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37783&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37783&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37783&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37783&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37783&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37783&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37783&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37783&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37783&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37783&r=mysqlcfg

Reply via email to