Bug #74070 [Com]: include_path not Working

From: Date: Fri, 10 Feb 2017 21:12:57 +0000
Subject: Bug #74070 [Com]: include_path not Working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207260@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74070&edit=1 ID: 74070 Comment by: delgado at nossowebsite dot com dot br Reported by: marques0 at gmail dot com Summary: include_path not Working Status: Open Type: Bug Package: *Directory/Filesystem functions Operating System: Windows Server 2012 R2 PHP Version: 7.1.1 Block user comment: N Private report: N New Comment: I was able to reproduce the error on my server. include can't find the files inside the include_path after version 7.0.6. when trying to include using include "/relativepath/file.php"; Phpinfo shows the correct value for the include_path Previous Comments: ------------------------------------------------------------------------ [2017-02-10 02:15:58] marques0 at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=74070&edit=1

« previous php.bugs (#207260) next »