Bug #74070 [NEW]: include_path not Working
From: marques0 at gmail dot com
Operating system: Windows Server 2012 R2
PHP version: 7.1.1
Package: *Directory/Filesystem functions
Bug Type: Bug
Bug description:include_path not Working
Description:
------------
So I'm using php 7.0.6 nts VC14 x64, and everything is working. I
decided to upgrade to version 7.1.1. After the upgrade, all include
commands from scripts within my include_path stopped working.
I tried to downgrade to version 7.1.0, 7.0.15, 7.0.10, 7.0.7 and all of
them had the same problem. Php can't find the files within the
include_path.
Just to be sure, I reinstalled version 7.0.6 from the scratch an
everything was working again. I even installed version 7.0.5 and it's
working with this version also.
My include path in my php.ini is:
include_path =
".;c:\php;c:\PHPMailer;D:\inetpub\vhosts\visioneonline.com.br\httpdocs"
my include command in my index script is:
include "/admin/comum/conectar_mysqli.php";
I'm getting a 500 internal error:
PHP Warning: include(/admin/comum/conectar_mysqli.php): failed to open
stream: No such file or directory in
D:\inetpub\vhosts\visioneonline.com.br\httpdocs\index.php on line 5
PHP Warning: include(): Failed opening
'/admin/comum/conectar_mysqli.php' for inclusion
(include_path='.;c:\php;c:\PHPMailer;D:\inetpub\vhosts\visioneonline.com.br\httpdocs')
in D:\inetpub\vhosts\visioneonline.com.br\httpdocs\index.php on line 5
Test script:
---------------
include "/admin/comum/conectar_mysqli.php";
Expected result:
----------------
I expect the file used in the include command to be included.
Actual result:
--------------
I'm getting a 500 internal error.
--
Edit bug report at https://bugs.php.net/bug.php?id=74070&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74070&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74070&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74070&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74070&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74070&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74070&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74070&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74070&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74070&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74070&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74070&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74070&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74070&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74070&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74070&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74070&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74070&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74070&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74070&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74070&r=mysqlcfg
Thread (3 messages)
- marques0 at gmail dot com