ID: 42266 Updated by: [EMAIL PROTECTED] Reported By: karasek at ceskyserver dot cz -Status: Open +Status: Assigned Bug Type: InterBase related Operating System: Linux 64-bit PHP Version: 5.2.4 -Assigned To: +Assigned To: abies New Comment:
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. Previous Comments: ------------------------------------------------------------------------ [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". ------------------------------------------------------------------------ [2007-08-29 08:43:14] ale dot pas at tiscali dot it Same problem here. See my comment on Bug #42089 ------------------------------------------------------------------------ [2007-08-22 15:51:55] karasek at ceskyserver dot cz Now I have done some tests and I'm sure, that the problem is related to the 64-bit platform - not to Firebird 2.0. I have tested 5.2.4RC2 on Kubuntu (32-bit) and the "InterBase: BLOB test" passed. Then, with the same version (5.2.4RC2) on CentOS (64-bit) "InterBase: BLOB test" failed. On both systems was installed the same version of Firebird... ------------------------------------------------------------------------ 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