8 Responses

  1. Raul
    Raul at | | Reply

    The response is: “I have a very bad feeling about this”
    PHP version: 5.2.9-2

  2. Raul
    Raul at | | Reply

    PS: Nice solution!

  3. gphilip
    gphilip at | | Reply

    Turn on strict notices under 5.3…

  4. Siderite
    Siderite at | | Reply

    I would say that if you need to call a method in the Grandfather class from the Son class, then it shouldn’t be overriden by Father or Son should not inherit from Father. What you are doing here is like an inheritance from Father and Grandfather, which is a bit incestuous :)

  5. Carlos Ouro
    Carlos Ouro at | | Reply

    Well, it does produce a warning, static methods should always be declared as static, maybe that’s why…

    Not sure why it uses the strange $this scope, it should just E_ERROR or something.

  6. Cosmitar
    Cosmitar at | | Reply

    I agree with Siderite. If you extends Father you are working with Fathers’ escenario. So you as Son shouldn’t be able to access an overriden method of the Grandfather.

  7. Sharron Clemons
    Sharron Clemons at | | Reply

    Turn on strict notices under 5.3…

Leave a Reply