Req #37081 [Opn->Wfx]: Make the include-errors mention faulty permissions

From: Date: Thu, 16 Sep 2021 10:39:41 +0000
Subject: Req #37081 [Opn->Wfx]: Make the include-errors mention faulty permissions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236639@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37081&edit=1 ID: 37081 Updated by: cmb@php.net Reported by: phpbugs at demomusic dot nu Summary: Make the include-errors mention faulty permissions -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Streams related Operating System: All PHP Version: 6CVS-2006-04-14 (CVS) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: 15 years, no further comment and only three upvotes – this doesn't look like a worthwhile improvement. Previous Comments: ------------------------------------------------------------------------ [2006-04-14 12:56:32] phpbugs at demomusic dot nu Description: ------------ (I wanted to choose "All" for php-version but was not allowed this...) This is a typical scenario when permissions are not correctly ets: One can get annoyed with php/apache sometimes: Code: include_once('Mail.php'); include_once('Mail/mime.php'); Error: Warning: include_once(Mail.php) [function.include-once]: failed to open stream: Filen eller katalogen finns inte in /home/motin/Dev/Pdev/trunk/proc/basicFunctions.inc.php on line 15 Warning: include_once() [function.include]: Failed opening 'Mail.php' for inclusion (include_path='.:/opt/lampp/lib/php') in /home/motin/Dev/Pdev/trunk/proc/basicFunctions.inc.php on line 15 The /opt/lampp/lib/php is chmodded 777 for diagnosis and apache is run as nobody: motin@laptop:~$ ls /opt/lampp/lib/php/Mail.php -l -rwxrwxrwx 1 motin users 8066 2005-08-15 18:12 /opt/lampp/lib/php/Mail.php motin@laptop:~$ sudo su nobody Password: sh-3.1$ ls /opt/lampp/lib/php/Mail.php -l -rwxrwxrwx 1 motin users 8066 2005-08-15 18:12 /opt/lampp/lib/php/Mail.php sh-3.1$ Obviously for an experienced programmer this is an permissions issue. PHP beginners will though probably go nuts tried to figure this paradox out, and is forced to go looking in the forums and the documentation for a solution. Requested change is for either "Failed opening 'Mail.php' for inclusion" to be changed to "Failed opening 'Mail.php' for inclusion (check permissions)" or, better yet: change the common "failed to open stream" to "failed to open stream (check permissions)" or similar. Reproduce code: --------------- include_once('Mail.php'); include_once('Mail/mime.php'); ... Not that relevant with reproduce-code here Expected result: ---------------- ... Not relevant Actual result: -------------- ... Not relevant ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=37081&edit=1

« previous php.bugs (#236639) next »