Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.3.2

Bug #14110 Container.php broken
Submitted: 2008-06-09 10:46 UTC
From: mpgjunky Assigned: avb
Status: Closed Package: HTML_QuickForm2 (version 0.2.0)
PHP Version: 5.1.6 OS: Fedora 6
Roadmaps: (Not assigned)    
Subscription  


 [2008-06-09 10:46 UTC] mpgjunky (Michael Mussulis)
Description: ------------ Bundled example scripts fail. php build: Configure Command => './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/usr/share/file/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--enable-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-ncurses=shared' '--with-gd=shared' '--enable-bcmath=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/bin/mysql_config' '--enable-dom=shared' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--enable-fastcgi' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-readline' Test script: --------------- See bundled eamples Expected result: ---------------- Scripts to work Actual result: -------------- [Mon Jun 09 13:29:21 2008] [error] [client 85.204.19.221] PHP Fatal error: Call to protected method HTML_QuickForm2_Element::updateValue() from context 'HTML_QuickForm2_Container' in /usr/share/pear/HTML/QuickForm2/Container.php on line 399

Comments

 [2008-06-09 11:49 UTC] avb (Alexey Borzov)
That's not a bug in QuickForm2 but rather a bug in PHP 5.0 and 5.1 branches, see http://bugs.php.net/bug.php?id=37632 Thanks for the report anyway, we should definitely update the PHP dependency in package.xml to PHP 5.2
 [2008-06-09 18:34 UTC] mpgjunky (Michael Mussulis)
Thanks for the swift response. I suspected as much, cause on my Windows dev box I am running php 5.2.4 and it's working fine.
 [2009-09-09 00:01 UTC] avb (Alexey Borzov)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2009-11-02 15:09 UTC] lekiwi (regis savry)
I have still the same problem using php 5.1.6. As far as I can see 0-3-0 has not fixed this issue. Is there another package that I need to update to fix this ? Fatal error: Call to protected method HTML_QuickForm2_Element::updateValue() from context 'HTML_QuickForm2_Container' in /www/110mb.com/l/e/s/k/i/w/i/s/leskiwis/htdocs/HTML/QuickForm2/Container.php on line 411
 [2009-11-02 15:20 UTC] mansion (Bertrand Mansion)
-Status: Closed +Status: Feedback
It looks like 5.1.6 is still installed everywhere, probably because of Linux distros not updating their packages. Maybe we should have a workaround for this PHP bug with 5.1.6 ?
 [2009-11-02 15:53 UTC] avb (Alexey Borzov)
I don't see any workaround here short of defining all methods public, unfortunately. And I don't want to do *that* to support a 3+ year-old PHP version. :] Anyway, how did lekiwi install the package in the first place? It should have 5.2.0 as dependency in package.xml
 [2009-12-02 15:05 UTC] lekiwi (regis savry)
well my current (and temporary) host does not support PEAR so I basically re-create the all PEAR directory in my site. I developed the site on my local machine using PHP 5.2 I have changed the attribute of updateValue() from private to pubic in all the files that I got a complaint from (5 in all I think) and it worked ok now. thanks for Bertrand for suggesting this quick fix. have a good day!.
 [2010-07-09 13:51 UTC] cweiske (Christian Weiske)
-Status: Feedback +Status: Closed