Bug #50675 [Opn->Csd]: SoapClient can't handle object references correctly.

From: Date: Tue, 23 Oct 2018 12:27:32 +0000
Subject: Bug #50675 [Opn->Csd]: SoapClient can't handle object references correctly.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217665@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=50675&edit=1

 ID:                 50675
 Updated by:         nikic@php.net
 Reported by:        margaritisz dot oresztesz at dotroll dot hu
 Summary:            SoapClient can't handle object references correctly.
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            SOAP related
 Operating System:   Linux
 PHP Version:        5.2.12
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of camporter1@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=db47e35373513705b84b7391ed25e9854308eef2
Log: Fixed bug #50675


Previous Comments:
------------------------------------------------------------------------
[2018-10-06 06:22:39] camporter1 at gmail dot com

Attempted fix on https://github.com/php/php-src/pull/3584
(couldn't attach this PR)

------------------------------------------------------------------------
[2012-03-01 16:07:53] bulk at janoszen dot hu

This bug is now open for more than 2 years. Would somebody please take a look at it?

------------------------------------------------------------------------
[2011-01-24 12:27:54] bulk at janoszen dot hu

We currently patch the SOAP library from 5.2.0 into our installations, which works as expected.

------------------------------------------------------------------------
[2011-01-24 12:25:20] wenz@php.net

@ bulk at janoszen dot hu: which PHP 5.2 version could you confirm as working as expected?

------------------------------------------------------------------------
[2011-01-23 11:07:00] kayapo at molnaristvan dot eu

I use PHP 5.3.5 (from backports) in Debian GNU/Linux 5.0.7 Lenny. My resoults:

PHP SOAP client with Apache2 http request
=========================================
kayapo@ponyfarm:~$ wget http***kayapo.dev.molnaristvan.eu/client.php -O -
--2011-01-23 10:56:44--  http***kayapo.dev.molnaristvan.eu/client.php
kayapo.dev.molnaristvan.eu feloldása… 192.168.69.60
Csatlakozás a következőhöz: kayapo.dev.molnaristvan.eu[192.168.69.60]:80…
kapcsolódva.
HTTP kérés elküldve, várakozás válaszra… 200 OK
Hossz: 682 [text/html]
Mentés ide: „STDOUT”

 0% [                                                                                               
                                                                                                   
] 0           --.-K/s              --- test ---
REQUEST: 
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http***schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:test><firstUser
id="ref1"><userId>1</userId><userName>username</userName></firstUser><firstUser
href="#ref1"/></SOAP-ENV:test></SOAP-ENV:Body></SOAP-ENV:Envelope>

RESPONSE MSG: 
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http***schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:testResponse><response/></SOAP-ENV:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

RESPONSE: 
object(User)#3 (2) {
  ["userId":"User":private]=>
  NULL
  ["userName":"User":private]=>
  NULL
}
100%[===================================================================================================================================================================================================>]
682         --.-K/s   idő 0s     

2011-01-23 10:56:44 (115 MB/s) --  kiírva a szabványos kimenetre [682/682]

PHP SOAP client from command line
=================================
kayapo@www:~/workspace/site/frontend$ php client.php                                                
                                                                                                    
                                   
--- test ---                                                                                        
                                                                                                    
                                   
REQUEST:                                                                                            
                                                                                                    
                                   
<?xml version="1.0" encoding="UTF-8"?>                                    
                                                                                                    
                                                             
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http***schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:test><firstUser
id="ref1"><userId>1</userId><userName>username</userName></firstUser><firstUser
href="#ref1"/></SOAP-ENV:test></SOAP-ENV:Body></SOAP-ENV:Envelope>   
                                                                                                    
                                                                                                    
   
                                                                                                    
                                                                                                    
                                   
RESPONSE MSG:                                                                                       
                                                                                                    
                                   
<?xml version="1.0" encoding="UTF-8"?>                                    
                                                                                                    
                                                             
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http***schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:testResponse><response/></SOAP-ENV:testResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
                                                 
                                                                                                    
                                                                                                    
                                   
RESPONSE:                                                                                           
                                                                                                    
                                   
object(User)#3 (2) {                                                                                
                                                                                                    
                                   
  ["userId":"User":private]=>                                                
                                                                                                    
                                                          
  NULL
  ["userName":"User":private]=>
  NULL
}

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=50675


--
Edit this bug report at https://bugs.php.net/bug.php?id=50675&edit=1


Thread (13 messages)

« previous php.bugs (#217665) next »