Bug #75302 [NEW]: php file downlaod

From: Date: Sun, 01 Oct 2017 17:00:07 +0000
Subject: Bug #75302 [NEW]: php file downlaod
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211484@lists.php.net to get a copy of this message
From:             franciszek dot witt at protonmail dot com
Operating system: Windows
PHP version:      7.1.10
Package:          *General Issues
Bug Type:         Bug
Bug description:php file downlaod

Description:
------------
In some machines with FAT file system if you type file.PHP (PHP
uppercase) instead of file.php it will start downloading source code.
Tested on android PHP webserver but developer said that it's general php
bug.


Part of email wich he sent to me
"

Hi, Yes it is a bug of PHP itself, the reason is that in file:
sapi/cli/php_cli_server.c It is used 'memcmp(client->request.ext, "php",
3)' instead of 'strncasecmp(client->request.ext, "php", 3)' (it should
ignore "php" case, but it does not as of now) This happens only if
filesystem is case insesintive (for example FAT) 

"


-- 
Edit bug report at https://bugs.php.net/bug.php?id=75302&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75302&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75302&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75302&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75302&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75302&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75302&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75302&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75302&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75302&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75302&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75302&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75302&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75302&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75302&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75302&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75302&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75302&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75302&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75302&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75302&r=mysqlcfg



Thread (5 messages)

« previous php.bugs (#211484) next »