You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Chris Chabot (JIRA)" <ji...@apache.org> on 2009/02/23 15:55:02 UTC

[jira] Resolved: (SHINDIG-930) Unable to autoload exceptions

     [ https://issues.apache.org/jira/browse/SHINDIG-930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Chabot resolved SHINDIG-930.
----------------------------------

    Resolution: Fixed
      Assignee: Chris Chabot

Thanks for the report! 

I was trying to cut down on the number of files included (since this tends to end up being dog slow in php) but indeed the gadget exception is used all over the place, so putting this in the gadget.php file was probably not the best solution.

I've separated this class back out into the GadgetException.php file, so the error should go away now.

ps Standard disclaimer: The trunk is currently known to be unstable, so while I'm very grateful for the fix (and please keep those coming!) if you want to use php-shindig in production, please use the stable release branch instead: http://svn.apache.org/repos/asf/incubator/shindig/branches/1.0.x-incubating/

> Unable to autoload exceptions
> -----------------------------
>
>                 Key: SHINDIG-930
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-930
>             Project: Shindig
>          Issue Type: Bug
>          Components: PHP
>    Affects Versions: trunk
>            Reporter: Jakub Vrána
>            Assignee: Chris Chabot
>            Priority: Minor
>             Fix For: trunk
>
>         Attachments: shindig-930.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> __autoload() function expects that classes are defined in files of the same name. However it is not true for exceptions. The problem is for example with php/src/common/sample/BasicSecurityTokenDecoder.php which throws GadgetException which is not found by __autoload.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.