title: PHP rename() doesn't throws exception on error
body: <p>I'm working with a php application, and there is a line that moves a file. I enclosed the method within a try...catch block so, if a error is thrown, can manage a rollback system. But the exception is never catched, so, renames throws any kind of exception? Do I need to try with another method?</p>
  
  <p>Thanks</p>
  
  <p>Code above:</p>
  
  <pre><code>try{
     if(rename($archivo_salida, $ruta_archivos)){
      //anything;
     }
  
  }catch (Exception $e)
    //do something
  }
  </code></pre>