ID: 45288 Updated by: [EMAIL PROTECTED] Reported By: php at isnoop dot net -Status: Open +Status: Assigned Bug Type: Filesystem function related Operating System: Ubuntu 7.04 server PHP Version: 5.3CVS-2008-06-17 (snap) -Assigned To: +Assigned To: dmitry
Previous Comments: ------------------------------------------------------------------------ [2008-07-11 00:38:39] php at isnoop dot net This is reproducible without the use of php_admin_value. ------------------------------------------------------------------------ [2008-07-10 23:29:58] m dot hildenbrand at gmx dot net Hi, did you have any php_admin_value include_path Statement in your httpd options ? If so, set_include_path() doesn't do anything as it protects your httpd options. Remove any php_admin_value include_path statement from your config and try again. The set_include_path() statement should work properly. I don't know for sure if this is the correct behavior of the function. ------------------------------------------------------------------------ [2008-06-24 16:59:29] NiX0n at fragfest dot cx Using ini_set("include_path", $path) has equivalent results. ------------------------------------------------------------------------ [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