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

Use Template Parser own DB connection, not one from current Page object

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0-B1
    • Fix Version/s: 5.2.0
    • Component/s: Template System
    • Labels:
      None

      Description

      In PHP 5.3.1+ some OOP internals code was changed (see [url]http://php.net/manual/en/language.oop5.visibility.php[/url]) resulting in ability for 2 classes sharing same parent class being able to access protected parent class properties.

      This seemed a bug to me and some other PHP community members (see [url]https://bugs.php.net/bug.php?id=50892[/url] and [url]http://youtrack.jetbrains.com/issue/WI-11713?projectKey=WI[/url]) at first, but it's how it works and nobody seem to disagree with it, since it's works in exactly same way as it works in Java, which is famous with it's OOP implementation.

      I'm talking about this here, because in In-Portal 5.2.x we've made some changes that create 1 line of code, where exactly this change is exploited resulting a fatal error (only in code that uses tag caching), when somebody installs In-Portal 5.2.0+ on his webserver, which has PHP version below 5.3.1.
      I'm attaching a patch for users, who want to use In-Portal 5.2.0+ installation (+tag caching) on PHP 5.2.x and above.

        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: