php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52739 rename bug
Submitted: 2010-08-30 12:56 UTC Modified: 2010-08-30 13:36 UTC
From: lgynove at 163 dot com Assigned:
Status: Not a bug Package: Compile Warning
PHP Version: 5.3.3 OS: windows xp
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lgynove at 163 dot com
New email:
PHP Version: OS:

 

 [2010-08-30 12:56 UTC] lgynove at 163 dot com
Description:
------------
i think it a rename function bug

Test script:
---------------
<?
class Wrapper1
{
}

stream_wrapper_register('abc', "Wrapper1") or die("Failed to register protocol");
rename("abc://abc.txt", "d:/www/test.txt");

Expected result:
----------------
none

Actual result:
--------------
Warning: rename(): Cannot rename a file across wrapper types in D:\www\wrapper1.php on line 7

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-30 13:36 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-08-30 13:36 UTC] pajoye@php.net
It is the expected behavior, also documented.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 15:01:29 2024 UTC