Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-11382

SOAP server does not parse requests on php 5.2.2

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.0.0trunk
    • Misc
    • None
    • Operating System:
      PHP Version: (please be specific, like '4.4.3' or '5.1.5') 5.2.2
      Database and version:
      Browser (and version):

    Description

      There is a known bug in php version 522 that does not populate the global variable HTTP_RAW_POST_DATA.

      Not strictly an ezP error per se, but nice to have fixed nonetheless

      file: \lib\ezsoap\classes\ezsoapserver.php

      FIX:
      function eZSOAPServer()

      { global $HTTP_RAW_POST_DATA; $this->RawPostData = $HTTP_RAW_POST_DATA; }

      becomes:
      function eZSOAPServer()
      {
      $ver = phpversion();
      if ($ver[0] >= 5)

      { $this->RawPostData = file_get_contents('php://input'); }

      else

      { $this->RawPostData = isset($GLOBALS['HTTP_RAW_POST_DATA']) ? $GLOBALS['HTTP_RAW_POST_DATA'] : ''; }

      }

      Steps to reproduce

      try to access any soap service defined on eZP

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: