Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29463

chatd.php uses a deprecated native php function socket_setopt wich was renamed to socket_set_option

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.13, 2.1.1, 2.2.5, 2.3.2, 2.4
    • Fix Version/s: 2.2.6, 2.3.3
    • Component/s: Chat
    • Labels:
    • Environment:
      linux, mysql
    • Database:
      Any
    • Testing Instructions:
      Hide

      Try to start the chat daemon server with the following commands:
      cd moodle/mod/chat
      php chatd.php --start &
      If sucessful :
      Login as admin, choose module>activities>chat and choose chat daemon as chat method

      Show
      Try to start the chat daemon server with the following commands: cd moodle/mod/chat php chatd.php --start & If sucessful : Login as admin, choose module>activities>chat and choose chat daemon as chat method
    • Workaround:
      Hide

      Renaming the function from socket_setopt to socket_set_option solves this problem in mod/chat/chatd.php file.

      Show
      Renaming the function from socket_setopt to socket_set_option solves this problem in mod/chat/chatd.php file.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-29463-master

      Description

      If you want to use chat daemon method for the chat module you must start the server with the following commands:
      cd moodle/mod/chat
      php chatd.php --start &
      But chatd.php uses a deprecated native php function socket_setopt wich was renamed to socket_set_option, so the server does not start.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Nov/12