예제 #1
0
  function test_is_absolute_true()
  {
    $this->assertTrue(fs :: is_absolute('/test'));

    if(sys :: is_win32())
      $this->assertTrue(fs :: is_absolute('c:/test'));
  }
  function _determine_options()
  {
    if (sys :: is_win32())
      $this->ext = '.exe';

    $this->_determine_read_types();
    $this->_determine_write_types();

    if (sizeof($this->read_types) == 0)
      $this->library_installed = false;
    else
      $this->library_installed = true;
  }
예제 #3
0
 function _has_win32_net_prefix($path)
 {
   if(sys :: is_win32() && strlen($path) > 2)
   {
     return (substr($path, 0, 2) == WIN32_NET_PREFIX);
   }
   return false;
 }