[PHP-DEV] PHP 4.0 Bug #7833: Array and class works strange From: jens <email protected>
Date: 11/15/00

From: jens <email protected>
Operating system: Linux
PHP version: 4.0.3pl1
PHP Bug Type: Scripting Engine problem
Bug description: Array and class works strange

I have a class called "foo" with a function "bar".

I define
  $test[1] = new foo;

When I try to use
  $test[1]->bar();
I get an error "Call to a member function on a non-object ".

I would consider this being a bug.

-- 
Edit Bug report at: http://bugs.php.net/?id=7833&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>