From: php at isnoop dot net Operating system: Ubuntu 7.04 server PHP version: 5.3CVS-2008-06-17 (snap) PHP Bug Type: Filesystem function related Bug description: set_include_path() functionality broken
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 bug report at http://bugs.php.net/?id=45288&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45288&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45288&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45288&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45288&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45288&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45288&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45288&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45288&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45288&r=support Expected behavior: http://bugs.php.net/fix.php?id=45288&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45288&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45288&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45288&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45288&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45288&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45288&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45288&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45288&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45288&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45288&r=mysqlcfg