Bug #71711 [Opn]: Soap Server Member variables reference bug

From: Date: Wed, 30 Mar 2016 08:09:45 +0000
Subject: Bug #71711 [Opn]: Soap Server Member variables reference bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200236@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71711&edit=1

 ID:                 71711
 User updated by:    xxx at sebastianviereck dot de
 Reported by:        xxx at sebastianviereck dot de
 Summary:            Soap Server Member variables reference bug
 Status:             Open
 Type:               Bug
 Package:            SOAP related
 Operating System:   Ubuntu 14.4
 PHP Version:        7.0.4
 Block user comment: N
 Private report:     N

 New Comment:

do not show my email address


Previous Comments:
------------------------------------------------------------------------
[2016-03-04 09:23:07] xxx at sebastianviereck dot de

Description:
------------
The  Soap Server handling responses with references in class member variables and crashes with an
Exception.

Test script:
---------------
http://www.sebastianviereck.de/en/php7-soap-server-bug-ticket/

Expected result:
----------------
if you execute the soap client, you get an error:
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server] SOAP-ERROR: Encoding: Cannot find
encoding in client.php on line 24
( ! ) SoapFault: SOAP-ERROR: Encoding: Cannot find encoding in client.php on line 24

Actual result:
--------------
Result in PHP5.3 is

stdClass Object
(
    [posts] => Array
        (
            [0] => Array
                (
                    [title] => Demo Post 1
                    [body] => Demo content 1
                )

            [1] => Array
                (
                    [title] => Demo Post 2
                    [body] => Demo content 2
                )

            [2] => Array
                (
                    [title] => Demo Post 3
                    [body] => Demo content 3
                )

            [3] => Array
                (
                    [title] => Demo Post 4
                    [body] => Demo content 4
                )

        )

)


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



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


Thread (3 messages)

« previous php.bugs (#200236) next »