$_MMCACHE superglobal?

  • Tino Didriksen

    Tino Didriksen - 2003-08-01

    In addition to the API, is it possible to get a superglobal ($_MMCACHE) to store shared values in?

    Would of course have security implications where all shared values could be seen by anyone. Maybe as a config option.

    Dunno if the Zend Engine even allows for new superglobals from extensions.

    • Dmitry Stogov

      Dmitry Stogov - 2003-08-01

      ZE1 doesn't allow new superglobals from extensions but ZE2 does. In any case $_MMCACHE is bed idea because of the big security hole.
      The better decision id somthing like application variables in ASP, but I didn't think how to do them.

    • Tino Didriksen

      Tino Didriksen - 2003-08-03

      Made a workaround:

      function MMCache_Save() {
          mmcache_put('somekey', serialize($GLOBALS['mmc']), $ttl=3600);
          $GLOBALS['mmc'] = unserialize(mmcache_get('somekey'));


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks