[MacPorts] #35291: pear-PHPUnit doesn't work with php 5.4.5
MacPorts
noreply at macports.org
Fri Aug 17 16:29:17 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 pixilla@…):
Replying to [comment:16 kasperligaard+macports@…]:
> The new ''pear-*'' ports put their executable files in
{{{/opt/local/lib/php/PEAR/bin}}}
The pear-* ports are designed to install the pear packages using MacPorts,
not pear. There is no need to call the "pear" command directly.
The php5-pear port installs an ini and php file to add the pear data dir
to php's path. See for yourself:
{{{
port contents php5-pear
cat /opt/local/var/db/php5/pear.ini
cat /opt/local/var/db/php5/pear/pear-ini.php
port contents pear-file_iterator
}}}
phpinfo() shows:
{{{
...
auto_prepend_file /opt/local/var/db/php54/pear/pear-ini.php
...
include_path .::/opt/local/lib/php/pear
...
}}}
If for some reason you do not have /opt/local/lib/php/pear in php's
include_path then you will need to add it or use the full path to the pear
class files installed by the pear-* ports.
The php5-unit port is not related to any of the pear-* ports and has these
for dependencies:
{{{
php5-unit-db, php5-file-iterator, php5-code-coverage, php5-timer, php5
-unit-selenium, php5-unit-mock-objects
}}}
It looks like these ports may install the same packages as there pear-*
counterparts. I don't know anything about these php5-* ports but I do know
neither pear-phpunit nor pear-phpunit2 depend on them.
{{{
port info pear-phpunit
port info pear-phpunit2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/35291#comment:18>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list