ID: 21671 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: Win2000 PHP Version: 4.2.3 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-01-15 13:09:06] [EMAIL PROTECTED] hi php "bug volunteers", i experienced a problem with unlink() you can see a phpinfo() output of my config on: http://www.keipper.de/phpinfo.html what i did: i tried to simply unlink a file inside a class, the software i am coding is a complex class-model with super-classes, some cub-classes and so on, even too complex to explain in a few words. in a sub class i simply tried: if (unlink('D:\testzone\pagesys\content_repository\sites\1000.xml')) { [...] } else { [...] } ...and what actually happened: it doesnt removes the file. it says: Warning: unlink() failed (Permission denied) in D:\testzone\pagesys\php_code\commander.php on line 361 my filesystem is FAT32, my doc root d:\testzone\, ok, i dropped a script in: D:\testzone\test.php it doesnt instance objects, sub-objects or anything, it just had one code-snippet - the above mentioned if() and it worked ?! the simple test.php deletes the file also i tried as path: D:/testzone/pagesys/content_repository/sites/1000.xml again - worked in test.php, doesnt worked in the sub-class the file was not locked, isnt write-protected or something i think this is strange and a bug so I hope this is enough information for working out a potential bug greets, mascha k. (btw. this "mascha" is not a girlie name, so dont call me "babe" ;=) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21671&edit=1