php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15138 php interprets any non-php extension when file has executable permissions
Submitted: 2002-01-21 06:07 UTC Modified: 2002-01-21 06:36 UTC
From: agnieszkak at pi dot net dot pl Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.1 OS: Linux Slackware 8.0.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: agnieszkak at pi dot net dot pl
New email:
PHP Version: OS:

 

 [2002-01-21 06:07 UTC] agnieszkak at pi dot net dot pl
I've got php 4.1.1 compiled with apache 1.3.22. In same cases php interprets non php extensions (for example .aaa or something else) as php file if there is a php script inside. This happens when the file has "+x" permissions for the owner of this file. 

This is listing of /www/htdocs/users/a/ catalog:
 
-rwxr--r--    1 agnieszkak   users          17 Jan 18 16:08 index.aaa

And a content of index.aaa9I wrote only) 
<? phpinfo(); ?>

When I want to see this file in my browser (host/users/a/index.aaa)I should get the content of the index.aaa but I don't. The script is interpreted by php.


In httpd.conf I have only:
<Directory /www/htdocs/users>
        Options Indexes FollowSymLinks ExecCGI
        AllowOverride None
</DIrectory> 
And:

DefaultType text/html.

I think that it is something wrong with php engine but I'm not sure. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-21 06:36 UTC] sander@php.net
This is a configuration problem. Ask support questions on the appropriate mailinglist.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 08 23:01:30 2024 UTC