Method override compatibility fixes

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Mar 23, 2010, 6:20:27 AM3/23/10
to In-Portal Bugs
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.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Dmitry Andrejev

unread,
Mar 25, 2010, 1:24:52 AM3/25/10
to in-port...@googlegroups.com
Do we have a way to work this out?

Time for a new task or too early?


DA.

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
Mar 25, 2010, 4:42:10 PM3/25/10
to in-port...@googlegroups.com
Yes, time for a task. It's pretty obvious based on mentioned errors how they should be fixed.

Dmitry Andrejev

unread,
Mar 26, 2010, 11:07:36 AM3/26/10
to in-port...@googlegroups.com
Here is a task:

644: Compatibility Issues with PHP 5.3.x


DA.

Alexander Obuhovich

unread,
Apr 11, 2010, 10:02:54 AM4/11/10
to in-port...@googlegroups.com
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.

Dmitry Andrejev

unread,
Apr 11, 2010, 10:55:24 AM4/11/10
to in-port...@googlegroups.com
Does it applies when PHP started in Command Line only? or anywhere in 5.3.x

DA. 

Alexander Obuhovich

unread,
Apr 11, 2010, 12:15:42 PM4/11/10
to in-port...@googlegroups.com
That I don't know too.
Reply all
Reply to author
Forward
0 new messages