Bug tracker

This ticket has been moved to our new tracker. Open Ticket PHPBB3-8795 now.

PHP Notice in captcha_factory.php => No Captcha (fix completed in vcs)

I received the following message on one of my boards:
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/captcha/captcha_factory.php on line 38: Only variables should be assigned by reference

I disabled debug for now, so users are still able to register, but I'd really like to have both, debug and new users.

Replacing the =& with = as per asinshesq in the forum worked.

Comments / History

Assigned ticket to user "Kellanved"

Action performed by Acyd Burn (Server Manager) on Oct 15th 2009, 09:24

Posted by Kellanved (Former Team Member) on Oct 15th 2009, 10:10

=& is correct, = incorrect. Could you please specify the the configuration when this happened?

Posted by Kellanved (Former Team Member) on Oct 15th 2009, 10:19

Might be that some php4 versions do not allow for call_user_func to return a reference, in which case we could either accept a copy to be created (using =) or use eval. I'm fond of neither solution.

Linked ticket with changeset: r10223

Action performed by Kellanved (Former Team Member) on Oct 15th 2009, 10:51

Changed ticket status from "New" to "Fix completed in SVN"

Action performed by Kellanved (Former Team Member) on Oct 15th 2009, 10:51

Linked ticket with changeset: r10224

Action performed by Kellanved (Former Team Member) on Oct 15th 2009, 10:52

Posted by Briani on Oct 15th 2009, 18:15

does php 5 allow =?

Posted by Briani on Oct 15th 2009, 18:24

Oh and u double posted a revision

Posted by bantu (3.0 Release Manager) on Oct 15th 2009, 18:31

does php 5 allow =?
This is a bug tracker, please stop posting (such) questions.

Oh and u double posted a revision
No, guess you have to look closer.

Ticket details

Related SVN changesets