Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1090

Use PHP 5.2 compatible constructor signature in custom Exception classes

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0-RC1
    • Fix Version/s: 5.2.0
    • Component/s: PHP Compatibility
    • Labels:
      None

      Description

      In In-Portal 5.1.2 we've introduced e-mail event syntax check before saving (see #0000822) to prevent user from getting Fatal Error due incorrect template syntax when e-mail event will be sent.

      However if you'll have a project were e-mail email events have template syntax errors in them and you upgrade this project to 5.1.2 then you still get Fatal Error, when trying to send out that e-mail event (because no automatic way to fix e-mails events, that are broken).
      Also when trying to enable/disable these e-mail events from e-mail event list you'll get "Query method undefined" error and selected e-mail events will still be in same status as before.

      Template syntax checking code was reworked in 5.2.0-RC1 to use PHP exceptions ([url]http://lv.php.net/manual/en/language.exceptions.php[/url]), but by mistake this code was made PHP 5.3.0+ compatible only (see [url]http://lv.php.net/manual/en/exception.construct.php[/url]) due $previous parameter usage, that was added only in PHP 5.3.0.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: