Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15246

Memcache driver incorrectly handles Unix sockets

    XMLWordPrintable

    Details

      Description

      Memcache (and memcached too) phpBB cache drivers rely on exploding (by slash) the PHPBB_ACM_MEMCACHE constant which consists of PHPBB_ACM_MEMCACHE_HOST and  PHPBB_ACM_MEMCACHE_PORT concatenated via slash (see https://github.com/phpbb/phpbb/blob/master/phpBB/phpbb/cache/driver/memcache.php#L55 and https://github.com/phpbb/phpbb/blob/master/phpBB/phpbb/cache/driver/memcached.php#L70).

      In the meanwhile, PHP allows using of Unix socket as a host (like unix:///path/to/memcached.sock) with the port of 0, which exploding by the slash gives wrong parameters to pass to the memcache(d) addServer() method making it unworkable.

        Attachments

          Activity

            People

            Assignee:
            Marc Marc
            Reporter:
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: