#47085 [Opn->Asn]: rename() returns true even if the file in PHAR does not exist
ID: 47085
Updated by: cellog@php.net
Reported By: vrana@php.net
-Status: Open
+Status: Assigned
Bug Type: PHAR related
Operating System: Windows
PHP Version: 5.3.0alpha3
-Assigned To:
+Assigned To: cellog
New Comment:
didn't realize this one was out there, I'll take a look
Previous Comments:
------------------------------------------------------------------------
[2009-01-13 11:27:03] vrana@php.net
Description:
------------
rename() returns true with phar:// stream wrapper even if the oldfile
doesn't exist.
Reproduce code:
---------------
<?php
rename("phar://a.phar/x", "phar://a.phar/y");
var_dump(rename("phar://a.phar/x", "phar://a.phar/y"));
?>
Expected result:
----------------
bool(false) and some warning
Actual result:
--------------
bool(true)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47085&edit=1
Thread (3 messages)