[MacPorts] #35291: pear-PHPUnit doesn't work with php 5.4.5

MacPorts noreply at macports.org
Thu Dec 19 01:23:26 PST 2013


#35291: pear-PHPUnit doesn't work with php 5.4.5
---------------------------------+-----------------------
  Reporter:  bertrand.zuchuat@…  |      Owner:  pixilla@…
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.1.1
Resolution:                      |   Keywords:
      Port:  pear-PHPUnit        |
---------------------------------+-----------------------

Comment (by sporring@…):

 Hi,

 I just tried to install phpunit via macports and I'm also getting the
 {{{
 Warning: require_once(File/Iterator/Autoload.php): failed to open stream:
 No such file or directory in /opt/local/lib/php/pear/PHPUnit/Autoload.php
 on line 45
 }}}
 etc. So I guess this is still an issue. On my fairly recent install (hard
 disk crash in the spring, followed by a recent Maverick update, sigh), I
 have install php54, but not apache, and I've fund the problematic Iterator
 to be placed in /opt/local/lib/php.  So my conclusion is that it's not
 missing, but that the path needs to be set in the right php.ini.
 I did many things, but I think this is a summary of my solution:
 {{{
 sudo port select php php54
 sudo port install php54-unit
 sudo ln -s /opt/local/etc/php54/php.ini-development
 /opt/local/etc/php54/php.ini
 sudo emacs /opt/local/etc/php54/php.ini
 }}}
 in the above mentioned file, the include_path was not set, so I added
 {{{
 include_path = ".:/opt/local/lib/php"
 }}}
 at which point, I was able to run phpunit with out the mentioned error.

 Best, Jon

-- 
Ticket URL: <https://trac.macports.org/ticket/35291#comment:29>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list