PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #2237

QuickForm crashes Apache

Details

Submitted2004-08-27 11:26 UTC
Fromeruff at web dot de
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.8
OSHP-UX 11.11
Roadmaps(Not assigned)

Comments

[2004-08-27 11:26 UTC] eruff at web dot de

Description:
------------
Installed are the following packages:

HTML_Common 1.2.1 stable
HTML_QuickForm 3.2.3 stable
HTML_QuickForm_Controller 1.0.2 stable

I tried to instantiate a QuickForm object (see code below).

Apache 2.0.50 gives the following message:

# ./apachectl start
./apachectl[172]: 14032 Bus error

tusc output shows that the error occurs in the class HTML_QuickForm_Renderer

Configure options:
'./configure' '--prefix=/opt/hpws/apache/php' '--enable-so' '--with-apxs2=/opt/hpws/apache/bin/apxs' '--with-apache2=/opt/hpws/apache'

Reproduce code:
---------------
<?php
// Load the main class
require_once 'HTML/QuickForm.php';

// Instantiate the HTML_QuickForm object
$form = new HTML_QuickForm('firstForm');

// Set defaults for the form elements
$form->setDefaults(array(
'name' => 'Joe User'
));

// Add some elements to the form
$form->addElement('header', null, 'QuickForm tutorial example');
$form->addElement('text', 'name', 'Enter your name:', array('size' => 50, 'maxle
ngth' => 255));
$form->addElement('submit', null, 'Send');

// Output the form
$form->display();
?>

Actual result:
--------------
output from tusc:

p , $ r e q u i r e d , $ e r r o r ) \n { \n
r e t u r n ; \n } / / e n d f u n c s t
a r t G r o u p \n\n / * * \n * C a l l e d w h
e n v i s i t i n g a g r o u p , a f t e r p r o c e
s s i n g a l l g r o u p e l e m e n t s \n * \n
* @ p a r a m o b j e c t A n H T M
L _ Q u i c k F o r m _ g r o u p o b j e c t b e i n g v
i s i t e d \n * @ a c c e s s p u b l i c \n
* @ r e t u r n v o i d \n * @ a b s t r
a c t \n * / \n f u n c t i o n f i n i s h G r
o u p ( & $ g r o u p ) \n { \n r e t u r
n ; \n } / / e n d f u n c f i n i s h G r o u p
\n} / / e n d c l a s s H T M L _ Q u i c k F o r m _ R
e n d e r e r \n? > \n
[14072] read(9, 0x402acc40, 8192) ................................ = 0
[14072] close(9) ................................................. = 0
[14072] Received signal 10, SIGBUS, in user mode, [SIG_DFL], partial siginfo
[14072] Siginfo: si_code: I_NONEXIST, faulting address: 0x7aeee028, si_errno
: 0
[14072] PC: 0xc095352b, instruction: 0x6bd33fc1
[14072] exit(10) [implicit] ...................................... WIFSIGNALED(S
IGBUS)

backtrace from gdb:

#143 0xc09540d8 in match () from /opt/hpws/apache/modules/libphp4.so
#144 0xc0955308 in match () from /opt/hpws/apache/modules/libphp4.so
#145 0xc0953628 in match () from /opt/hpws/apache/modules/libphp4.so
#146 0xc09540d8 in match () from /opt/hpws/apache/modules/libphp4.so
#147 0xc0953924 in match () from /opt/hpws/apache/modules/libphp4.so
#148 0xc0957d0c in php_pcre_exec () from /opt/hpws/apache/modules/libphp4.so
#149 0xc095a078 in php_pcre_replace () from /opt/hpws/apache/modules/libphp4.so
#150 0xc095a900 in php_replace_in_subject ()
from /opt/hpws/apache/modules/libphp4.so
#151 0xc095afc0 in preg_replace_impl ()
from /opt/hpws/apache/modules/libphp4.so
#152 0xc0a6ca74 in execute () from /opt/hpws/apache/modules/libphp4.so
#153 0xc0a6cd2c in execute () from /opt/hpws/apache/modules/libphp4.so
#154 0xc0a6cd2c in execute () from /opt/hpws/apache/modules/libphp4.so
#155 0xc0a6cd2c in execute () from /opt/hpws/apache/modules/libphp4.so
#156 0xc0a6cd2c in execute () from /opt/hpws/apache/modules/libphp4.so
# 57 0xc0a6cd2c in execute () from /opt/hpws/apache/modules/libphp4.so
# 58 0xc0a6cd2c in execute () from /opt/hpws/apache/modules/libphp4.so
# 59 0xc0a531c8 in zend_execute_scripts ()
# from /opt/hpws/apache/modules/libphp4.so
# 60 0xc0a0ad88 in php_execute_script ()
# from /opt/hpws/apache/modules/libphp4.so
# 61 0xc0a7615c in php_handler () from /opt/hpws/apache/modules/libphp4.so
# 62 0x000447ec in ap_run_handler ()
# 63 0x00045260 in ap_invoke_handler ()
# 64 0x0003d148 in ap_process_request ()
# 65 0x000368bc in ap_process_http_connection ()
# 66 0x00051ea4 in ap_run_process_connection ()
# 67 0x00052404 in ap_process_connection ()
# 68 0x0003eb84 in process_socket ()
# 69 0x0003f8b4 in worker_thread ()
# 70 0xc04a170c in dummy_worker () from /opt/hpws/apache/lib/libapr-0.sl.9