[php-src] Issue #12899: Copy() target is blank in PHP 8.3.0

From: Date: Fri, 08 Dec 2023 04:36:04 +0000
Subject: [php-src] Issue #12899: Copy() target is blank in PHP 8.3.0
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246009@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12899 Author: fredericch ### Description The following code: ```php <?php $source = '/media/sf_source/text.txt'; $destination = '/media/sf_destination/text.txt'; copy($source, $destination); ``` Resulted in this output: /media/sf_destination/text.txt is an empty 0 bytes file. ### Environnement Host windows 10 running VirtualBox 7.0.12, Guest Ubuntu 20.04. ### How to replicate php is running in the guest and tries to copy a file from a shared folder to an other share folder. Permissions are ok on the source and destination. ### Environnement Host windows 10 running VirtualBox 7.0.12, Guest Ubuntu 20.04. ### Workaround ```php <?php file_put_contents('/media/sf_destination/text.txt', file_get_contents('/media/sf_source/text.txt')); ``` ### Related? https://github.com/php/php-src/issues/9653 ### PHP Version PHP 8.3.0 ### Operating System Ubuntu 20.04 + Windows 10

« previous php.bugs (#246009) next »