Ask a Question related to PHP Development, Design and Development.
-
thorsten at rinne dot info #1
#24244 [Com]: odbc_errormsg() sometimes returns a bad string when no error occurs
ID: 24244
Comment by: thorsten at rinne dot info
Reported By: bl at btn dot de
Status: No Feedback
Bug Type: ODBC related
Operating System: Red Hat Linux
PHP Version: 4.3.2
New Comment:
Hi,
I'm using PHP 4.3.3 on W2K with a IBM DB2 database version 8.1. If an
error occured, I got a normal error code in odbc_error() and
odbc_errormsg(). After that, I execute a correct SQL statement and the
error messages are still left in odbc_error() and odbc_errormsg().
There are also junk messages after some correct and successfull queries
in odbc_error() and odbc_errormsg().
This seems to be an OS independent bug in PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-08-01 06:09:31] [email]sniper@php.net[/email]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-07-27 13:19:29] [email]iliaa@php.net[/email]
Actually I wanted to see the error id not the error message. So please
tell me what is the output of:
var_dump(odbc_error())
------------------------------------------------------------------------
[2003-06-26 18:23:37] [email]sniper@php.net[/email]
Do not add comments to your own report, use this link:
[url]http://bugs.php.net/bug.php?id=24244&edit=2[/url]
------------------------------------------------------------------------
[2003-06-26 04:07:16] mb at btn dot de
Output of var_dump(odbc_errormsg()) as follows:
string(146)
"31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31: *.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:* .xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:"
string(122)
"1:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35 :*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:* .png=01;35:*.tif=01;35:"
These are only two examples. I had to reproduce the error in a small
script to generate these. That's why the variety is not that great like
in our production environment where we currently use a dirty
workaround.
------------------------------------------------------------------------
[2003-06-18 10:24:52] [email]iliaa@php.net[/email]
What does var_dump(odbc_error()) return after a valid query?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/24244[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=24244&edit=1[/url]
thorsten at rinne dot info Guest
-
BUG: An 8144 error occurs when you try to attach adatabase to an instance of SQL Server by using SQL ServerEnterprise
Hi guys... just wondering if any of you have come up with a 8144 database error... I'm getting this through calling cfstoredproc with more than... -
#25917 [Fbk->Opn]: odbc_error() sometimes returns a bad string
ID: 25917 User updated by: thorsten at rinne dot info Reported By: thorsten at rinne dot info -Status: Feedback... -
How to get Line no. when error occurs?
Hi all! I have a problem in my VB6 component that is hard to understand.... Im using on error goto printErrReport In printErrReport i just... -
Error occurs in IIS 5 and Not IIS4
Suggest you attempt to Response.Write() the SQL statement you are sending to the database: Response.Write(strSQL) Response.End Cheers Ken ... -
#24244 [Fbk->NoF]: odbc_errormsg() sometimes returns a bad string when no error occurs
ID: 24244 Updated by: sniper@php.net Reported By: bl at btn dot de -Status: Feedback +Status: No...



Reply With Quote

