Re: Bug #10854 Updated: Crash on script timeout with ODBC functions (fwd)
| From: | Vladimir Michl | Date: | Tue, 19 Jun 2001 07:46:08 +0000 |
| Subject: | Re: Bug #10854 Updated: Crash on script timeout with ODBC functions (fwd) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57227@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
- -------------------------------------------------------------------------
Vladimir Michl E-mail: Vladimir.Michl@seznam.cz
Czech Republic Web: http://www.penguin.cz/~michlv
Phone: +420 68 5391545
ISO-8859-2 compatibile Work phone: +420 68 5711219
Key fingerprint: D558 FF4F 468E 544F 7F43 E005 7E7C AD8F 2F69 9DA4
- ---------- Forwarded message ----------
Date: Fri, 1 Jun 2001 09:04:26 +0200 (CEST)
From: Vladimir Michl <Vladimir.Michl@seznam.cz>
To: Bug Database <php-dev@lists.php.net>
Subject: Re: Bug #10854 Updated: Crash on script timeout with ODBC functions
On 30 May 2001, Bug Database wrote:
> ID: 10854
> Updated by: kalowsky
> Reported By: Vladimir.Michl@seznam.cz
> Old-Status: Open
> Status: Feedback
> Bug Type: ODBC related
> Operating system:
> PHP Version: 4.0.5
> Assigned To:
> Comments:
>
> are you using IIS with the ISAPI plugin?
No, I using CGI version under command prompt and Apache.
I tryed this code under Czech Windows 2000 SR1 and Czech WINNT 4.0 SR6.
On both systems this code cause php message with time limit exceed and
Windows MessageBox Access Violation.
> On a system using Apache 1.3.19/Win32, PHP 4.0.5, and MSSQL2000 it produces a fatal PHP error,
> but no crash (thanks to Matt White for testing this).
>
> Previous Comments:
> ---------------------------------------------------------------------------
>
> [2001-05-14 11:59:40] Vladimir.Michl@seznam.cz
> There is script. Replace sdczal in odbc_connect with any ODBC alias and PLC_CLHPRESS with any
> table from alias.
>
> <?php
>
> $db = odbc_connect("sdczal", "", "");
>
> while(1){
> $res = odbc_exec($db, "select * from PLC_CLHPRESS;");
>
> };
>
> odbc_close($db);
> ?>
>
> There is related directives from php.ini:
> max_execution_time = 10 ; Maximum execution time of each script, in seconds
> memory_limit = 50M ; Maximum amount of memory a script may consume (8MB)
>
> When execution time exceed PHP crash with Access violation.
- -------------------------------------------------------------------------
Vladimir Michl E-mail: Vladimir.Michl@seznam.cz
Czech Republic Web: http://www.penguin.cz/~michlv
Phone: +420 68 5391545
ISO-8859-2 compatibile Work phone: +420 68 5711219
Key fingerprint: D558 FF4F 468E 544F 7F43 E005 7E7C AD8F 2F69 9DA4
- ------------ Output from gpg ------------
gpg: Good signature from "Vladimir Michl <Vladimir.Michl@linux.cz>"
gpg: aka "Vladimir Michl <Vladimir.Michl@seznam.cz>"
gpg: aka "Vladimir Michl <michlv@penguin.cz>"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine
iQEXAwUBOy8DRH58rY8vaZ2kFAOiqwP/UJLBZJJ0hZp6ekRtyz3/8xxx45sQFJnj
8lqROMzXn4Hlaao+PyK5cbEI9RwSD8vWL2iv3Qh8xqIaXkqBDRepo8rQRQBp0Pq6
T+WZTDJhJj7kYhjzHA9YBDnnwx4+klN+89+PqBh02D1PdS9hA9NBL8d+lIkBVzar
Z9NSFQTZEgID/0HwXbSCe1yndM9Fg351yCXE1k9XI38QmuwrJzXvDxTttR/PI30T
r0Ch4iPbmrsnbkl0RTZuH/2szk4zqJY0xyeMd1zXBTPS+Pz5GiyXThbhLPzSz1cr
/T0jabJk+cP8kQpwlC14WzJRGoy7FtoAPHcbgQ6B/p93tLsYb5+rIGej
=MzYC
-----END PGP SIGNATURE-----