[MacPorts] #35291: pear-PHPUnit doesn't work with php 5.4.5
MacPorts
noreply at macports.org
Fri Aug 17 15:44:44 PDT 2012
#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 kasperligaard+macports@…):
I am also in the basic php5 port (currently 5.3.15) and have the exact
same problem. PHPUnit requires File/Iterator.
I searched for ''pear-File_Iterator'', but no such port exists. I tried
installing ''php5-file-iterator'' (1.2.6_0), but that didn't help.
My guess is that if the ''pear-File_Iterator'' port was added, and the
''pear_PHPUnit'' port was updated to require ''pear-File_Iterator'', then
phpunit would work.
Another thing I noticed is a problem of {{{PATH}}} setting: The new
''pear-*'' ports put their executable files in
{{{/opt/local/lib/php/PEAR/bin}}}, but that path is not added to the
{{{PATH}}} environment variable, when the ''pear-PEAR'' port is installed.
I dug in a little further and found that I have both ports "php5-pear" and
"pear-PEAR". Probably only one of then should be installed, so they should
exclude each other when installing. I have two "pear" executables: One in
{{{/opt/local/bin}}} (from php5-pear) and another in
{{{/opt/local/lib/php/PEAR/bin}}} (from pear-PEAR); Naturally, the same
happens with PHPUnit when I install both ''php5-unit'' and
''pear_PHPUnit''.
Like "modemmonkey" above, I can confirm that installing the port
''php5-unit'', phpunit works. Note that ''php5-unit'' has ''php5-file-
iterator'' as a dependency - which reinforces my belief that if the port
''pear_File_Iterator'' is added and made dependency for ''pear-PHPUnit'',
then things would work.
PS: The thing about port ''pear-PEAR'' not adding the
{{{/opt/local/lib/php/PEAR/bin}}} directory to the {{{PATH}}} variable
might need a seperate ticket..?
--
Ticket URL: <https://trac.macports.org/ticket/35291#comment:16>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list