Changeset 1958

Show
Ignore:
Timestamp:
05/26/06 10:07:43 (3 years ago)
Author:
p_lindheimer
Message:

fix #883 calling php mkdir with string when it should be integer. This should be merged to 2.1 branch once verified.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/install_amp

    r1919 r1958  
    197197function amp_mkdir($directory, $mode = "0755", $recursive = false) { 
    198198        debug("mkdir ".$directory.", ".$mode); 
     199        $ntmp = sscanf($mode,"%o",$modenum); //assumes all inputs are octal 
    199200        if (version_compare(phpversion(), 5.0) < 0) { 
    200201                // php <5 can't recursively create directories 
     
    205206                        return ($return_value == 0); 
    206207                } else { 
    207                         return mkdir($directory, $mode); 
     208                        return mkdir($directory, $modenum); 
    208209                } 
    209210        } else { 
    210                 return mkdir($directory, $mode, $recursive); 
     211                return mkdir($directory, $modenum, $recursive); 
    211212        } 
    212213} 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads