|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37081 Make the include-errors mention faulty permissions
Submitted: 2006-04-14 12:56 UTC Modified: 2021-09-16 10:39 UTC
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: phpbugs at demomusic dot nu Assigned: cmb (profile)
Status: Wont fix Package: Streams related
PHP Version: 6CVS-2006-04-14 (CVS) OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: phpbugs at demomusic dot nu
New email:
PHP Version: OS:


 [2006-04-14 12:56 UTC] phpbugs at demomusic dot nu
(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:




Warning: include_once(Mail.php) [function.include-once]: failed to open stream: Filen eller katalogen finns inte in /home/motin/Dev/Pdev/trunk/proc/ 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/ 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
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

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:

... Not that relevant with reproduce-code here

Expected result:
... Not relevant

Actual result:
... Not relevant


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 23:40 UTC]
-Package: Feature/Change Request +Package: Streams related
 [2021-09-16 10:39 UTC]
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-09-16 10:39 UTC]
15 years, no further comment and only three upvotes – this doesn't
look like a worthwhile improvement.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Oct 26 03:03:35 2021 UTC