Blouni / phpsvnclient

Automatically exported from code.google.com/p/phpsvnclient
0 stars 0 forks source link

bug fopen() function checkOut #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hey,

Nice PHP class, i'm using this for an OpenAtrium project and looks like this is 
a winner :).  I'm a mac OSX user and I had a little problem with copying the 
files from my svn server to my personal directory. Maybe the PHP function 
fopen() has changed a little (i don't know) but the problem was the script was 
pointing to a directory and not to a file. I received following warning:

[03-Jul-2012 10:49:03] PHP Warning:  
fopen(/Applications/MAMP/Dropbox/htdocs/SVNmang/svn/trunk/) [<a 
href='function.fopen'>function.fopen</a>]: failed to open stream: Is a 
directory in /Applications/MAMP/Dropbox/htdocs/SVNmang/svn/phpsvnclient.php on 
line 258

I changed  this line (255) in phpsvnclient.php

//Write to file
 $hOut = @fopen($createPath.$path, 'w');
fwrite($hOut, $contents);
fclose($hOut);

Original issue reported on code.google.com by info@cedricve.me on 3 Jul 2012 at 8:54