RE: LiveUser strange issue!

From: Date: Fri, 24 Mar 2006 20:48:06 +0000
Subject: RE: LiveUser strange issue!
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23447@lists.php.net to get a copy of this message
Alrighty, I can't find any 'proper' solution to the problem, although I've seen it pop up a few times in php's buglist. So it HAS happened before at least... so I'm not totally crazy! Ok, but the solution I found (seems to work out pretty good so far, and SHOULDN'T affect any other errors) is in the mssqlRaiseError() function around line 627... I just wrapped the return statement in: if(strops($message, 'Changed database context')) { return $this->raiseError($this->errorCode($code, $message), null, null, null, "$code - $message"); } Let me know if you think this would be worth submitting for anything? Or is it just a horrible hack that I'll have to add after every upgrade? Thanks for all the help though... Zane -----Original Message----- From: Lukas Smith [mailto:lsmith@php.net] Sent: Friday, March 24, 2006 10:41 AM To: Wright Zane A A1C 30 IS/DOMM Cc: pear-general@lists.php.net Subject: Re: LiveUser strange issue! Wright Zane A A1C 30 IS/DOMM wrote: > Ok I found a little more info, when MSSQL returns these 'notices' it > sends them as a nativecode of 0. Is there any nice and clean way to > ignore any 'error' codes of 0? No not really .. the problem seems to be that in the following line $result ends up false: $result = @mssql_query($query, $this->connection); at this point the error routines kick in and it will be handled as an error and you will get an error object returned. now for your specific issue you could add an item to the $errorcode_map property 0 => DB_OK, this would prevent the createSequence() call but it would still return a result object which would probably have the LiveUser error handling kick in .. regards, Lukas

« previous php.pear.general (#23447) next »