|  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: 2015-08-31 17:52 UTC
Avg. Score:2.5 ± 0.5
Reproduced:0 of 0 (0.0%)
From: php at sebastianmendel dot de Assigned:
Status: Open 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.
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 06:01:27 2019 UTC