Bug #61485 [Com]: rename('..', '..') doesn't report a warning

From: Date: Fri, 23 Mar 2012 00:31:59 +0000
Subject: Bug #61485 [Com]: rename('..', '..') doesn't report a warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168739@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61485&edit=1 ID: 61485 Comment by: juzna dot cz at gmail dot com Reported by: juzna dot cz at gmail dot com Summary: rename('..', '..') doesn't report a warning Status: Open Type: Bug Package: Directory function related Operating System: Ubuntu PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: Tested on 5.4.0, 5.4.1-RC1, 5.3.10, 5.3.9 Previous Comments: ------------------------------------------------------------------------ [2012-03-23 00:30:40] juzna dot cz at gmail dot com Description: ------------ This command executed in shell fails: mv .. .. but the same reports no error in PHP: rename('..', '..') (I think it reports error on windows) Test script: --------------- rename('..', '..') Expected result: ---------------- Warning: rename(..,..): ..... Actual result: -------------- nothing ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61485&edit=1

« previous php.bugs (#168739) next »