From: sigsegv at makadev dot de Operating system: debian:buster (docker container) PHP version: 8.0Git-2020-09-22 (Git) Package: Testing related Bug Type: Bug Bug description:ext/standard/tests/file/copy_variation5.phpt fails when run on bind mount
Description: ------------ The following test fails when run inside a case insensitive bind mounted filesystem (f.e. inside a container): Test copy() function: usage variations - destination file names(case sensitive) [ext/standard/tests/file/copy_variation5.phpt] This both happens when running the test inside a filesystem mounting a Windows NFS path into the container and when mounting a MacOS APFS path into the container. This most likely happens with other filesystem too since there is no guarantee that a linux mounted filesystem is case sensitive. Expected result: ---------------- test should be skipped if the filesystem it is run on is case insensitive Actual result: -------------- ================================================================================ /workspace/php-src/ext/standard/tests/file/copy_variation5.phpt ================================================================================ *** Test copy() function: checking case sensitivity in creation of destination file names *** Size of the source file before copy operation => int(1500) -- Now applying copy() on source file to create copies -- -- Iteration 1 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => /workspace/php-src/ext/standard/tests/file/COPY.tmp Size of source file => int(1500) Size of destination file => int(1500) -- Iteration 2 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => /workspace/php-src/ext/standard/tests/file/COPY.TMP Size of source file => int(1500) Size of destination file => int(1500) -- Iteration 3 -- Copy operation => bool(true) Existence of destination file => bool(true) Destination file name => /workspace/php-src/ext/standard/tests/file/CopY.TMP Size of source file => int(1500) Size of destination file => int(1500) Warning: unlink(/workspace/php-src/ext/standard/tests/file/COPY.TMP): No such file or directory in /workspace/php-src/ext/standard/tests/file/copy_variation5.php on line 56 Warning: unlink(/workspace/php-src/ext/standard/tests/file/CopY.TMP): No such file or directory in /workspace/php-src/ext/standard/tests/file/copy_variation5.php on line 56 *** Done *** ================================================================================ -- Existence of destination file => bool(true) Destination file name => %s/CopY.TMP Size of source file => int(1500) 025+ 026+ Warning: unlink(/workspace/php-src/ext/standard/tests/file/COPY.TMP): No such file or directory in /workspace/php-src/ext/standard/tests/file/copy_variation5.php on line 56 027+ 028+ Warning: unlink(/workspace/php-src/ext/standard/tests/file/CopY.TMP): No such file or directory in /workspace/php-src/ext/standard/tests/file/copy_variation5.php on line 56 *** Done *** ================================================================================ -- /proc/mounts entry on MacOS Host (docker via W); osxfs /workspace fuse.osxfs rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,max_read=1048576 0 0 /proc/mounts entry with Windows Host (docker via WSL2): F:\134 /workspace 9p rw,dirsync,noatime,aname=drvfs;path=F:\;uid=0;gid=0;metadata;symlinkroot=/mnt/host,mmap,access=client,msize=65536,trans=fd,rfd=8,wfd=8 0 0 -- Edit bug report at https://bugs.php.net/bug.php?id=80139&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80139&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80139&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80139&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80139&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80139&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80139&r=support Expected behavior: https://bugs.php.net/fix.php?id=80139&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80139&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80139&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80139&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80139&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80139&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80139&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80139&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80139&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80139&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80139&r=mysqlcfg