php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61485 rename('..', '..') doesn't report a warning
Submitted: 2012-03-23 00:30 UTC Modified: 2013-02-18 00:35 UTC
From: juzna dot cz at gmail dot com Assigned:
Status: No Feedback Package: Directory function related
PHP Version: 5.4.0 OS: Ubuntu
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-03-23 00:30 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-03-23 00:31 UTC] juzna dot cz at gmail dot com
Tested on 5.4.0, 5.4.1-RC1, 5.3.10, 5.3.9
 [2012-03-24 16:11 UTC] iliaa@php.net
-Status: Open +Status: Feedback
 [2012-03-24 16:11 UTC] iliaa@php.net
Cannot reproduce the issue.

The command return FALSE as expected and outputs a "Device or resource busy" error 
message.
 [2012-03-25 15:27 UTC] juzna dot cz at gmail dot com
Weird, reports no error on my PC: http://pastebin.com/cryCawhk
Though I asked my friends and it works as expected for them.

Perhaps it's caused by my kernel (2.3.32), will double check with newer one
 [2013-02-18 00:35 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC