Jump to content

b0n

New Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About b0n

  • Rank
    Newbie
  1. So I guess php just kinda does what it wants? Not really any set in stone rules?
  2. <?php namespace NamespaceA; class A extends \NamespaceB\B {} namespace NamespaceC; class C {} namespace NamespaceB; class B extends \NamespaceC\C {} why this work?
  3. Heck of a rabbit hole.... This works: <?php class B extends C {} class D extends C{} class E extends D{} class C{} ?> but this doesn't: <?php class B extends C {} class D extends C{} class C extends A{} class E extends D{} class A{} ?> is there anyway to contact the PHP developer team?
  4. This code works without problems: <?php namespace NamespaceA; class A extends \NamespaceB\B {} namespace NamespaceB; class B {} But why the following code cause Fatal error: Class 'NamespaceB\B' not found in ...file? <?php namespace NamespaceA; class A extends \NamespaceB\B {} namespace NamespaceB; class B extends \NamespaceC\C {} namespace NamespaceC; class C {} And this code also works without problems: <?php namespace NamespaceA; class A extends \NamespaceB\B {} namespace NamespaceC; class C {} namespace NamespaceB; class B extends \NamespaceC\C {} Without any namespace, also Fatal error: Class 'B' not found in ...file: <?php class A extends B {} class B extends C {} class C {} Works without problems: <?php class A extends B {} class B {} And yes everything is in the same PHP file....
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.