Edit report at https://bugs.php.net/bug.php?id=45288&edit=1

 ID:                 45288
 Comment by:         login dot naitsirch at arcor dot de
 Reported by:        php at isnoop dot net
 Summary:            set_include_path() functionality broken
 Status:             Closed
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Ubuntu 7.04 server
 PHP Version:        5.3CVS-2008-06-17 (snap)
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

PHP should throw a Warning or even an Error, if the include path has been set 
in the config by using php_admin_value. This would help to find the problem. 
Otherwise you just get the return value "false". This is not helpful to solve 
the problem and you have to search the internet what could be the reason that 
set_include_path() does not work. And you do not find anything about that in 
the documentation (as far as I know).

Please change something.


Previous Comments:
------------------------------------------------------------------------
[2008-08-14 01:04:48] php at isnoop dot net

Okay, it appears that the host in question was indeed using php_admin_value to 
set include_path, which is no longer able to be overridden at runtime.

This change was introduced in 5.2.5, ticket #41561.

Closing ticket.

------------------------------------------------------------------------
[2008-08-09 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2008-07-29 08:35:57] dmi...@php.net

Works fine with php.ini-dist

[dmitry@tpl CGI-DEBUG]$ cat bug45288.php
<?php
echo "getting: ".get_include_path()."\n";
echo "setting: ".set_include_path("/NEWPATH")."\n";
echo "getting: ".get_include_path()."\n";

[dmitry@tpl CGI-DEBUG]$ sapi/cli/php bug45288.php
getting: .:/home/dmitry/php/usr/php5.3-debug/share/pear
setting: .:/home/dmitry/php/usr/php5.3-debug/share/pear
getting: /NEWPATH



------------------------------------------------------------------------
[2008-07-28 20:33:37] php at isnoop dot net

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?

------------------------------------------------------------------------
[2008-07-26 17:04:09] dmi...@php.net

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

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=45288


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=45288&edit=1

Reply via email to