View Single Post
Old 08-30-2009, 04:36 AM   #1 (permalink)
ioan1k
The Contributor
 
ioan1k's Avatar
 
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
ioan1k is on a distinguished road
Default Strange Notice Error .....

Hello!

I have debugged this problem for quite sometime now and cannot fix this damn notice error.

The errors I receive are
Code:
Notice:  Use of undefined constant object - assumed 'object' in /var/www/unus/library/Acl/Role.php on line 45

Notice:  Use of undefined constant object - assumed 'object' in /var/www/unus/library/Acl/Resource.php on line 45
Turning Notice errors off is not the answer ....

Here is the code, the setData method is just a object that holds data information in key => value mapping

php Code:
// Role.php
public function __construct()
{
    $this->setData('acl', new Unus_Role());
}
// Resource.php
public function __construct()
{
    $this->setData('acl', new Unus_Resource());
}

As far as I can tell from this is somehow, someway it is seeing the Object as a constant and finding it undefined... this happens is php 5.2 and 5.3 (maybe its a bug)
__________________
My Portfolio - Work - Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
ioan1k is offline  
Reply With Quote