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

Bug with eZHTTPTool::getDataByURL and output buffering

    Details

      Description

      In eZHTTPTool::getDataByURL there is a weird behaviour if the CURL session fails.

      The outpout buffers are not flushed at all.

      The problematic code is available here :

      The following code

                  // Getting data
                  ob_start();
                  if ( !curl_exec( $ch ) )
                      return false;
       
                  curl_close ( $ch );
                  $data = ob_get_contents();
                  ob_end_clean();
      

      Should be

                  ob_start();
                  if ( !curl_exec( $ch ) )
                  {
                      curl_class( $ch );
                      ob_end_clean();
                      return false;
                  }
       
                  curl_close ( $ch );
                  $data = ob_get_contents();
                  ob_end_clean();
      

        Activity

        Hide
        (inactive) Gunnstein Lye added a comment -

        Fixed in
        trunk (4.3.0alpha1) rev. 24153
        stable/4.2 (4.2.1) rev. 24154
        stable/4.1 (4.1.5) rev. 24155
        stable/4.0 (4.0.8) rev. 24156

        Show
        (inactive) Gunnstein Lye added a comment - Fixed in trunk (4.3.0alpha1) rev. 24153 stable/4.2 (4.2.1) rev. 24154 stable/4.1 (4.1.5) rev. 24155 stable/4.0 (4.0.8) rev. 24156
        Hide
        ezrobot added a comment -

        This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

        Show
        ezrobot added a comment - This issue has been automatically closed due to the lack of activity over a long period of time. It is very likely that it is obsolete, but if you think it is still valid, do not hesitate to reopen it and mention why.

          People

          • Assignee:
            (inactive) Gunnstein Lye
            Reporter:
            (inactive) Gunnstein Lye
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: