Re: [PHP4BETA] MySQL module #2

From: Date: Sat, 04 Sep 1999 15:43:31 +0000
Subject: Re: [PHP4BETA] MySQL module #2
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-4081@lists.php.net to get a copy of this message
04.09.1999 v 17:14:53 (+0200), Andreas Karajannis napsal: > Zeev Suraski wrote: > > > > Nobody has replied to the MySQL module testing letter... Did anybody test it? > > One person submitted a bug report about it not working at all (not > > returning data) - but that's not quite possible, I tested it that much > > :) I believe it's a build problem. > > > > I havn't tested the mysql module, but from looking at the source, I > doubt that persistent connections work - or I didn't get the resource > concept right. > > When adding a new persistent connection, the MYSQL struct gets added to > the persistent list - but not to the 'normal' list (probably > register_resource does this). In zend_fetch_resource_ex(), only list is > searched, so unless on request initialization resources from the plist > are copied over to list, you won't be able to access persistent > connection data after the request it was created. I think you got it wrong.. maybe the think that misguided you, is that le_plink or le_link in ZEND_REGISTER_RESOURCE. it's not a list, which the resource is put it, but just the type of the resource. the list is all the same for all functions. Jakub -- Jakub "RiffRaff" Skopal mailto:j@kubs.cz

« previous php.version4 (#4081) next »