[PEAR-BUG] Bug #18090 [Opn]: Error of loading captcha "undefined method"

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18090&edit=1

 ID:               18090
 Updated by:       [email protected]
 Reported By:      ksoze3 at gmail dot com
 Summary:          Error of loading captcha "undefined method"
 Status:           Open
 Type:             Bug
 Package:          HTML_QuickForm_CAPTCHA
 Operating System: all
 Package Version:  0.3.0
 PHP Version:      5.3.3
-Assigned To:      
+Assigned To:      kguest
 Roadmap Versions: 
 New Comment:

-Assigned To:
+Assigned To: kguest



Previous Comments:
------------------------------------------------------------------------

[2011-03-21 00:02:07] hitzi

hello,

the fix is also working under Debian Squeeze. I will test it also under
Debian Lenny.

So please fix it.

Thanks in advance,
Chris

------------------------------------------------------------------------

[2011-02-18 08:55:13] raziel057

I'm having the same problem. 

There is no maintenance on this pakage? Correction can be made easily
and quickly.

Is it possible for me to connect to your CVS to commit the fix?

------------------------------------------------------------------------

[2010-11-30 15:41:01] ksoze

Description:
------------
"Call to undefined method
HTML_QuickForm_CAPTCHA_Image::HTML_QuickForm_CAPTCHA_Image()"

HTML\QuickForm\CAPTCHA\Image.php

tmp Fix: create a constructor and call the parent properly insert below
line 85 i recommand:


    /**
     * php 5.3 fix
     *
     * @param unknown_type $elementName
     * @param unknown_type $elementLabel
     * @param unknown_type $options
     * @param unknown_type $attributes
     * @return HTML_QuickForm_CAPTCHA_Image
     */
    function HTML_QuickForm_CAPTCHA_Image( $elementName = null, 
    	$elementLabel = null, $options = null, $attributes = null){
    	parent::HTML_QuickForm_CAPTCHA( $elementName, $elementLabel,
$options, $attributes );
    }

Test script:
---------------
Default example code gives this error

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18090&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.