FAQ
Edit report at https://bugs.php.net/bug.php?id=61485&edit=1

ID: 61485
Updated by: iliaa@php.net
Reported by: juzna dot cz@gmail.com
Summary: rename('..', '..') doesn't report a warning
-Status: Open
+Status: Feedback
Type: Bug
Package: Directory function related
Operating System: Ubuntu
PHP Version: 5.4.0
Block user comment: N
Private report: N

New Comment:

Cannot reproduce the issue.

The command return FALSE as expected and outputs a "Device or resource busy" error
message.


Previous Comments:
------------------------------------------------------------------------
[2012-03-23 00:31:59] juzna dot cz@gmail.com

Tested on 5.4.0, 5.4.1-RC1, 5.3.10, 5.3.9

------------------------------------------------------------------------
[2012-03-23 00:30:40] juzna dot cz@gmail.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


------------------------------------------------------------------------

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 5 | next ›
Discussion Overview
groupphp-bugs @
categoriesphp
postedMar 23, '12 at 12:30a
activeFeb 18, '13 at 12:44a
posts5
users2
websitephp.net

2 users in discussion

Php-bugs: 4 posts Iliaa: 1 post

People

Translate

site design / logo © 2019 Grokbase