#32792 [NEW]: unlink() function says the file doesn't exists when it does
| From: | hans dot vdb at gmail dot com | Date: | Thu, 21 Apr 2005 18:35:25 +0000 |
| Subject: | #32792 [NEW]: unlink() function says the file doesn't exists when it does | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-78013@lists.php.net to get a copy of this message | ||
From: hans dot vdb at gmail dot com
Operating system: redhat linus
PHP version: 4.3.10
PHP Bug Type: Filesystem function related
Bug description: unlink() function says the file doesn't exists when it does
Description:
------------
The unlink() function says a file doesn't exist although it does exists. I
checked it with the file_exist() function, which returns true.
It might be during the filename that is complicated (with a date in it).
I can send you the whole source of the script but I think this is
sufficient to understand the error.
Thanks for your time.
Reproduce code:
---------------
http://electricsixforum.com/bug.zip
The needed code is in the backup.php file on line 142
Expected result:
----------------
(no output)
Actual result:
--------------
Warning: unlink(backups/backup 21-04-2005 13:04:54.tar.gz
): No such file or directory in
/home/babybab/public_html/backup/backup.php on line 142
--
Edit bug report at http://bugs.php.net/?id=32792&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32792&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32792&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32792&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32792&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32792&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32792&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32792&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32792&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32792&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32792&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32792&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32792&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32792&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32792&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32792&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32792&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32792&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32792&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32792&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32792&r=mysqlcfg