[ phpeclipse-Bugs-1264237 ] warning for valid include() calls

"SourceForge.net" <[email protected]> Thu, 10 May 2007 23:13:00 -0700
Newsgroups gmane.comp.ide.eclipse.phpeclipse.devel
Message-ID <[email protected]>
Bugs item #1264237, was opened at 2005-08-19 13:37
Message generated for change (Comment added) made by emann
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1264237&group_id=57621

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: PHP Parser 
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Martin Olsson (mnem0)
>Assigned to: Edward Mann (emann)
Summary: warning for valid include() calls

Initial Comment:
Suppose I have the following files

  $PROJ_DIR/index.php
  $PROJ_DIR/subdir/file.php
  $PROJ_DIR/subdir/another_file.php

Now suppose that index.php includes("subdir/file.php")
and that file.php includes("subdir/another_file.php").
Notice that file.php is stored in subdir but the
current dir when code in executed in file.php is always
$PROJ_DIR. Here PHPEclipse will give a warning because
$PROJ_DIR/subdir/subdir/another_file.php does not
exist, but include paths are relative to whatever other
file included the file with the include line. Bug in
PHP Eclipse (could also be blamed on weird include()
semantics in PHP, but now PHP is what it is so...)


----------------------------------------------------------------------

>Comment By: Edward Mann (emann)
Date: 2007-05-11 01:13

Message:
Logged In: YES 
user_id=430467
Originator: NO

can you post some sample code? I want to know what you are putting in your
php file for the includes.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1264237&group_id=57621

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/