Annotation of embedaddon/php/ext/standard/tests/file/bug32160.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #32160 (copying a file into itself leads to data loss)
! 3: --FILE--
! 4: <?php
! 5: $path = dirname(__FILE__) . "/bug32160.txt";
! 6: var_dump(copy($path, $path));
! 7: chdir(dirname(__FILE__));
! 8: var_dump(copy($path, "bug32160.txt"));
! 9: var_dump(copy("bug32160.txt", "bug32160.txt"));
! 10: ?>
! 11: --EXPECT--
! 12: bool(false)
! 13: bool(false)
! 14: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>