php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10854 Crash on script timeout with ODBC functions
Submitted: 2001-05-14 11:59 UTC Modified: 2001-06-18 09:45 UTC
From: Vladimir dot Michl at seznam dot cz Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.5 OS: any WINDOWS
Private report: No CVE-ID: None
 [2001-05-14 11:59 UTC] Vladimir dot Michl at seznam dot 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-30 09:04 UTC] kalowsky@php.net
are you using IIS with the ISAPI plugin?  

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).
 [2001-06-18 09:45 UTC] kalowsky@php.net
no feedback from user.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC