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

ezconvertdbcharset.php is not windows-compatible

    XMLWordPrintable

Details

    Description

      The problem lies in the function eZGetUserInput.

      Here's the patched version:

      /*!
       prompt user to choose what to do next
      */
      function eZGetUserInput( $prompt )
      {
          $stdin = fopen( "php://stdin", "r+" );
          $stdout = fopen( "php://stdout", "w" );
      
          fwrite( $stdout, $prompt );
      
          $userInput = fgets( $stdin );
          $userInput = trim( $userInput, "\n\r" );
      
          fclose( $stdin );
          fclose( $stdout );
      
          return $userInput;
      }
      

      Attachments

        Activity

          People

            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            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:
              Resolved: