ID: 25118
Updated by: [EMAIL PROTECTED]
Reported By: php at jschreiber dot com
-Status: Open
+Status: Feedback
Bug Type: ODBC related
Operating System: GNU/Linux (Gentoo)
PHP Version: 4.3.2
New Comment:
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. :)
Previous Comments:
------------------------------------------------------------------------
[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;
------------------------------------------------------------------------
[2003-08-28 03:16:16] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2003-08-27 17:53:56] [EMAIL PROTECTED]
Try a snapshot of PHP 5
------------------------------------------------------------------------
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