ID: 25118
Updated by: [EMAIL PROTECTED]
Reported By: php at jschreiber dot com
Status: Open
Bug Type: ODBC related
Operating System: GNU/Linux (Gentoo)
PHP Version: 4.3.2
New Comment:
No sniper that isn't a typo that was to be there (wrt
REGISTER_LONG_CONSTANT).
Previous Comments:
------------------------------------------------------------------------
[2003-08-28 07:38:31] php at jschreiber dot com
uh, where and how would I use this constant? I'm definitely no
odbc programmer :(
anyway, just appying the patch didn't make any difference.
------------------------------------------------------------------------
[2003-08-28 05:57:25] [EMAIL PROTECTED]
There seemed to be some other typos in the patch Dan applied..need to
get response from him first.
You could try this patch to php_odbc.c:
- REGISTER_LONG_CONSTANT("SQL_BLOB", SQL_LONGVARBINARY,
CONST_PERSISTENT | CONST_CS);
+ REGISTER_LONG_CONSTANT("SQL_BLOB", SQL_BLOB, CONST_PERSISTENT |
CONST_CS);
(assuming you're using that constant in your script I am. :)
------------------------------------------------------------------------
[2003-08-28 05:02:05] php at jschreiber dot com
Sorry, guys...! It still doesn't work. I tried it with my "blobtest"
(http://www.jschreiber.com/php/blobtest/). the insert statement
gets executed, but the blob only contains an empty value (x'').
I uploaded a new db2 trace to
http://www.jschreiber.com/php/blobtest/db2trace_new.txt
I hope that helps you!! Again, thank you for trying to fix that. Jan
------------------------------------------------------------------------
[2003-08-28 04:55:49] [EMAIL PROTECTED]
Typo fixed. Thanks. :)
But does this version fix your original problem..?
------------------------------------------------------------------------
[2003-08-28 03:42:01] php at jschreiber dot com
I downloaded php5 directly from cvs (using the gentoo php-cvs
portage), and there seems to be a typo in
php5/ext/odbc/php_odbc.c, line 1433:
433c1433
< sql_c-type = SQL_C_BINARY;
---
> sql_c_type = SQL_C_BINARY;
------------------------------------------------------------------------
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
http://bugs.php.net/25118
--
Edit this bug report at http://bugs.php.net/?id=25118&edit=1