#261 ✓resolved
merovinq

Infinitas does not work on php 5.2 because of the lcfirst function used in core/events/libs/events.php line 226

Reported by merovinq | August 11th, 2011 @ 04:06 PM

/**

     * Loads list of available event handlers in a event object
     *
     * @param object $Event
     * @access private
     */
    protected function _getAvailableHandlers($Event){
        if(is_object($Event)){
            $_this =& EventCore::getInstance();

            $reflection = new ReflectionClass($Event);
            $classMethods = array_filter($reflection->getMethods(), create_function('$v', 'return $v->class == "'.get_class($Event).'" && substr($v->name, 0, 2) == "on";'));

            $handlers = array_map(create_function('$v', 'return lcfirst(substr($v->name, 2));'), $classMethods);

            foreach($handlers as $handlerName){
                    $_this->_eventHandlerCache[$handlerName][] = get_class($Event);
            }
        }
    }

Comments and changes to this ticket

  • merovinq

    merovinq August 11th, 2011 @ 04:09 PM

    Also error on my debian 5.2 box is: Fatal error: Call to undefined function lcfirst() in /var/www/infinitas/core/events/libs/events.php(226) : runtime-created function on line 1

  • dakota

    dakota August 23rd, 2011 @ 04:00 PM

    • State changed from “new” to “resolved”
    • Assigned user set to “dakota”

    This has been closed in commit 87c9695d7fc61261b1df11eef06d3c69925c699f

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Please use this for the current version of Infinitas only, if you are using a older version of the Infinitas report bugs in that project.

Please submit bugs only as pending, and if its a feature request submit the ticket with the milestone "Feature Requests".

Shared Ticket Bins

People watching this ticket

Pages