#21544 [Csd->Opn]: --with-mssql uses a lot of undeclared functions

From: Date: Wed, 14 Apr 2004 15:21:05 +0000
Subject: #21544 [Csd->Opn]: --with-mssql uses a lot of undeclared functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58127@lists.php.net to get a copy of this message
ID: 21544 Updated by: sean@php.net Reported By: php at dark-id dot de -Status: Closed +Status: Open Bug Type: MSSQL related Operating System: ANY PHP Version: 4.3.0 New Comment: re-opened. This is still happening (or again happening) for me. 4.3.6RC3 (and CVS HEAD (4_3)). Attached is a patch to fix this. I'm not a c guy, though, so please verify. S --- Index: ext/mssql/php_mssql.c =================================================================== RCS file: /repository/php-src/ext/mssql/php_mssql.c,v retrieving revision 1.86.2.31 diff -u -r1.86.2.31 php_mssql.c --- ext/mssql/php_mssql.c 30 Mar 2004 17:54:38 -0000 1.86.2.31 +++ ext/mssql/php_mssql.c 14 Apr 2004 15:18:18 -0000 @@ -336,7 +336,7 @@ dbsetlogintime(MS_SQL_G(connect_timeout)); if (MS_SQL_G(timeout) < 0) MS_SQL_G(timeout) = 60; dbsettime(MS_SQL_G(timeout)); - dbsetmaxprocs((SHORT)MS_SQL_G(max_procs)); + dbsetmaxprocs((int)MS_SQL_G(max_procs)); return SUCCESS; } Previous Comments: ------------------------------------------------------------------------ [2003-01-09 16:37:08] fmk@php.net This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Extended checks for where FreeTDS is installed has been added to the configure script ------------------------------------------------------------------------ [2003-01-09 08:42:20] nicos@php.net Even with the latest freetds, it looks: DBMSGHANDLE_PROC is not defined, DBERRHANDLE is redefined, DBSETOPT is redefined, and dbsetopt hasn't got enough argument at line: 502,511,564,615,624. ------------------------------------------------------------------------ [2003-01-09 08:25:47] nicos@php.net It looks this happen because it uses by default /usr/local/freetds/ even if it doesn't exist. Not enough verifications on the config.m4... Reclassifing. ------------------------------------------------------------------------ [2003-01-09 08:22:41] nicos@php.net Verified... Due to the changes of fmk... ------------------------------------------------------------------------ [2003-01-09 06:37:58] php at dark-id dot de compiling of php 4.3.0 terminates with ../php-4.3.0/ext/mssql/php_mssql.c: In function `zm_activate_mssql': ../php-4.3.0/ext/mssql/php_mssql.c:334: `SHORT' undeclared (first use in this function) ../php-4.3.0/ext/mssql/php_mssql.c:334: (Each undeclared identifier is reported only once ../php-4.3.0/ext/mssql/php_mssql.c:334: for each function it appears in.) when configured with --with-mssql. Any hints? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21544&edit=1

« previous php.bugs (#58127) next »