mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
16 lines
311 B
Plaintext
16 lines
311 B
Plaintext
|
--TEST--
|
||
|
Bug#44806 (rename() function is not portable to Windows)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
file_put_contents("file1.txt", "this is file 1");
|
||
|
file_put_contents("file2.txt", "this is file 2");
|
||
|
|
||
|
rename("file1.txt", "file2.txt");
|
||
|
|
||
|
echo "reading file 2: ";
|
||
|
readfile("file2.txt");
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
reading file 2: this is file 1
|