Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>PHP command line interpreter in windows can use a different <code>php.ini</code> file, see my answer to this question <a href="https://stackoverflow.com/questions/7245160/testing-zend-with-phpunit-gives-me-the-mysql-driver-is-not-currently-installed/7253978#7253978">testing zend with phpunit gives me &quot;The mysql driver is not currently installed&quot;</a></p> <p>You should check that the <code>phpunit</code> is available on your path, what happen if you type <code>phpunit</code> in a command prompt? Is phpunit in your path?</p> <p>Anyway the best method to <a href="http://www.phpunit.de/manual/current/en/installation.html" rel="nofollow noreferrer">install PHPUnit is the pear method</a>, it should take care of any aspect. I always used that method (Linux and Mac) and everything worked with no need to change the path nor the <code>php.ini</code> file. Don't know if this is also true for Windows.</p> <p><strong>Update</strong></p> <p>There is more than one way to change the loaded ini file see all of them <a href="http://it.php.net/manual/en/configuration.file.php" rel="nofollow noreferrer">here</a></p> <p>The easiest way could be with an environment variable:</p> <pre><code>PHPRC=path of your current apache php.ini file </code></pre> <p>or with a registry setting</p> <pre><code>[HKEY_LOCAL_MACHINE\SOFTWARE\PHP], value of IniFilePath (Windows only) </code></pre> <p>In this way you should be able to load the same file for the apache version. Or you can keep CLI configuration separated and replicate your <code>include_path</code> setting in <code>S:\PHP\php.ini</code></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload