Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#41 closed defect (fixed)

early class binding (was require_once with circular dependencies)

Reported by: judas_iscariote Owned by: moo
Priority: major Milestone: 1.2
Component: cacher Version: 1.0.1
Keywords: circular require_once Cc: soporte+xcache@…
Application: PHP Version:
Other Exts: SAPI:
Probability: Blocked By:
Blocking:

Description (last modified by moo)

XCache suffer a a bug with require_once and circular dependencies, described on eaccelerator bug number 146, test case attached to the report available in the eaccelerator trac helps to reproduce the issue. :)

Change History (4)

comment:1 Changed 8 years ago by moo

  • Status changed from new to assigned

it's a early binding issue

comment:2 Changed 8 years ago by moo

  • Description modified (diff)
  • Resolution set to fixed
  • Status changed from assigned to closed
  • Summary changed from require_once with circular dependencies to early class binding (was require_once with circular dependencies)

in [212]

comment:3 Changed 8 years ago by moo

simpler reproduce script:
P.php

<?php
class P
{
}
require_once "child.php";
?>

child.php

<?php
$child = new child();

class child extends P // should do early binding
{
}
require_once "child.php";
?>

comment:4 Changed 8 years ago by moo

  • Milestone changed from 1.0.3 to 1.2

class that imeplement interface is now fixed (was segfaulting) in [214]

Note: See TracTickets for help on using tickets.