ID: 20616 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Unknown/Other Function Operating System: Win 2k server PHP Version: 4.3.0RC1 New Comment:
Iliaa - see Nov 29 message. Previous Comments: ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ [2002-11-29 06:59:28] [EMAIL PROTECTED] RC2 also fails identically, see error message below. You might also like to complete the HTML tags in the error messages so that an error displays correctly. Relying on a browser version that doesn't mind missing </body></html> tags is a Bad Idea(tm). Warning: main(../application.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in C:\Xitami\webpages\Commerce\mymarket1\admin\index.php on line 8 Warning: Failed opening '../application.php' for inclusion (include_path='.;c:\php4\pear') in C:\Xitami\webpages\Commerce\mymarket1\admin\index.php on line 8 Fatal error: Call to undefined function: pv() in C:\Xitami\webpages\Commerce\mymarket1\admin\templates\header.php on line 3 ------------------------------------------------------------------------ [2002-11-25 08:56:33] [EMAIL PROTECTED] Using the given information I cannot replicate the problem. ------------------------------------------------------------------------ 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