ID:               41429
 Comment by:       kgbfernando at yahoo dot com dot br
 Reported By:      idvis at seznam dot cz
 Status:           Assigned
 Bug Type:         InterBase related
 Operating System: WinXPPro, Win2000Pro
 PHP Version:      5.2.2
 Assigned To:      abies
 New Comment:

PHP Bug? 

See below that the codes is differs from version 5.2.1 to earlier:


The PHP 5.2.1 code 

char *_php_ibase_quad_to_string(ISC_QUAD const qd) /* {{{ */
{
        char *result = (char *) emalloc(BLOB_ID_LEN+1);

        /* shortcut for most common case */
        if (sizeof(ISC_QUAD) == sizeof(ISC_UINT64)) {
                sprintf(result, "0x%0*" LL_MASK "x", 16, *(ISC_UINT64*)(void *)
&qd);
        } else {
                ISC_UINT64 res = ((ISC_UINT64) qd.gds_quad_high << 0x20) |
qd.gds_quad_low;
                sprintf(result, "0x%0*" LL_MASK "x", 16, res);
        }
        result[BLOB_ID_LEN] = '\0';
        return result;
}
/* }}} */




The PHP 5.2.3 or 5.2.2

char *_php_ibase_quad_to_string(ISC_QUAD const qd) /* {{{ */
{
        char *result;

        /* shortcut for most common case */
        if (sizeof(ISC_QUAD) == sizeof(ISC_UINT64)) {
                spprintf(&result, BLOB_ID_LEN+1, "0x%0*" LL_MASK "x", 16,
*(ISC_UINT64*)(void *) &qd);
        } else {
                ISC_UINT64 res = ((ISC_UINT64) qd.gds_quad_high << 0x20) |
qd.gds_quad_low;
                spprintf(&result, BLOB_ID_LEN+1, "0x%0*" LL_MASK "x", 16, res);
        }
        return result;
}
/* }}} */


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

[2007-07-12 19:16:14] [EMAIL PROTECTED]

Confirmed. I can reproduce the bug too.

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

[2007-06-25 02:34:01] david at edumate dot com dot au

We have the same issue, after upgrading from 5.2.0 to 5.2.3.

Running in Apache 2, SuSE 10.2

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

[2007-06-13 22:35:04] ilpochta at gmail dot com

Maybe this change
http://cvs.php.net/viewvc.cgi/php-src/ext/interbase/ibase_blobs.c?r1=1.12&r2=1.13
broked ibase_blob_*() functionality?

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

[2007-05-24 19:39:58] chechelopez at gmail dot com

Same problem, this was really a headache
Please Help

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

[2007-05-20 23:59:16] cristiano dot soares at netwizard dot com dot br

Hi,

I'm migrating from 5.2.1 to 5.2.2 and I got the same error.

I'm using win2000 sp4 FB 2.0

Help us please

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

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

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

Reply via email to