pear

How to set up PEAR on Mac OS X 10.5 Leopard

眉间皱痕 提交于 2019-11-27 13:14:01
问题 I'm ultimately trying to install PEAR so I can easily install PHPUnit. I want to set up a Mac, Apache, MySQL, PHP, PHPUnit development environment so I can test locally. I already have Apach, MySQL and PHP working. Now all I need is PHPUnit, which means I need PEAR to install it. I have searched all over, and there are a few variations of "the tutorial" on how to install PEAR on Mac OS X 10.5. However, I can't seem to get any of them to work! Has anyone had success with this? I'm not totally

Installing PHPUnit via PEAR

坚强是说给别人听的谎言 提交于 2019-11-27 11:37:42
I have problems installing PHPUnit 3.4.6 via PEAR 1.9.0 . After I discover channel pear.phpunit.de and try to use one of following commands: pear install phpunit/PHPUnit pear install --alldeps phpunit/PHPUnit pear install --onlyreqdeps phpunit/PHPUnit it fails, giving me following error: No releases available for package "pear.phpunit.de/PHPUnit" install failed I found several threads from people with the same problem, but upgrading PEAR to the newest version usually worked for them. Also there seems to be close to no tutorials for installing PHPUnit for Windows. EDIT: I've also tried to

Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3)

倖福魔咒の 提交于 2019-11-27 11:01:47
So it looks like the new 'System Integrity Protection' lockdown of /usr (among other directories) makes pear and pecl a non-starter. Has anyone found a workaround short of disabling it? There's a much easier way — no need to disable SIP or download your own copy: sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin You shouldn't install binaries into system /usr , use /usr/local instead. The pecl and pear commands should come along with PHP when installing via Homebrew . Here is the example installing PHP with the latest Homebrew: brew install php or the

Can't install PEAR on Windows 7, Structures/Graph error

被刻印的时光 ゝ 提交于 2019-11-27 10:56:24
问题 I just did a clean install of Windows 7. I've installed Apache, Mysql and PHP 5.3.5 all separated (not using XAMPP/others). I'm getting the following error in the install: ERROR: unable to unpack phar://C:/Web/php-5.3.5/PEAR/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.2.tar The full stack trace is: C:\Web\php-5.3.5>go-pear.bat Are you installing a system-wide PEAR or a local copy? (system|local) [system] : system Below is a suggested file layout for your new PEAR installation. To

How to install an older version of PHPUnit through PEAR?

廉价感情. 提交于 2019-11-27 06:52:58
I would like to downgrade my installation of PHPUnit 3.4 to 3.3. I'm just not sure how to do it. How do I install version 3.3 of PHPUnit on Ubuntu using PEAR? etheros You need to know the exact version number you wish to downgrade to. At the time of writing, the last release you're after is 3.3.17, which can be found out by checking the appropriate PEAR channel. To downgrade to that particular version execute two commands: pear uninstall phpunit/PHPUnit pear install phpunit/PHPUnit-3.3.17 Jens Wegar Note that if you wish to downgrade from a 3.6.x release to 3.5.15 (final stable 3.x release),

sending mail with php & escaping hotmails junk folder

浪子不回头ぞ 提交于 2019-11-27 03:47:37
I have been trying to get PEAR::mail to successfully deliver emails to hotmail users without being flagged as SPAM and ending up in the junk folder, i have no problems with yahoo/gmail only with hotmail. google suggested that this is a common problem with hotmail and that possible causes can include incorrect reverse DNS for main IP of the server lack of SenderId/SPF records being blacklisted having checked all of the above i can only think of one other reason - incorrectly formatted headers ? to test this theory i set up outlook to send email via the same address that PEAR::mail uses and sent

Getting PHPUnit Working - Include Path not set correctly?

匆匆过客 提交于 2019-11-27 00:55:57
问题 I'm trying to get PHPUnit working on my development environment but I've hit a bit of a roadblock when it comes to including PHPUnit in my scripts. I know that I need to set the include path on PHP but every combination I've tried fails without the compiler seeing the PHPUnit_Framework_TestCase class. I just ran updates on PHP and PEAR and PHPUnit is installed on the computer because I can access it through the command line just fine. PHPUnit is installed at /usr/share/php/PHPunit Pear is at

Getting PEAR to work on XAMPP (Apache/MySQL stack on Windows)

不羁的心 提交于 2019-11-26 22:52:56
问题 I'm trying to install Laconica, an open-source Microblogging application on my Windows development server using XAMPP as per the instructions provided. The website cannot find PEAR, and throws the below errors: Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampplite\htdocs\laconica\lib\common.php on line 31 Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.;\xampplite\php\pear

Call to undefined method PHP_CodeCoverage_Filter::getInstance()

风流意气都作罢 提交于 2019-11-26 22:35:39
问题 I've got a fresh copy of PHPUnit installed on my system (Ubuntu 11), but whenever I type phpunit in the console I get the following error: PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/bin/phpunit on line 39 I have PHPUnit's code coverage installed, as far as I know: >sudo pear install phpunit/PHP_CodeCoverage phpunit/PHP_CodeCoverage is already installed and is the same as the released version 1.1.1 install failed Why am I getting this error and how

how to send html mails using PEAR mail

此生再无相见时 提交于 2019-11-26 19:51:40
问题 I am using PEAR mail system to send authenticated mails.I need to send HTML mails that has alinks.It was working fine before i started using PEAR mail.Now i am not able to send HTML mails. mail body looks like this: $body = <<<EOD Hiya $username You might be interested in the current 'haves' and 'wants' on example.com Latest Haves <a href="http://www.exmaple.com/product/have/64/Titan+Fast+Track+SunGlass">Titan Fast Track SunGlass</a> EOD; a tag appears as it is in the mail.Any idea how to