<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/general/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/general/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/general/bugs/</id><updated>2002-02-09T22:07:30Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>common.inc.php scope problem?</title><link href="https://sourceforge.net/p/general/bugs/2/" rel="alternate"/><published>2002-02-09T22:07:30Z</published><updated>2002-02-09T22:07:30Z</updated><author><name>Toby Meehan</name><uri>https://sourceforge.net/u/tmeehan/</uri></author><id>https://sourceforge.net0454ba955a226abcd51dc5aa7b731ed5503c175f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Using RH7.2 with PHP4.0.6 and General 0.3.6&lt;/p&gt;
&lt;p&gt;Trying to figure out what getref does in &lt;br /&gt;
common.inc.php and noticed this check:&lt;/p&gt;
&lt;p&gt;$support = array();&lt;br /&gt;
...&lt;br /&gt;
if( !in_array( $param[&amp;amp;quot;url&amp;amp;quot;], array_keys( $support ) ) &lt;br /&gt;
|| !is_object( $support[$param[&amp;amp;quot;url&amp;amp;quot;]] ) )&lt;/p&gt;
&lt;p&gt;The variable $support is defined local to the getref &lt;br /&gt;
function and you've done nothing with it yet.  What do &lt;br /&gt;
you expect to find in it?  Here, you're searching it &lt;br /&gt;
for array keys for a specific URL and if there's an &lt;br /&gt;
object at that key?&lt;/p&gt;
&lt;p&gt;Then I noticed you have another $support = array(); &lt;br /&gt;
declared at the beginning of this include file.  Why?&lt;br /&gt;
Unless you meant to have the including file be able to &lt;br /&gt;
use it...without passing it into the functions.&lt;/p&gt;
&lt;p&gt;In summary, I think you want to change this line in &lt;br /&gt;
the getref function from:&lt;/p&gt;
&lt;p&gt;$support = array();&lt;/p&gt;
&lt;p&gt;-to-&lt;/p&gt;
&lt;p&gt;global $support = array();&lt;/p&gt;
&lt;p&gt;That way, you're changing the variable that's global &lt;br /&gt;
in this include file.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>openldap.class.php bug?</title><link href="https://sourceforge.net/p/general/bugs/1/" rel="alternate"/><published>2002-02-09T02:34:37Z</published><updated>2002-02-09T02:34:37Z</updated><author><name>Toby Meehan</name><uri>https://sourceforge.net/u/tmeehan/</uri></author><id>https://sourceforge.net93a15c184a07407012510f6865c0f4af0ca80350</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm on RH7.2, PHP4.0.6, Apache1.3.22.  Was tracking &lt;br /&gt;
down a login problem and noticed these in &lt;br /&gt;
openldap.class.php:&lt;/p&gt;
&lt;p&gt;$errmsg .= $loc-&amp;amp;gt;i18n( &amp;amp;quot;Unable to search &lt;br /&gt;
user&amp;amp;quot; ) . &amp;amp;quot;\n&amp;amp;quot;;&lt;/p&gt;
&lt;p&gt;-and-&lt;/p&gt;
&lt;p&gt;$errmsg .= $loc-&amp;amp;gt;i18n( &amp;amp;quot;Unable to get result&amp;amp;quot; ) . &amp;amp;quot;\n&amp;amp;quot;;&lt;/p&gt;
&lt;p&gt;Shouldn't these be: &lt;/p&gt;
&lt;p&gt;$errmsg .= $this-&amp;amp;gt;i18n( &amp;amp;quot;Unable to search &lt;br /&gt;
user&amp;amp;quot; ) . &amp;amp;quot;\n&amp;amp;quot;;&lt;/p&gt;
&lt;p&gt;-and-&lt;/p&gt;
&lt;p&gt;$errmsg .= $this-&amp;amp;gt;i18n( &amp;amp;quot;Unable to get &lt;br /&gt;
result&amp;amp;quot; ) . &amp;amp;quot;\n&amp;amp;quot;;&lt;/p&gt;
&lt;p&gt;I'm not good with objects in PHP, but this looked &lt;br /&gt;
fishy to me.&lt;br /&gt;
&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>