Bug 905

Summary: [Chameleon - Core] session warning message
Product: Chameleon Reporter: Paul Spencer <pspencer@dmsolutions.ca>
Component: CoreAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: NEW    
Severity: normal    
Priority: P2    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-12-20 16:33:44
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.
------- Comment #1 From 2005-01-11 08:24:05 -------
this could have been related to bug 918.