Doctrine 1
  1. Doctrine 1
  2. DC-856

Doctrine_Core::getPath() not working when inside phar, due to a bug in php

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It seems that there is a bug in php, and realpath doesn't work when path is inside of phar archive.
      function Doctrine_Core::getPath()
      if ( ! self::$_path)

      { self::$_path = realpath(dirname(__FILE__) . '/..'); }

      can be easily changed to
      if ( ! self::$_path)

      { self::$_path = dirname(dirname(__FILE__)); }

        Activity

        Show
        Pierre-Gildas MILLON added a comment - http://bugs.php.net/bug.php?id=52769

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Miha Vrhovnik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: