ID:               42266
 Updated by:       [EMAIL PROTECTED]
 Reported By:      karasek at ceskyserver dot cz
 Status:           Assigned
 Bug Type:         InterBase related
 Operating System: Linux 64-bit
 PHP Version:      5.2.4
 Assigned To:      abies
 New Comment:

"You're maybe right, but the bug appeared in 5.2.4 while 5.2.1. works
fine, something has changed in PHP, not in firebird."

I meant support as in 2nd level support not for the quality of the
driver :)

About the handle question, it is how they do it in firebird itself. A
quick search in codesearch:

http://google.com/codesearch?q=lang%3Ac+typedef+FB_API_HANDLE&hl=en&btnG=Search+Code

So the problem is somewhere else, but I can't help as I don't use
firebird. Let wait a bit more for the maintainers answer.



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

[2008-05-16 06:39:45] ale dot pas at tiscali dot it

You're maybe right, but the bug appeared in 5.2.4 while 5.2.1. works
fine, something has changed in PHP, not in firebird.

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

[2008-05-15 09:42:35] [EMAIL PROTECTED]

Let get it assigned. It will certainly help to bring some love here.

> It's a pity we choose PHP for almost all of our projects, do not
make
> this error, choose Java, Python or Ruby you will find a better
support
> there.

I doubt you will find better ibase support anywhere but InterBase
directly. That's the main problem here, not PHP.

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

[2008-05-15 09:35:39] ale dot pas at tiscali dot it

Ok, after 10 months this bug is sill open without a comment from a
developer.

This clearly proves that PHP is definitely not ready for enterprise
solutions.

It's a pity we choose PHP for almost all of our projects, do not make
this error, choose Java, Python or Ruby you will find a better support
there.

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

[2008-02-12 05:32:12] info at olemera dot com

Is the a new patch for the (64-bit
version) with Firebird 2.0 ? I get an integer Error.
Regards,
http://www.olemera.com/loans/home-loans/integer-home-loans/
[url=http://www.olemera.com/loans/home-loans/integer-home-loans/]Olemera[/url]

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

[2007-09-05 12:52:43] karasek at ceskyserver dot cz

Hi,
I have some new informations. When I compile PHP on the 64-bit
architecture, I get this warnings:

/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c: In function
'_php_ibase_free_blob':
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:41: warning:
comparison between pointer and integer
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_create':
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:223:
warning: assignment makes integer from pointer without a cast
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_open':
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:267:
warning: assignment makes integer from pointer without a cast
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c: In function
'_php_ibase_blob_end':
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:369:
warning: assignment makes integer from pointer without a cast
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:377:
warning: assignment makes integer from pointer without a cast
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_info':
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:409:
warning: initialization makes integer from pointer without a cast
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_echo':
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:485:
warning: initialization makes integer from pointer without a cast
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c: In function
'zif_ibase_blob_import':
/home/phobos/sources/php-5.2.4/ext/interbase/ibase_blobs.c:546:
warning: initialization makes integer from pointer without a cast

-- but I don't get them on 32-bit architecture.

I tryed to find out why. And this is the answer:

ibase.h: row 68:

#if defined(_LP64) || defined(__LP64__) || defined(__arch64__)
typedef unsigned int    FB_API_HANDLE;
#else
typedef void*           FB_API_HANDLE;
#endif

This means, that the type "FB_API_HANDLE" is pointer on 32-bit
architecture, but it's not a pointer on 64-bit architecture. So,
construction like:

FB_API_HANDLE what_ever = NULL;

Causes a warning on 64-bit architecture.

Note, that there are some "aliases":

typedef FB_API_HANDLE isc_att_handle;
typedef FB_API_HANDLE isc_blob_handle;
typedef FB_API_HANDLE isc_db_handle;
typedef FB_API_HANDLE isc_req_handle;
typedef FB_API_HANDLE isc_stmt_handle;
typedef FB_API_HANDLE isc_svc_handle;
typedef FB_API_HANDLE isc_tr_handle;

I belive, that this the "source of trouble".

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

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

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

Reply via email to