|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61630 include path with arrays
Submitted: 2012-04-05 07:17 UTC Modified: 2021-04-01 16:31 UTC
Avg. Score:2.5 ± 0.5
Reproduced:0 of 0 (0.0%)
From: php at sebastianmendel dot de Assigned: cmb (profile)
Status: Wont fix Package: PHP options/info functions
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-04-05 07:17 UTC] php at sebastianmendel dot de
Include path handling functions should work with arrays.

The should be an add_include_path() function.

Test script:

$arPaths = get_include_path($bReturnAsArray = true);

add_include_path('/path/to/other/lib', INSERT_FIRST|INSERT_LAST);



set_include_path-array_input (last revision 2012-04-26 17:55 UTC by roeitell at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-26 17:58 UTC] roeitell at gmail dot com
Submitted a patch to allow array input for set_include_path. Patch includes the 
re-made function definition for set_include_path: (in basic_functions.c)
* if input is an array, it implodes it with the default path separator
* otherwise, casts it to string and continuous as before
 [2015-08-31 17:52 UTC]
It seems to me that such functionality can easily be implemented
in userland, if desired.
 [2021-04-01 16:31 UTC]
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: cmb
 [2021-04-01 16:31 UTC]
Well, this request really doesn't make sense to me.  If you still
feel that this should be implemented, please pursue the RFC

[1] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat May 08 05:01:23 2021 UTC