ID:               21279
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         ODBC related
 Operating System: Windows
 PHP Version:      4.3.0
 New Comment:

commited.


Previous Comments:
------------------------------------------------------------------------

[2003-02-06 19:39:47] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

This bug still happening, the solution is here in this diff. Please
commit it because I do not have enough karma to do it myself.

Hope This Helps,

Ernani Joppert Pontes Martins


Index: php_odbc.c
===================================================================
RCS file: /repository/php4/ext/odbc/php_odbc.c,v
retrieving revision 1.153
diff -c -r1.153 php_odbc.c
*** php_odbc.c  24 Jan 2003 22:40:38 -0000      1.153
--- php_odbc.c  7 Feb 2003 01:38:46 -0000
***************
*** 1589,1595 ****
                                if (rc == SQL_SUCCESS_WITH_INFO) {
                                        Z_STRLEN_P(tmp) = result->longreadlen;
                                } else if (result->values[i].vallen == SQL_NULL_DATA) 
{
!                                       Z_STRVAL_P(tmp) = IS_NULL;
                                        break;
                                } else {
                                        Z_STRLEN_P(tmp) = result->values[i].vallen;
--- 1589,1595 ----
                                if (rc == SQL_SUCCESS_WITH_INFO) {
                                        Z_STRLEN_P(tmp) = result->longreadlen;
                                } else if (result->values[i].vallen == SQL_NULL_DATA) 
{
!                                       ZVAL_NULL(tmp);
                                        break;
                                } else {
                                        Z_STRLEN_P(tmp) = result->values[i].vallen;
***************
*** 1599,1605 ****
  
                        default:
                                if (result->values[i].vallen == SQL_NULL_DATA) {
!                                       Z_STRVAL_P(tmp) = IS_NULL;
                                        break;
                                }
                                Z_STRLEN_P(tmp) = result->values[i].vallen;
--- 1599,1605 ----
  
                        default:
                                if (result->values[i].vallen == SQL_NULL_DATA) {
!                                       ZVAL_NULL(tmp);
                                        break;
                                }
                                Z_STRLEN_P(tmp) = result->values[i].vallen;


------------------------------------------------------------------------

[2003-01-31 13:44:39] [EMAIL PROTECTED]

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-01-16 10:56:03] [EMAIL PROTECTED]

It should contain it.  You can look into the code though and see for
yourself just to ensure.  The fix is in the points that you suggested,
but if it's not working I'm not sure what to tell you other than wait. 


------------------------------------------------------------------------

[2003-01-06 23:03:13] [EMAIL PROTECTED]

I just tried Win32 build of PHP 4.4.0-dev taken from snaps.php.net
(php4-win32-200301062330.zip) and it is working the same. It looked
like the fix would solve the problem but it works as if the fix was not
applied. Isn't that build supposed to include the fix?

------------------------------------------------------------------------

[2003-01-06 12:11:01] [EMAIL PROTECTED]

Try a snapshot dated sometime after this.  I believe it does what you
want/desire.  If not many complaints happen I'll leave it in... 

------------------------------------------------------------------------

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/21279

-- 
Edit this bug report at http://bugs.php.net/?id=21279&edit=1

Reply via email to