You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Jeremy French (Created) (JIRA)" <ji...@apache.org> on 2011/12/14 19:23:30 UTC
[jira] [Created] (CMIS-487) PHP Exceptions cause error
PHP Exceptions cause error
--------------------------
Key: CMIS-487
URL: https://issues.apache.org/jira/browse/CMIS-487
Project: Chemistry
Issue Type: Bug
Components: cmis-phplib
Affects Versions: PHPCMIS 0.2
Reporter: Jeremy French
Priority: Minor
If a method is called which dosn't have an implementation the code
<code>
throw Exception("Not Implemented");
</code>
is run. However this is not valid PHP as it thinks that Exceptions is a function name rather than an object. The code should read.
<code>
throw new Exception("Not Implemented");
</code>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CMIS-487) PHP Exceptions cause error
Posted by "Jeremy French (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CMIS-487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeremy French updated CMIS-487:
-------------------------------
Attachment: CMIS-487.patch
This is patch for issue.
> PHP Exceptions cause error
> --------------------------
>
> Key: CMIS-487
> URL: https://issues.apache.org/jira/browse/CMIS-487
> Project: Chemistry
> Issue Type: Bug
> Components: cmis-phplib
> Affects Versions: PHPCMIS 0.2
> Reporter: Jeremy French
> Priority: Minor
> Fix For: PHPCMIS 0.2
>
> Attachments: CMIS-487.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> If a method is called which dosn't have an implementation the code
> <code>
> throw Exception("Not Implemented");
> </code>
> is run. However this is not valid PHP as it thinks that Exceptions is a function name rather than an object. The code should read.
> <code>
> throw new Exception("Not Implemented");
> </code>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira