Closed (fixed)
Project:
Notifications
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2011 at 21:22 UTC
Updated:
3 Oct 2011 at 20:21 UTC
When strict error reporting is on you get a whole bunch of warnings:
* Strict warning: Static function Notifications_Object::object_load() should not be abstract in _registry_check_code() (line 2662 of X:\xampp\htdocs\drupal7\includes\bootstrap.inc).
* Strict warning: Static function Notifications_Object::object_name() should not be abstract in _registry_check_code() (line 2662 of X:\xampp\htdocs\drupal7\includes\bootstrap.inc).
* Strict warning: Static function Notifications_Object::object_value() should not be abstract in _registry_check_code() (line 2662 of X:\xampp\htdocs\drupal7\includes\bootstrap.inc).
http://stackoverflow.com/questions/999066/why-does-php-5-2-disallow-abst...
Attached patch uses an interface (if you start using a interface you might want to consider adding more of Notifications_Object's methods to the interface).
| Comment | File | Size | Author |
|---|---|---|---|
| notifstrict.patch | 1.63 KB | casey |
Comments
Comment #1
fangel commentedI concur with these changes. I also run with strict warnings enabled and receive the following notices when e.g. clearing cache..
Comment #2
sharplesa commentedCould not duplicate. Am on PHP 5.3, though.
In index.php, I've set
Please describe procedure for getting these error messages. Otherwise, I'm inclined to recommend a status change of "closed (cannot reproduce)".
Comment #3
sharplesa commentedThis issue report needs work, so rolling status back to "needs work".
Comment #4
webflo commentedConfirmed. Set your error_reporting to -1.
Comment #5
webflo commentedThanks. Patch committed in a248732 on 7.x-1.x. Will cleanup later.