Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15148

Strict: Non-static method eZContentObject::cacheInfo() should not be called statically

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • Future
    • 4.0.6, 4.1.3, 4.2.0beta1
    • Misc
    • None

    Description

      The offender is pdf module - the only user of that code...

      Non-static method eZContentObject::cacheInfo() should not be called statically, assuming $this from incompatible context in C:\www\trunk\kernel\content\pdf.php on line 107

      Patch:

      Index: kernel/classes/ezcontentobject.php
      ===================================================================
      --- kernel/classes/ezcontentobject.php	(revision 24108)
      +++ kernel/classes/ezcontentobject.php	(working copy)
      @@ -5378,7 +5378,7 @@
           /*!
            \return a structure with information required for caching.
           */
      -    function cacheInfo( $Params )
      +    static function cacheInfo( $Params )
           {
               $contentCacheInfo =& $GLOBALS['eZContentCacheInfo'];
               if ( !isset( $contentCacheInfo ) )
      

      Attachments

        Activity

          People

            unknown unknown
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: