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

Namespace support : backslash is not escaped in generated class name

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.7.0alpha1
    • None
    • Misc
    • None
    • Operating System:
      PHP Version: 5.3.x
      Database and version:
      Browser (and version):

    Description

      Currently, when generating the autoload array, the class FQN doesn't have escaped backslashes.
      It does work this way, but this is not the right way to go.

      For instance, with such class :

      namespace foo\bar;
      
      class Test
      {
      }
      

      You will have in ezp_extension.php :

      'foo\bar\Test'                             => 'extension/test/classes/testclass.php',
      

      Here backslashes should be escaped.

      Attachments

        Activity

          People

            jv@ez.no jv@ez.no
            jv@ez.no jv@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: