<?xml version="1.0"?>
<?xml-stylesheet 
 href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/6330/bug">
    <title>PEAR Bug #6330</title>
    <link>http://pear.php.net/bugs/6330</link>
    <description>[Closed] fatal error on line 122 of db.php</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2008-03-05+10%3A15%3A14#2008-03-05+10%3A15%3A14"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2007-10-22+17%3A42%3A11#2007-10-22+17%3A42%3A11"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2007-10-01+12%3A01%3A40#2007-10-01+12%3A01%3A40"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2006-10-20+12%3A40%3A01#2006-10-20+12%3A40%3A01"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2006-06-17+06%3A01%3A24#2006-06-17+06%3A01%3A24"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2006-06-16+14%3A10%3A08#2006-06-16+14%3A10%3A08"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2006-03-01+06%3A33%3A23#2006-03-01+06%3A33%3A23"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2005-12-23+13%3A18%3A44#2005-12-23+13%3A18%3A44"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2005-12-23+11%3A03%3A23#2005-12-23+11%3A03%3A23"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2005-12-23+10%3A41%3A44#2005-12-23+10%3A41%3A44"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2005-12-23+10%3A05%3A12#2005-12-23+10%3A05%3A12"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2005-12-23+03%3A27%3A09#2005-12-23+03%3A27%3A09"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2005-12-22+17%3A36%3A22#2005-12-22+17%3A36%3A22"/>
      <rdf:li rdf:resource="http://pear.php.net/bugs/6330/2005-12-22+17%3A04%3A56#2005-12-22+17%3A04%3A56"/>
     </rdf:Seq>
    </items>
  </channel>
    <item rdf:about="http://pear.php.net/bugs/6330">
      <title>info@... [2005-12-22 11:29:21]</title>
      <link>http://pear.php.net/bugs/6330</link>
      <description><![CDATA[<pre>Mail_Queue Bug
Reported by info@...
2005-12-22T16:29:21-00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
Not sure what is going on. That's why I am reporting this bug. I just see this in my cron email. I wish I could provide more information to help but this is all I get.

Fatal error: Call to undefined function:  quote() in /home/www/facternet.com/freespace/includes/PEAR/Mail/Queue/Container/db.php on line 122

Test script:
---------------
I don't know how to write a test script.

Expected result:
----------------
I don't expect to see an error.

Actual result:
--------------
Fatal error: Call to undefined function:  quote() in /home/www/facternet.com/freespace/includes/PEAR/Mail/Queue/Container/db.php on line 122</pre>]]></description>
      <content:encoded><![CDATA[<pre>Mail_Queue Bug
Reported by info@...
2005-12-22T16:29:21-00:00
PHP: Irrelevant OS:  Package Version: 

Description:
------------
Not sure what is going on. That's why I am reporting this bug. I just see this in my cron email. I wish I could provide more information to help but this is all I get.

Fatal error: Call to undefined function:  quote() in /home/www/facternet.com/freespace/includes/PEAR/Mail/Queue/Container/db.php on line 122

Test script:
---------------
I don't know how to write a test script.

Expected result:
----------------
I don't expect to see an error.

Actual result:
--------------
Fatal error: Call to undefined function:  quote() in /home/www/facternet.com/freespace/includes/PEAR/Mail/Queue/Container/db.php on line 122</pre>]]></content:encoded>
      <dc:date>2005-12-22T16:29:21-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2008-03-05+10%3A15%3A14#2008-03-05+10%3A15%3A14">
      <title>teakcreek [2008-03-05 15:15]</title>
      <link>http://pear.php.net/bugs/6330#1204730114</link>
      <description><![CDATA[<pre>I am the provebial 'noob' in regard to PEAR but i am getting a similar error in mdb2.php , line 109

error reads (slight edit):
Fatal error: Call to undefined function: quote() in /home/content/x/x/x/pxxxxxe/html/pear/PEAR/Mail/Queue
/Container/mdb2.php on line 109

it's a shared host, (my) 'local' version of PEAR installed yesterday with zero problems via go-pear.php (4th March 2008) 

versions:
PEAR Base System  1.7.1 (stable)  	    	 
Mail_Queue   	      1.2.1 (stable)

Can you confirm -in gentle noob terms- that this is definitely a connection issue? 
If so, how can i test to find out what the exact problem is?
an error saying that the function is undefined is not all that helpful. 

It may be that i'm doing something dum, but apart from that it still seems that somewhere along the line this error is not being caught properly and that kinda is what's making me send this...

naw... actually i'd just really like to know how to fix it :p

Cheers 

pk</pre>]]></description>
      <content:encoded><![CDATA[<pre>I am the provebial 'noob' in regard to PEAR but i am getting a similar error in mdb2.php , line 109

error reads (slight edit):
Fatal error: Call to undefined function: quote() in /home/content/x/x/x/pxxxxxe/html/pear/PEAR/Mail/Queue
/Container/mdb2.php on line 109

it's a shared host, (my) 'local' version of PEAR installed yesterday with zero problems via go-pear.php (4th March 2008) 

versions:
PEAR Base System  1.7.1 (stable)  	    	 
Mail_Queue   	      1.2.1 (stable)

Can you confirm -in gentle noob terms- that this is definitely a connection issue? 
If so, how can i test to find out what the exact problem is?
an error saying that the function is undefined is not all that helpful. 

It may be that i'm doing something dum, but apart from that it still seems that somewhere along the line this error is not being caught properly and that kinda is what's making me send this...

naw... actually i'd just really like to know how to fix it :p

Cheers 

pk</pre>]]></content:encoded>
      <dc:date>2008-03-05T15:15:14-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2007-10-22+17%3A42%3A11#2007-10-22+17%3A42%3A11">
      <title>quipo [2007-10-22 21:42]</title>
      <link>http://pear.php.net/bugs/6330#1193089331</link>
      <description><![CDATA[<pre>I've added a check for a valid DB connection in _preload(). Please fetch the CVS version and retry. TIA.</pre>]]></description>
      <content:encoded><![CDATA[<pre>I've added a check for a valid DB connection in _preload(). Please fetch the CVS version and retry. TIA.</pre>]]></content:encoded>
      <dc:date>2007-10-22T21:42:11-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2007-10-01+12%3A01%3A40#2007-10-01+12%3A01%3A40">
      <title>lumomm [2007-10-01 16:01]</title>
      <link>http://pear.php.net/bugs/6330#1191254500</link>
      <description><![CDATA[<pre>This problem seems to be still alive.
I discovered that this has something to do with the error message &amp;#8220;too many connections&amp;#8221;. The MDB2 container or Mail_queue isn&amp;#8217;t closing the DB connection properly. Every time I run the queue I see there is an additional MySQL process created, though sleeping but not appreciated. 
I think this error can be replicated by setting the max connections of the MySQL to &lt; 5. Or do a SHOWPROCESS after a queue run.
Info:
PEAR mail_queue version 1.2.1 and MDB2 2.4.1
**** Cron error ***
PHP Fatal error:  Call to undefined function:  quote() in /usr/share/pear/Mail/Queue/Container/db.php on line 122
**</pre>]]></description>
      <content:encoded><![CDATA[<pre>This problem seems to be still alive.
I discovered that this has something to do with the error message &amp;#8220;too many connections&amp;#8221;. The MDB2 container or Mail_queue isn&amp;#8217;t closing the DB connection properly. Every time I run the queue I see there is an additional MySQL process created, though sleeping but not appreciated. 
I think this error can be replicated by setting the max connections of the MySQL to &lt; 5. Or do a SHOWPROCESS after a queue run.
Info:
PEAR mail_queue version 1.2.1 and MDB2 2.4.1
**** Cron error ***
PHP Fatal error:  Call to undefined function:  quote() in /usr/share/pear/Mail/Queue/Container/db.php on line 122
**</pre>]]></content:encoded>
      <dc:date>2007-10-01T16:01:40-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2006-10-20+12%3A40%3A01#2006-10-20+12%3A40%3A01">
      <title>quipo [2006-10-20 16:40]</title>
      <link>http://pear.php.net/bugs/6330#1161362401</link>
      <description><![CDATA[<pre>so, was it a &quot;dropped connection&quot; issue? Can I close this report or do you have something to add?</pre>]]></description>
      <content:encoded><![CDATA[<pre>so, was it a &quot;dropped connection&quot; issue? Can I close this report or do you have something to add?</pre>]]></content:encoded>
      <dc:date>2006-10-20T16:40:01-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2006-06-17+06%3A01%3A24#2006-06-17+06%3A01%3A24">
      <title>quipo [2006-06-17 10:01]</title>
      <link>http://pear.php.net/bugs/6330#1150538484</link>
      <description><![CDATA[<pre>can you add these lines at the beginning of the _preload() function?

==============================================
if (!is_a($this-&gt;db, 'DB_common')) {
    return new Mail_Queue_Error(MAILQUEUE_ERROR_CANNOT_CONNECT,
    $this-&gt;pearErrorMode, E_USER_ERROR, __FILE__, __LINE__,
    'db connection lost';
}
==============================================

it looks like $this-&gt;db does no longer hold a valid db connection...</pre>]]></description>
      <content:encoded><![CDATA[<pre>can you add these lines at the beginning of the _preload() function?

==============================================
if (!is_a($this-&gt;db, 'DB_common')) {
    return new Mail_Queue_Error(MAILQUEUE_ERROR_CANNOT_CONNECT,
    $this-&gt;pearErrorMode, E_USER_ERROR, __FILE__, __LINE__,
    'db connection lost';
}
==============================================

it looks like $this-&gt;db does no longer hold a valid db connection...</pre>]]></content:encoded>
      <dc:date>2006-06-17T10:01:24-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2006-06-16+14%3A10%3A08#2006-06-16+14%3A10%3A08">
      <title>secret@... [2006-06-16 18:10]</title>
      <link>http://pear.php.net/bugs/6330#1150481408</link>
      <description><![CDATA[<pre>This bug still exists. I've tried checking out v1.1.4 from the CVS and that doesn't help.</pre>]]></description>
      <content:encoded><![CDATA[<pre>This bug still exists. I've tried checking out v1.1.4 from the CVS and that doesn't help.</pre>]]></content:encoded>
      <dc:date>2006-06-16T18:10:08-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2006-03-01+06%3A33%3A23#2006-03-01+06%3A33%3A23">
      <title>quipo [2006-03-01 11:33]</title>
      <link>http://pear.php.net/bugs/6330#1141212803</link>
      <description><![CDATA[<pre>any news? Can I close this bug report?</pre>]]></description>
      <content:encoded><![CDATA[<pre>any news? Can I close this bug report?</pre>]]></content:encoded>
      <dc:date>2006-03-01T11:33:23-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2005-12-23+13%3A18%3A44#2005-12-23+13%3A18%3A44">
      <title>info@... [2005-12-23 18:18]</title>
      <link>http://pear.php.net/bugs/6330#1135361924</link>
      <description><![CDATA[<pre>Ok I'm foolish. I have replaced the files with the CVS history logs instead of the sourcecode. I have since replaced the files with the sourcecode. Now to wait and see if the error surfaces.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Ok I'm foolish. I have replaced the files with the CVS history logs instead of the sourcecode. I have since replaced the files with the sourcecode. Now to wait and see if the error surfaces.</pre>]]></content:encoded>
      <dc:date>2005-12-23T18:18:44-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2005-12-23+11%3A03%3A23#2005-12-23+11%3A03%3A23">
      <title>info@... [2005-12-23 16:03]</title>
      <link>http://pear.php.net/bugs/6330#1135353803</link>
      <description><![CDATA[<pre>My client sent me notification that cron is now sending him a change history web page.

What is going on?

Here is the section of code used:

include_once './mail_queue_config.php';

/* How many mails could we send each time the script is called */
$max_amount_mails = 50;

/* we use the db_options and mail_options from the mail_queue_config  */
$mail_queue =&amp; new Mail_Queue($db_options, $mail_options);

/* really sending the messages */
$mail_queue-&gt;sendMailsInQueue($max_amount_mails);</pre>]]></description>
      <content:encoded><![CDATA[<pre>My client sent me notification that cron is now sending him a change history web page.

What is going on?

Here is the section of code used:

include_once './mail_queue_config.php';

/* How many mails could we send each time the script is called */
$max_amount_mails = 50;

/* we use the db_options and mail_options from the mail_queue_config  */
$mail_queue =&amp; new Mail_Queue($db_options, $mail_options);

/* really sending the messages */
$mail_queue-&gt;sendMailsInQueue($max_amount_mails);</pre>]]></content:encoded>
      <dc:date>2005-12-23T16:03:23-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2005-12-23+10%3A41%3A44#2005-12-23+10%3A41%3A44">
      <title>quipo [2005-12-23 15:41]</title>
      <link>http://pear.php.net/bugs/6330#1135352504</link>
      <description><![CDATA[<pre>what's the line of the error? Did you upgrade all the Mail_Queue files or just db.php? Have you checked for db connection problems just after the call to the constructor?</pre>]]></description>
      <content:encoded><![CDATA[<pre>what's the line of the error? Did you upgrade all the Mail_Queue files or just db.php? Have you checked for db connection problems just after the call to the constructor?</pre>]]></content:encoded>
      <dc:date>2005-12-23T15:41:44-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2005-12-23+10%3A05%3A12#2005-12-23+10%3A05%3A12">
      <title>info@... [2005-12-23 15:05]</title>
      <link>http://pear.php.net/bugs/6330#1135350312</link>
      <description><![CDATA[<pre>The new file versions didn't fix the error.</pre>]]></description>
      <content:encoded><![CDATA[<pre>The new file versions didn't fix the error.</pre>]]></content:encoded>
      <dc:date>2005-12-23T15:05:12-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2005-12-23+03%3A27%3A09#2005-12-23+03%3A27%3A09">
      <title>quipo [2005-12-23 08:27]</title>
      <link>http://pear.php.net/bugs/6330#1135326429</link>
      <description><![CDATA[<pre>&gt; Let me know if you need anything.

yep, one thing: if you can confirm that the CVS version works fine, please close this bug report :-)

Thanks for your help and happy Xmas!</pre>]]></description>
      <content:encoded><![CDATA[<pre>&gt; Let me know if you need anything.

yep, one thing: if you can confirm that the CVS version works fine, please close this bug report :-)

Thanks for your help and happy Xmas!</pre>]]></content:encoded>
      <dc:date>2005-12-23T08:27:09-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2005-12-22+17%3A36%3A22#2005-12-22+17%3A36%3A22">
      <title>info@... [2005-12-22 22:36]</title>
      <link>http://pear.php.net/bugs/6330#1135290982</link>
      <description><![CDATA[<pre>Thank you for the quick response. I have downloaded the CVS versions and am trying them.

Hopefully my client won't receive any further errors in cron and I can get back to Christmas :-)

Let me know if you need anything.</pre>]]></description>
      <content:encoded><![CDATA[<pre>Thank you for the quick response. I have downloaded the CVS versions and am trying them.

Hopefully my client won't receive any further errors in cron and I can get back to Christmas :-)

Let me know if you need anything.</pre>]]></content:encoded>
      <dc:date>2005-12-22T22:36:22-00:00</dc:date>
    </item>
    <item rdf:about="http://pear.php.net/bugs/6330/2005-12-22+17%3A04%3A56#2005-12-22+17%3A04%3A56">
      <title>quipo [2005-12-22 22:04]</title>
      <link>http://pear.php.net/bugs/6330#1135289096</link>
      <description><![CDATA[<pre>which version are you using? Can you try the latest CVS one? 

http://cvs.php.net/pear/Mail_Queue/</pre>]]></description>
      <content:encoded><![CDATA[<pre>which version are you using? Can you try the latest CVS one? 

http://cvs.php.net/pear/Mail_Queue/</pre>]]></content:encoded>
      <dc:date>2005-12-22T22:04:56-00:00</dc:date>
    </item>
</rdf:RDF>