Bug->Req #53121 [Opn->Fbk]: Include path cannot be appended to for default include_path

From: Date: Fri, 09 Jul 2021 16:49:22 +0000
Subject: Bug->Req #53121 [Opn->Fbk]: Include path cannot be appended to for default include_path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234940@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53121&edit=1 ID: 53121 Updated by: cmb@php.net Reported by: gopalv@php.net Summary: Include path cannot be appended to for default include_path -Status: Open +Status: Feedback -Type: Bug +Type: Feature/Change Request Package: *Configuration Issues Operating System: ubuntu PHP Version: 5.3SVN-2010-10-20 (snap) -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Since include_path is PHP_INI_ALL, it can be even set during runtime (possibly using auto_prepend_file). Alternatively, you can set an environment variable, and use that in your php.ini. So this is more like a feature request, but I wonder whether it is even relevant nowadays. Previous Comments: ------------------------------------------------------------------------ [2020-01-10 20:26:21] turfmaster dot top at gmail dot com The following pull request has been associated: Patch Name: Fix force push On GitHub: https://github.com/php/pecl-web_services-oauth/pull/13 Patch: https://github.com/php/pecl-web_services-oauth/pull/13.patch ------------------------------------------------------------------------ [2010-10-20 22:03:01] gopalv@php.net The append works just fine when an explicit include_path is provided in a php.ini file. This is breaking my php.d/ directory right now. ------------------------------------------------------------------------ [2010-10-20 21:59:46] gopalv@php.net Description: ------------ The default php include_path cannot be appended to by using ${include_path} I have a machine which has no include_path set in php.ini, the system picks up the default include_path path from the build-defs.h during the build. gopalv@delta:~$ /opt/php53/bin/php -v PHP 5.3.4-dev (cli) (built: Oct 12 2010 18:47:42) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies gopalv@delta:~$ /opt/php53/bin/php -i | grep include_path include_path => .:/opt/php53//lib/php => .:/opt/php53//lib/php gopalv@delta:~$ cat php-bug.ini include_path=${include_path}:/tmp gopalv@delta:~$ /opt/php53/bin/php -c php-bug.ini -i | grep include_path include_path => :/tmp => :/tmp Test script: --------------- gopalv@delta:~$ cat php-bug.ini include_path=${include_path}:/tmp gopalv@delta:~$ /opt/php53/bin/php -c php-bug.ini -i | grep include_path include_path => :/tmp => :/tmp Expected result: ---------------- include_path => .:/opt/php53//lib/php:/tmp => .:/opt/php53//lib/php:/tmp Actual result: -------------- include_path => :/tmp => :/tmp ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53121&edit=1

« previous php.bugs (#234940) next »