You need to
require_once 'PHPUnit/Framework.php'
since phpunit 3.4 IIRC. Do not try to load the individual PHPUnit files anymore.
Oh, and in PHPUnit 3.5 there is an autoloader you should use:
require_once 'PHPUnit/Autoload.php';
require_once 'PHPUnit/Framework.php'
since phpunit 3.4 IIRC. Do not try to load the individual PHPUnit files anymore.
Oh, and in PHPUnit 3.5 there is an autoloader you should use:
require_once 'PHPUnit/Autoload.php';
if "%PHPBIN%" == "" set PHPBIN=.\php.exe
if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH
GOTO RUN
:USE_PEAR_PATH
set PHPBIN=%PHP_PEAR_PHP_BIN%
:RUN
"C:\wamp\bin\php\php5.3.0\php.exe" "C:\wamp\bin\php\PHP53~1.0\phpunit" %*
1) Locate the "php.ini" file. In my case, I found it at this path:
C:\wamp\bin\php\php5.3.0\php.ini
Don't use the WAMP system tray icon to edit this file. It didn't work when I tried - you have to manually locate it.
2) Find the following line, in bold:
; http://php.net/phar.require-hash;phar.require%5Fhash = On ; http://php.net/phar.require-hash
;phar.require_hash = On
3) Uncomment the ";phar.require_hash = On" line by removing the semi-colon.
4) Change "On" to "Off".
; http://php.net/phar.require-hash
phar.require_hash = Off
5) Save the file.
After I performed those steps, "go-pear.bat" began working normally again.
I successfully installed PHP 5.3.3 on my WAMP server under Windows 7 64 bit. But this short tutorial will probably work on other versions as well.
Go to the Windows download page at PHP.net and download the desired version. You must select the ZIP VC6 x86 Thread Safe variant.
Unpack the contents to the PHP bin directory in your WAMP installation. I unpacked PHP 5.3.3 in C:\wamp\bin\php\php5.3.3\.
You should now copy the following files from the php5.3.0 directory, to your newly created directory (php5.3.3 in my case): php.ini, phpForApache.ini and wampserver.conf.
Now we just need to make a quick edit in both INI-files. Search for "5.3.0" and replace it with the PHP version you are installing.
Save the files, and you should see the new version in the PHP version menu in WAMP. If not, right-click the WAMP icon and choose "Exit", then start it again.
sudo pear channel-discover pear.zfcampus.org |
2 | sudo pear install zfcampus/zf |
3 | # for some reason the installer does not correctly link the zf.php and Zend_Tool won't work |
4 | # so we need to setup a symlink |
5 | sudo ln -s /usr/share/php/zf.php /usr/bin/zf.php |