Bug #74916 [NEW]: include path takes / as being user's home dir
| From: | jmichae3 at yahoo dot com | Date: | Thu, 13 Jul 2017 04:12:14 +0000 |
| Subject: | Bug #74916 [NEW]: include path takes / as being user's home dir | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-210035@lists.php.net to get a copy of this message | ||
From: jmichae3 at yahoo dot com
Operating system: nix
PHP version: 7.1.7
Package: Unknown/Other Function
Bug Type: Bug
Bug description:include path takes / as being user's home dir
Description:
------------
include "/somefile.php";
pulls in a file from the home directory on the server (login root dir),
not the html web directory you put your html files into.
Test script:
---------------
include "/somefile.php";
Expected result:
----------------
should include from web root
(unless you want to run php as a general scripting language for general
tasks - why not a separate command like include_webhome or
include_webdir?)
Actual result:
--------------
includes from root dir, which on windows would be c:\
--
Edit bug report at https://bugs.php.net/bug.php?id=74916&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74916&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74916&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74916&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74916&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74916&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74916&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74916&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74916&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74916&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74916&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74916&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74916&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74916&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74916&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74916&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74916&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74916&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74916&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74916&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74916&r=mysqlcfg