note 97896 added to function.set-include-path

From: Date: Fri, 14 May 2010 09:54:01 +0000
Subject: note 97896 added to function.set-include-path
Groups: php.notes 
Request: Send a blank email to php-notes+get-169235@lists.php.net to get a copy of this message
It seems you can't really set empty inlude_path. First, set_include_path('') does exactly nothing (successfully), and second, '.' is always implicitly appended to the include path by PHP itself, as noted in comments below. However, you can: set_include_path(PATH_SEPARATOR); // note no quotes around the PATH_SEPARATOR; it's a string on its own or, more explicit: set_include_path('.'); Both seems to have the same result. ---- Server IP: 82.177.164.100 Probable Submitter: 213.136.233.250 ---- Manual Page -- http://www.php.net/manual/en/function.set-include-path.php Edit -- https://master.php.net/note/edit/97896 Del: integrated -- https://master.php.net/note/delete/97896/integrated Del: useless -- https://master.php.net/note/delete/97896/useless Del: bad code -- https://master.php.net/note/delete/97896/bad+code Del: spam -- https://master.php.net/note/delete/97896/spam Del: non-english -- https://master.php.net/note/delete/97896/non-english Del: in docs -- https://master.php.net/note/delete/97896/in+docs Del: other reasons-- https://master.php.net/note/delete/97896 Reject -- https://master.php.net/note/reject/97896 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169235) next »