Bug #53601 [NEW]: function rename
From:
Operating system: debian lenny
PHP version: 5.2.16
Package: Unknown/Other Function
Bug Type: Bug
Bug description:function rename
Description:
------------
---
From manual page: http://www.php.net/function.rename
---
This function should return false on error during file renomination, but in
my test script inclusion is executed but renomination it's not executed (no
output, expected output:0).
Test script:
---------------
$file = getcwd()."/test.php";
$file2 = $file.".inc";
if (file_exists($file))
{ include $file;
echo rename($file,$file2);
}
--
Edit bug report at http://bugs.php.net/bug.php?id=53601&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53601&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53601&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53601&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53601&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53601&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53601&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53601&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53601&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53601&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53601&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53601&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53601&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53601&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53601&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53601&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53601&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53601&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53601&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53601&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53601&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53601&r=mysqlcfg
Thread (4 messages)
- tom_84 at hotmail dot it