Bug #10854: Crash on script timeout with ODBC functions
| From: | Vladimir dot Michl at seznam dot cz | Date: | Mon, 14 May 2001 15:59:40 +0000 |
| Subject: | Bug #10854: Crash on script timeout with ODBC functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55181@lists.php.net to get a copy of this message | ||
From: Vladimir.Michl@seznam.cz
Operating system: any WINDOWS
PHP version: 4.0.5
PHP Bug Type: Reproducible crash
Bug description: Crash on script timeout with ODBC functions
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.
--
Edit Bug report at: http://bugs.php.net/?id=10854&edit=1