Bug #15139: php interprets any non-php extension when file has executable permissions

From: Date: Mon, 21 Jan 2002 11:14:44 +0000
Subject: Bug #15139: php interprets any non-php extension when file has executable permissions
Groups: php.dev 
Request: Send a blank email to php-dev+get-77653@lists.php.net to get a copy of this message
From: agnieszkak@pi.net.pl Operating system: Linux Slackware 8.0.0 PHP version: 4.1.1 PHP Bug Type: Apache related Bug description: php interprets any non-php extension when file has executable permissions 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. -- Edit bug report at: http://bugs.php.net/?id=15139&edit=1

« previous php.dev (#77653) next »