From:             [EMAIL PROTECTED]
Operating system: Win2000
PHP version:      4.2.3
PHP Bug Type:     Filesystem function related
Bug description:  unlink doesnt work properly in classes

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 bug report at http://bugs.php.net/?id=21671&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21671&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21671&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21671&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21671&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21671&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21671&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21671&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21671&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21671&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21671&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21671&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21671&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21671&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21671&r=gnused

Reply via email to