php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38702 Getting odbc warnings during compilations
Submitted: 2006-09-03 21:15 UTC Modified: 2008-07-17 01:23 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: prashant dot bhandare at nbcuni dot com Assigned: kalowsky (profile)
Status: Wont fix Package: Compile Warning
PHP Version: 5.1.6 OS: RedHat EL release 4 (Nahant 3)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: prashant dot bhandare at nbcuni dot com
New email:
PHP Version: OS:

 

 [2006-09-03 21:15 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-17 01:23 UTC] jani@php.net
Warnings are not errors -> wont fix.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC