-
Notifications
You must be signed in to change notification settings - Fork 7.9k
copy() target is blank in PHP 8.2.0-rc3 #9653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I built the same environment but was unable to reproduce the issue, always successful copies. Is it possible to get a bit more context or a minimum reproducer ? |
I did further testing. This only happens if the target directory is in a VirtualBox shared folder. |
Thanks. It might have to do with the copy optimisation introduced couple of months ago and we re running a kernel version pre-5.3. Indeed, when I boot with the other buster kernel image 5.10, the copy seems to work. |
…lder kernels. As mentioned in its manpage, it had been reworked in the 5.3 line to support cross filesystem interactions.
@pesselbach you can try the aforementioned PR branch, the copy worked again on the base 4.19 kernel image with this change. |
…lder kernels. As mentioned in its manpage, it had been reworked in the 5.3 line to support cross filesystem interactions.
@devnexen Added few comments on one of the commits - not sure if it's visible. Maybe just do a PR. It seems reasonable to me to do this check if it doesn't work well before 5.3 kernel. |
PR is there ;-) but yes I did see your comments thx |
…lder kernels. As mentioned in its manpage, it had been reworked in the 5.3 line to support cross filesystem interactions.
…lder kernels. As mentioned in its manpage, it had been reworked in the 5.3 line to support cross filesystem interactions.
Description
The following code:
Resulted in this output:
testcopy.txt is an empty 0 bytes file.
But I expected this output instead:
testcopy.txt is a copy of test.txt
The following workaround is working:
This problem exists at least since PHP 8.2.0-rc1. Production versions such as PHP 8.1.11 are working as expected. I am using Debian 10 with the packages provided by https://deb.sury.org running in a VirtualBox machine.
PHP Version
PHP 8.2.0-rc3
Operating System
Debian 10
The text was updated successfully, but these errors were encountered: