PHP 5.3.0 funky problem with including
<p>I have php file with a class in it that needs to read a variable from my config file. The config file is getting included in both the page thats including the class and the class itself (both with require_once). However, the variable i need to read ($cfg) is apparently undefined in the class file, according to the errors i'm getting:</p>

<blockquote>
  <p>Notice: Undefined variable: cfg in /opt/lampp/htdocs/screia/obj/MemberProfile.class.php on line 45</p>
</blockquote>

<p>I tried making it global in the config file by adding:</p>

<pre><code>global $cfg;
</code></pre>

<p>but it still wont find it. I had a suggestion from a friend that maybe with the new namespacing in 5.3.0 they changed the semantics of including. is this true?</p>
