+1  A: 

private $config = array();

Crayon Violent
I thought because it is a reference it wouldnt need declaring as an array?
Lee
Tried the solution, it didnt work. The same error message was generated.
Lee
well you don't *need* to...according to OP it's a "notice"
Crayon Violent
+5  A: 

Well, first off....

$this->$config

The second $ should be removed since otherwise it's trying to access the variable with the name given by the string within $config. (e.g., if $config held "test" as a value, you'd be accessing the "test" variable within your class: $this->test)

What is "$config" when it is passed in, anyway? (String, array, object, etc?)

Guttsy
Ahh.. dummy mistake.. I've been looking at that for a little aswell.. Sorry to waste your time..$config is an array.
Lee
+1  A: 

$this->config = $config;

stillstanding
A: 

This works without errors in php 5.2.
What version of php are you using?

<?php
class core
{
   private $config;

   public function __construct(&$config)
   {
      $this->config = $config;
   }

   public function execute()
   {
      $this->set_path();
   }

   private function set_path()
   {
      return true;      
   }  
}

$config=array(
     'a'    => '1'
    ,'b'    => '2'
    );

$core = new core($config);
$core->execute();
vlad b.