Skip to content

Generated sources that have colliding class names won't compile #23

Closed

Description

@carsonmcdonald

When class names collide it looks like they are generated with a $$ and an index as the file name. This can be seen by running hphp against this gist: http://gist.github.com/310277

The resulting cmake build doesn't seem to be able to handle the $$ file names correctly. I created a fix for this issue by changing the ID prefix from $$ to _DupId here: d1d0654

Activity

  1. scottmac commented on Mar 2, 2010

    @scottmac
    Contributor

    $$ is special in make, it resolves to $ which is useful for secondary expansion of variables.

    You can do $${foo} and its not until the make file that it looks for ${foo}. Useful for most but not used in CMake.

    Making it $$$$ fixes this, the problem being we need an item that can't be used in PHP class names to avoid collisions.

    I've reported this to the CMake people and I'm working on a workaround for now.

  2. scottmac commented on May 25, 2010

    @scottmac
    Contributor
  3. superdav42 commented on Aug 19, 2012

    @superdav42

    This issue appears to be back I think it might have been changed back to $$ in src/compiler/option.cpp:84 and it's still not fixed in Cmake. I ran into it compiling wordpress 3.4

  4. superdav42 commented on Aug 19, 2012

    @superdav42

    Looks like it was changed with b386ff0 not sure what the best fix is. Perhaps just patch cmake?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions