ID:               45288
 Comment by:       php at isnoop dot net
 Reported By:      php at isnoop dot net
 Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: Ubuntu 7.04 server
 PHP Version:      5.3CVS-2008-06-17 (snap)
 Assigned To:      dmitry
 New Comment:

Dmitry,
I've tested it with the latest snap (php5.3-200807281630) and it is
still broken for me.  My tests are against php.ini-dist.

Are you using the repro code or some other approach?  Also, could you
repeat your test with the dist php.ini?


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

[2008-07-26 17:04:09] [EMAIL PROTECTED]

I'm not able to reproduce it. set_include_path() works as expected.

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

[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

Reply via email to