src/Rairlie/LockingSession/Lock.php
protected function openLockFile()
    {
        if (!is_dir(dirname($this->lockfilePath))) {
            // Suppress warning on mkdir - may be created by another process
            @mkdir(dirname($this->lockfilePath), 0744, true);
        }
        $this->lockfp = fopen($this->lockfilePath, 'w+');
    }
protected function openLockFile()
    {
        if (!is_dir(dirname($this->lockfilePath))) {
            // Suppress warning on mkdir - may be created by another process
            @mkdir(dirname($this->lockfilePath), 0744, true);
        }
        $this->lockfp = fopen($this->lockfilePath, 'w+');
    }
protected function openLockFile ( ) { if ( ! is_dir ( dirname ( $ this -> lockfilePath ) ) ) { // Suppress warning on mkdir - may be created by another process @ mkdir ( dirname ( $ this -> lockfilePath ) , 0744 , true ) ; } $ this -> lockfp = fopen ( $ this -> lockfilePath , 'w+' ) ; }
Open the lock file on disk, creating it if it doesn't exist
Open the lock file on disk creating it if it doesn t exist