Ticket #2428 (assigned defect)

Opened 4 years ago

Last modified 2 years ago

Including the same file file via a differnt path

Reported by: gollum Assigned to: tim (accepted)
Priority: normal Milestone: 3.0.0 release
Component: Core Version: trunk
Severity: major Keywords:
Cc:

Description (Last modified by weyrick)

If you include the same file via a different path, pcc doesn't recognize that it's the same file which causes it to be included again evein if it's an include_once.

This was making pcc think that a function was getting re-defined when it shouldn't have been.


<---------include.php----------->
<?
function foo() {
        echo "in foo\n";
}
?>
<------------------------------->


<---------test.php-------------->
<?
$pwd = getcwd();

include('include.php');
include_once($pwd . '/include.php');

foo();

?>
<------------------------------->

Change History

01/24/06 04:57:45 changed by weyrick

still relavent?

04/15/07 11:19:39 changed by weyrick

  • version set to trunk.
  • type set to defect.
  • description changed.
  • milestone set to 3.0.0 release.