Bug #79949 [Opn->Dup]: if use filename as folder then shows restriction warning

From: Date: Mon, 10 Aug 2020 07:09:19 +0000
Subject: Bug #79949 [Opn->Dup]: if use filename as folder then shows restriction warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228474@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79949&edit=1 ID: 79949 Updated by: requinix@php.net Reported by: abolfazl dot ziaratban at gmail dot com Summary: if use filename as folder then shows restriction warning -Status: Open +Status: Duplicate Type: Bug Package: *Directory/Filesystem functions Operating System: CentOS 8 PHP Version: 7.4.9 Block user comment: N Private report: N New Comment: Duplicate of bug #52065 Previous Comments: ------------------------------------------------------------------------ [2020-08-10 06:12:52] abolfazl dot ziaratban at gmail dot com Description: ------------ if used filename as folder in your path the file system function(is_dir,is_file,file_exists and etc ...) shows a restriction warning. i thinks , this is a bug. Test script: --------------- run this codes : root# mkdir /test touch /test/empty echo "<?php var_dump(is_file('/test/empty/foo/bar'));" > /test/index.php echo "open_basedir = /test" > /test/php.ini then : root# php -c /test/php.ini /test/index.php Warning: is_file(): open_basedir restriction in effect. File(/test/empty/foo/bar) is not within the allowed path(s): (/test) in /test/index.php on line 1 bool(false) Expected result: ---------------- no a restriction warning. Actual result: -------------- shows a restriction warning. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79949&edit=1

« previous php.bugs (#228474) next »