Doc #51569 [Asn->Csd]: Documentation of include missing fallback to calling script's cwd

From: Date: Wed, 15 Sep 2010 06:59:31 +0000
Subject: Doc #51569 [Asn->Csd]: Documentation of include missing fallback to calling script's cwd
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5044@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51569&edit=1 ID: 51569 Updated by: aharvey@php.net Reported by: privat at ni-po dot com Summary: Documentation of include missing fallback to calling script's cwd -Status: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant Assigned To: aharvey Block user comment: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-09-15 08:58:40] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&revision=303380 Log: Fix doc bug #51569 (Documentation of include missing fallback to calling script's cwd) by adding clarifying note about the final fallback when including a file. ------------------------------------------------------------------------ [2010-09-15 03:30:31] mail_ben_schmidt at yahoo dot com dot au This appears to be a regression from bug #41460 where the documentation included this fact and was clarified to ensure the behaviour was properly described. See also bug #52845 for another documentation deficiency related to include and include_path, and bug #52847 for what I think is a documentation problem, but may be a behaviour problem. ------------------------------------------------------------------------ [2010-09-15 02:15:55] mail_ben_schmidt at yahoo dot com dot au Just to clarify, we're saying here that when you do include($relative_path) PHP falls back to trying the equivalent of include(dirname(__FILE__).DIRECTORY_SEPARATOR.$relative_path) aren't we? I.e. it checks relative to the location of the current script, not relative to the current working directory (that behaviour is already documented, though perhaps not well). ------------------------------------------------------------------------ [2010-05-22 19:44:30] privat at ni-po dot com Now *really* updated it... ------------------------------------------------------------------------ [2010-05-22 19:43:30] privat at ni-po dot com Updated bug type and php version ------------------------------------------------------------------------ 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 http://bugs.php.net/bug.php?id=51569 -- Edit this bug report at http://bugs.php.net/bug.php?id=51569&edit=1

« previous php.doc.bugs (#5044) next »