Re: [PHP4BETA] IIS4, ISAPI, NT4(SP5), PHP (ODBC problems)
| From: | Gerry High | Date: | Sun, 20 Feb 2000 14:27:05 +0000 |
| Subject: | Re: [PHP4BETA] IIS4, ISAPI, NT4(SP5), PHP (ODBC problems) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10521@lists.php.net to get a copy of this message | ||
The problem you are having with ODBC connections can be fixed in your code b
y explicitly calling odbc_free_result on any and all results. By doing this
I've been able to reliably use the ISAPI version on Windows 2000/NT4. I've
used the ODBC connection to both Access 2000 and SQL 7. However, if you fai
l to call this statement your page will hang and crash the IIS server, so yo
u need to be pretty rigourous in applying this.
However, a general question to the group is when will this be fixed. It is
still in the daily builds (as of a few days ago). According to the document
ion you shouldn't have to call odbc_free_result.
Gerry High
----- Original Message -----
From: "Manuel Lemos" <mlemos@acm.org>
To: "Jean Flinois" <flynn@vtech.fr>
Cc: <php4beta@lists.php.net>
Sent: Tuesday, January 11, 2000 7:50 AM
Subject: Re: [PHP4BETA] IIS4, ISAPI, NT4(SP5), PHP
> Hello,
>
> On 11-Jan-00 11:18:29, you wrote:
>
> This happened to me too. My script just queries a database via ODBC and
> makes IIS4 hang on exit. The output is flushed to the client browser but
> it does not close the connection.
>
> I suppose that it is one of those memory corruption crashes when freeing
> any resources at the script exit. I wonder if is there a way to enable
> memory allocation debugging like under the Unix PHP that make useful error
> messages go to the Apache error log.
>
> BTW, does anybody have built PHP 4 to run with IIS but with debugging
> enabled?
>
> Regards,
> Manuel Lemos
>
> Web Programming Components using PHP Classes.
> Look at: http://phpclasses.UpperDesign.com/?user=mlemos@acm.org
> --
> E-mail: mlemos@acm.org
> URL: http://www.mlemos.e-na.net/
> PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
> --
>
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net