ID:               45288
 Comment by:       m dot hildenbrand at gmx dot net
 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:

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.


Previous Comments:
------------------------------------------------------------------------

[2008-06-25 15:57:52] chrisagallo at gmail dot com

I've seen the same issue on 

CentOS 4.6
# php -v
PHP 5.2.5 (cli) (built: Jun 23 2008 21:35:31) 
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by
Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend
Technologies

------------------------------------------------------------------------

[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

Reply via email to