PHP 4.0 Bug #4067 Updated: Fails to compile with EasySoft ODBC Bridge

From: Date: Tue, 11 Apr 2000 18:10:45 +0000
Subject: PHP 4.0 Bug #4067 Updated: Fails to compile with EasySoft ODBC Bridge
Groups: php.dev 
Request: Send a blank email to php-dev+get-17809@lists.php.net to get a copy of this message
ID: 4067 User Update by: jonathan@caedic.com Status: Open Bug Type: Compile Failure Description: Fails to compile with EasySoft ODBC Bridge I applied the following patch from Sandino Araico and this fixed the problem. --- php-4.0RC1-orig/ext/odbc/php_odbc.c Mon Mar 13 23:15:33 2000 +++ php-4.0RC1/ext/odbc/php_odbc.c Fri Apr 7 11:17:43 2000 @@ -846,10 +846,19 @@ char buf[4096]; int fp, nbytes; while(rc == SQL_NEED_DATA) { - rc = SQLParamData(result->stmt, (PTR FAR *)&fp); +/* The reported errors were parse error before FAR on both SQLParamData and + * SQLPutData; so I replaced them with the correct types from + * /usr/local/easysoft/oob/client/include/sql.h on lines 754 and 759 + */ + + /*rc = SQLParamData(result->stmt, (PTR FAR *)&fp);*/ + /* oob uses SQLPOINTER instead of (PTR FAR *) in SQLParamData */ + rc = SQLParamData(result->stmt, (SQLPOINTER *)&fp); if (rc == SQL_NEED_DATA) { while((nbytes = read(fp, &buf, 4096)) > 0) - SQLPutData(result->stmt,(UCHAR FAR*) &buf, nbytes); + /*SQLPutData(result->stmt,(UCHAR FAR*) &buf, nbytes);*/ + /* oob uses SQLPOINTER instead of (UCHAR FAR *) in SQLPutData */ + SQLPutData(result->stmt, (SQLPOINTER)&buf, nbytes); } } } else { -Jonathan Younger jonathan@caedic.com Full Bug description available at: http://bugs.php.net/?id=4067

« previous php.dev (#17809) next »