- Fix an off-by-one in name length calculation. Lead to queer problems when   using an enumeration's name for anything else than printing it out. Short   reproduce case:   <?php     enum Result {       RECORDS, STATUS, FAILURE     }
- Fix an off-by-one in name length calculation. Lead to queer problems when
  using an enumeration's name for anything else than printing it out. Short
  reproduce case:
  <?php
    enum Result {
      RECORDS, STATUS, FAILURE
    }

    var_dump(Result::valueOf(Result::RECORDS)->name);
  ?>
  Printed: string(8) "RECORDS"
  Should print: string(7) "RECORDS"
# PHP's strlen() does *not* include \0


git-svn-id: 526f3b90ad6d9b1dfe840af828070ca3d99521ac@4862 d2cacbed-c0f6-0310-851a-9dad52fc623a

johannes85/core