Edit report at http://bugs.php.net/bug.php?id=44706&edit=1

 ID:               44706
 Comment by:       mbautista at ircf dot fr
 Reported by:      test1 at boxaroo dot com
 Summary:          Segfault after sending PayPal SOAP request
 Status:           No Feedback
 Type:             Bug
 Package:          SOAP related
 Operating System: at least Linux and Mac
 PHP Version:      5.2.5

 New Comment:

Segmentation fault also occurs on Ubuntu 9.10 with PHP 5.2.4.



The problem is located in php-sdk/lib/PayPal/SOAP/Client.php :



function &__decodeResponse(&$response, $shift = true)



{

        ...

        // Decode to native php datatype.

        $returnArray =& $this->_decode($response); // HERE

        ...

}



The solution :



function _decode_fix($soapvalue)

{

        return parent::_decode($soapvalue);

}

function &__decodeResponse(&$response, $shift = true)

{

        ...

        // Decode to native php datatype.

        $returnArray =& $this->_decode_fix($response);

        ...

}



Note that simply replacing the "HERE" line by :



$returnArray = parent::_decode($soapvalue);



will NOT remove the segmentation fault, you have to call it from another
method, like _decode_fix


Previous Comments:
------------------------------------------------------------------------
[2008-10-21 12:35:37] mike at silverorange dot com

I can confirm this segmentation fault still occurs using the

5.2-200810211030 snapshot. Please reopen this bug. It's probably related
to #44882 because on a patched version of PHP, it doesn't segfault.

------------------------------------------------------------------------
[2008-10-06 15:32:49] mike at silverorange dot com

I can confirm this segmentation fault still occurs using the
5.2-200810011830 snapshot. Please reopen this bug. It's probably related
to #44882 because on a patched version of PHP, it doesn't segfault.

------------------------------------------------------------------------
[2008-08-20 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2008-08-12 16:19:00] j...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi



------------------------------------------------------------------------
[2008-05-26 08:39:38] jasper at flyingfish dot nl

Hi,



We are experiencing the same problem on PHP 5.2.6 on Gentoo.



This is a real problem for us.



Regards,

Jasper

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


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

    http://bugs.php.net/bug.php?id=44706


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

Reply via email to