ID: 20616 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Scripting Engine problem Operating System: Win 2k server PHP Version: 4.3.0RC1 New Comment:
Nope. The problem is that "include ../foobar.inc" does not find foobar.inc in the parent directory, which is contrary behaviour to 4.2.3 Previous Comments: ------------------------------------------------------------------------ [2002-12-08 11:00:12] [EMAIL PROTECTED] So the problem is that 'require("/foobar.php");' does not find foobar under the current working dir?? If so, this really is not a bug but the correct behaviour. ------------------------------------------------------------------------ [2002-12-07 02:14:53] [EMAIL PROTECTED] Iliaa - see Nov 29 message. ------------------------------------------------------------------------ [2002-12-07 02:05:51] [EMAIL PROTECTED] Can you please include the error message that you get? ------------------------------------------------------------------------ [2002-11-29 07:20:30] [EMAIL PROTECTED] Now that you have given us the info, we can resolve the problem, for free. Instead of complaining, you could just contribute your obviously superior knowledge of windows and help us fix it. Keep the attitude out of the reports please. ------------------------------------------------------------------------ [2002-11-29 07:08:58] [EMAIL PROTECTED] My reply from the 26th: Hi Iliaa, OK, looks like you need further information to find this one. I would add further comments but bugs.php.net is frozen right now when attempting to edit bug reports. Let's take the following piece of code: ------------- <? /* application.php */ /* turn on verbose error reporting */ error_reporting(15); /* define a generic object */ class object {}; /* setup the configuration object */ $CFG = new object; $CFG->dbhost = "localhost"; $CFG->dbname = "mymarket"; $CFG->dbuser = "myuser"; $CFG->dbpass = "mypassword"; $CFG->wwwroot = "/Commerce/mymarket3"; $CFG->dirroot = ""; $CFG->templatedir = "$CFG->dirroot/templates"; $CFG->libdir = "$CFG->dirroot/lib"; $CFG->imagedir = "$CFG->wwwroot/images"; $CFG->wordlist = "$CFG->libdir/wordlist.txt"; $CFG->support = "[EMAIL PROTECTED]"; /* define database error handling behavior, since we are in development * we will turn on all the debugging messages to help us troubleshoot */ $DB_DEBUG = true; $DB_DIE_ON_FAIL = true; /* load up standard libraries */ require("$CFG->libdir/stdlib.php"); require("$CFG->libdir/dblib.php"); require("$CFG->libdir/mymarket.php"); require("$CFG->libdir/cart.php"); ---------------------- In 4.2.3 this will work fine, whilst in 4.3.0RC1 you'll get an error on the line: require("$CFG->libdir/stdlib.php"); That's because there will be a slash prepended where it wasn't there before. Note that '$CFG->libdir' is made from '$CFG->dirroot' plus '/lib'. With '$CFG->dirroot' being empty this should resolve to no leading slash, which was correct in 4.2.3 but now isn't. Otherwise there's no way to include a relative path. I'd get in and fix this myself but I've spent far too many years repairing other people's broken code for free, and since this is my profession it doesn't make sense to do that any more. But a pointer on where the error might be ... if you're using Cygwin and changed versions, that's probably it. Get rid of it before you go blind and use MSVC 5.0 or later, it works. Really. Rob Judd Homepage: http://judd.ob-wan.com ------------------------------------------------------------------------ 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/20616 -- Edit this bug report at http://bugs.php.net/?id=20616&edit=1