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

Char transform cache file is not valid PHP

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Medium Medium
    • 4.0.0rc1, 4.0.1
    • 3.8.3, 4.0.0trunk
    • Misc
    • None
    • Version: 3.8.3 unicode setup
      PHP Version: 4.4.x
      Webserver:
      Database:

    Description

      When entering class/edit a char transform cache file is generated (cache/trans/g-identifier-...-utf8.ctt.php). The second time you access this view the cache file is executed by eZCharTransform::executeCacheFile by a simple include.

      The cache file however is not valid. If you put everything in comments after the value assignment to $data (which should be valid) you will get a parse error: unexpected T_STRING, expecting ')'.

      Most probably it has something to do with these $data['table'] array values in the cache file (the parse error happens on the assignment of the Ö® key):

          'Ö°' => '',
          'Ö¯' => '
          'Ö®' => '
          'Ö­' => '
          'Ö¬' => '
          'Ö«' => '
          'Öª' => '
          'Ö©' => '
          '¨' => '
          'Ö§' => '
          '¦' => '
          'Ö¥' => '
          '¤' => '
          'Ö£' => '
          'Ö¡' => '
          '� ' => '
          'Ö¾' => '
          'Ö¸' => '
          '' => '
          'Ö½' => '
          '›' => '
          'Ö¨' => '
          '™' => '
          '˜' => '
          '—' => '
          '–' => '
          '•' => '
          '”' => '
          '“' => '
          '’' => '
          '‘' => '
          'Ô´' => '',
      

      On PHP4 you normally won't see anything of this bug, but on PHP5 the content of the cache file will be displayed on the screen.

      Attachments

        1. i18n-fix.diff
          0.8 kB
        2. z.php
          0.6 kB

        Activity

          People

            oh oh
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: