Child pages
  • [php-compatibility] Method override compatibility fixes
Skip to end of metadata
Go to start of metadata

Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/2dd7a0824fd0bb6f#

I've came across these errors, when I stated cron.php from command line.

Strict Standards: Declaration of kEvent::Init() should be compatible with that of kBase::Init() in /core/kernel/utility/event.php on line 337 


PHP Strict Standards:  Declaration of kFactory::makeClass() should be compatible with that of kBase::makeClass() in /core/kernel/utility/factory.php on line 331 

Strict Standards: Declaration of kFactory::makeClass() should be compatible with that of kBase::makeClass() in /core/kernel/utility/factory.php on line 331 


PHP Strict Standards:  Declaration of PhrasesCache::Init() should be compatible with that of kBase::Init() in /core/kernel/languages/phrases_cache.php on line 363 

Strict Standards: Declaration of PhrasesCache::Init() should be compatible with that of kBase::Init() in /core/kernel/languages/phrases_cache.php on line 363 


PHP Strict Standards:  Declaration of kDBItem::GetSelectSQL() should be compatible with that of kDBBase::GetSelectSQL() in /core/kernel/db/dbitem.php on line 1310 

Strict Standards: Declaration of kDBItem::GetSelectSQL() should be compatible with that of kDBBase::GetSelectSQL() in /core/kernel/db/dbitem.php on line 1310 


PHP Strict Standards:  Declaration of kEventHandler::Init() should be compatible with that of kBase::Init() in /core/kernel/event_handler.php on line 206 

Strict Standards: Declaration of kEventHandler::Init() should be compatible with that of kBase::Init() in /core/kernel/event_handler.php on line 206 


PHP Strict Standards:  Declaration of kEventHandler::getPrefixSpecial() should be compatible with that of kBase::getPrefixSpecial() in /core/kernel/event_handler.php on line 206 

Strict Standards: Declaration of kEventHandler::getPrefixSpecial() should be compatible with that of kBase::getPrefixSpecial() in /core/kernel/event_handler.php on line 206 

It looks like PHP 5.3.1 doesn't like, when we override method and removing part or all method parameters in it's overridden version.

Related Tasks

INP-508 - Getting issue details... STATUS

6 Comments

  1. Do we have a way to work this out?

    Time for a new task or too early?

    DA.

  2. Yes, time for a task. It's pretty obvious based on mentioned errors how they
    should be fixed.

  3. Here is a task:

    644: Compatibility Issues with PHP 5.3.x

    INP-508 - Getting issue details... STATUS


    <

    INP-508 - Getting issue details... STATUS

    >DA.
  4. I don't know how to fix that, since it's normal to change method input
    parameters when it is overwritten in extended class. All that errors about
    about that.

  5. Does it applies when PHP started in Command Line only? or anywhere in 5.3.x

    DA.

  6. That I don't know too.