ID:               38702
 Updated by:       [EMAIL PROTECTED]
 Reported By:      prashant dot bhandare at nbcuni dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Compile Warning
 Operating System: RedHat EL release 4 (Nahant 3)
 PHP Version:      5.1.6
-Assigned To:      
+Assigned To:      kalowsky


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

[2006-09-03 21:15:11] prashant dot bhandare at nbcuni dot com

Description:
------------
Hi ,

We are using Data Direct ODBC evaluation copy and getting 
multiple errors with data "warning: passing arg 1 of `****' makes
integer from pointer without a cast" during php compilation with odbc.

Below some errors from top :

/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In
function `_free_odbc_result':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:184:
warning: passing arg 1 of `SQLFreeStmt' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In
function `safe_odbc_disconnect':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:202:
warning: passing arg 1 of `SQLDisconnect' makes integer fro
m pointer without a cast



Please help.

Reproduce code:
---------------
./configure --with-apxs2=/opt/shared/ws/2.0.54/wsphp01_01/bin/apxs
--with-zlib=/usr --with-png=/usr/include --without-sqlite --prefix=/usr
--with-config-file-path=/etc  --enable-sigchild
--with-custom-odbc=/opt/odbc32v52

Expected result:
----------------
No warnings

Actual result:
--------------
With ODBC warnings -

/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In
function `_free_odbc_result':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:184:
warning: passing arg 1 of `SQLFreeStmt' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In
function `safe_odbc_disconnect':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:202:
warning: passing arg 1 of `SQLDisconnect' makes integer fro
m pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:205:
warning: passing arg 1 of `SQLTransact' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:205:
warning: passing arg 2 of `SQLTransact' makes integer from
pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:206:
warning: passing arg 1 of `SQLDisconnect' makes integer fro
m pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In
function `_close_odbc_conn':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:233:
warning: passing arg 1 of `SQLFreeConnect' makes integer fr
om pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:234:
warning: passing arg 1 of `SQLFreeEnv' makes integer from p
ointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c: In
function `_close_odbc_pconn':
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:261:
warning: passing arg 1 of `SQLFreeConnect' makes integer fr
om pointer without a cast
/opt/install_soft_jboss4.0/php/php-5.1.6/ext/odbc/php_odbc.c:262:
warning: passing arg 1 of `SQLFreeEnv' makes integer from p
ointer without a cast



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


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

Reply via email to