ID: 45288
Comment by: NiX0n at fragfest dot cx
Reported By: php at isnoop dot net
Status: Open
Bug Type: Filesystem function related
Operating System: Ubuntu 7.04 server
PHP Version: 5.3CVS-2008-06-17 (snap)
New Comment:
Using ini_set("include_path", $path) has equivalent results.
Previous Comments:
------------------------------------------------------------------------
[2008-06-17 01:00:14] php at isnoop dot net
Description:
------------
In previous versions of PHP, set_include_path() would return the
previously set path after setting the new path passed to it.
In my tests, set_include_path() returns false and does not set the path
as it should. This behavior is the same whether the path to be set
exists or not.
The data in the Expected Result field can be seen with 5.1.2 and
5.2.6.
The Actual Result data has been replicated in the following snaps:
5.3-200804251630
5.3-200806162030
5.3-200806172030
Reproduce code:
---------------
echo "<pre>getting: ".get_include_path()."\n";
echo "setting: ".set_include_path("/NEWPATH")."\n";
echo "getting: ".get_include_path();
Expected result:
----------------
getting: /websites/example/htdocs:/websites/example/inc/
setting: /websites/example/htdocs:/websites/example/inc/
getting: /NEWPATH
Actual result:
--------------
getting: /websites/example/htdocs:/websites/example/inc/
setting:
getting: /websites/example/htdocs:/websites/example/inc/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45288&edit=1