2008/8/30 Ronald Chmara <[EMAIL PROTECTED]>: > > On Aug 29, 2008, at 7:58 PM, Robert Cummings wrote: > >> On Sat, 2008-08-30 at 04:40 +0200, Lupus Michaelis wrote: >>> >>> Richard Quadling a écrit : >>>> >>>> Can someone point me to where or how PHP DOESN'T close persistent >>>> connections >>> >>> Maybe because it is... persistent ? >> >> He's probably trying to learn how to do the same. This is internals >> after all and not php-general. > > If you'd like to peruse the source, to implement a similar feature, one > place to look is the web gui to CVS for the function: > > http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/php_mysql.c?revision=1.213.2.6.2.16.2.26&view=markup > > -Bop > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
What I'm trying to determine is how persistent connections are ignored when mysql_close() is called against a connection which was opened via mysql_pconnect(). I've looked at the source and can see that mysql_connect and mysql_pconnect call php_mysql_do_connect(INTERNAL_FUNCTION_PARAM_PASSTHRU, x); where x is 1 or 0 (persistent or not). But in mysql_close(), there is no reference to the persistent setting of MySG(allow_persistent) or any other persistent related variable. So, I'm missing something. And that's why I asked. Regards, Richard Quadling. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"