[Chameleon-dev] [Bug 905] New: [Chameleon - Core] session warning message

bugzilla-daemon at maptools.org bugzilla-daemon at maptools.org
Mon Dec 20 16:33:45 EST 2004


           Summary: [Chameleon - Core] session warning message
           Product: Chameleon
           Version: 2.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: pspencer at dmsolutions.ca

Warning: touch(): Utime failed: Operation not permitted in
/ms4w/apps/php_utils/src/session/session.php on line 315

this message appears on Linux regularly, not sure why it would.  The relavent
code is:

if ( !(PHP_OS == "WINNT" || PHP_OS == "WIN32") )
  touch($GLOBALS['gszSessSavePath']."/deleteme", time()-$nMaxLifeTime*60);
  system("find ".$GLOBALS['gszSessSavePath']." -name sess_* ! -newer ".
         $GLOBALS['gszSessSavePath']."/deleteme -exec rm -rf {} \; ");
  return true;

it is failing on the 'touch' command with the above message.  A quick google
reveals this is pretty common, especially with Smarty.  What I don't know is how
to fix it.  For now, I've committed a quick fix to supress the warning from the
touch (prepending @) because it doesn't seem to affect anything.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Chameleon-dev mailing list