Edit report at https://bugs.php.net/bug.php?id=80139&edit=1

 ID:                 80139
 Updated by:         c...@php.net
 Reported by:        sigsegv at makadev dot de
 Summary:            ext/standard/tests/file/copy_variation5.phpt fails
                     when run on bind mount
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Testing related
 Operating System:   debian:buster (docker container)
 PHP Version:        8.0Git-2020-09-22 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

Automatic comment on behalf of cmbecke...@gmx.de
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=1fcd6cdbb8927c7f770520f2cd4362015efce91d
Log: Fix #80139: copy_variation5.phpt fails when run on bind mount


Previous Comments:
------------------------------------------------------------------------
[2020-09-22 19:46:36] sigsegv at makadev dot de

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 this bug report at https://bugs.php.net/bug.php?id=80139&edit=1

Reply via email to