/
[php-compatibility] Method override compatibility fixes

[php-compatibility] Method override compatibility fixes

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