php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57366 Timeouts with HTML_QuickForm
Submitted: 2006-11-09 15:09 UTC Modified: 2011-09-18 13:08 UTC
From: mjh at hodginsmedia dot com Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.2.0 RC4 OS: Windows 2000 Server
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-11-09 15:09 UTC] mjh at hodginsmedia dot com
Description:
------------
Windows 2000 Server SP4
Apache 2.2.3 (running via console)
APC version 5.2.0 (php_apc.dll 2006-09-25 10:09:49)
PHP Version 5.2.1-dev 

On first load, the sample code runs fine and generates a simple form.  Reload again, and you'll get a long pause followed by this timeout error:

If I turn off APC, then PEAR's HTML_QuickForm runs fine.

The relevant section of PHP.INI looks like:
[PHP_APC]
extension=php_apc.dll
apc.enabled=1

Only the php_mysqli.dll and php_mysql.dll extensions are loaded in addition to APC.

If I can provide you with any further information, please let me know.

Reproduce code:
---------------
<?php
require_once 'HTML/QuickForm.php';
$form = new HTML_QuickForm();
$form->addElement('header', null, 'Form Example');
$form->addElement('text', 'my_search', 'Search for:');
$form->addElement('submit', null, 'Submit');
$form->display();
?>

Expected result:
----------------
A simple form from HTML_QuickForm

Actual result:
--------------
Fatal error: Maximum execution time of 30 seconds exceeded in C:\PHP\PEAR\HTML\QuickForm.php on line 290

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-21 02:26 UTC] kalle@php.net
Any possibility that you can generate a trace to see where the execution hangs? Does this happen on other platforms than Windows?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 16:01:28 2024 UTC