use getenv()

This commit is contained in:
Antony Dovgal 2007-01-20 22:12:55 +00:00
parent 75fdefba0c
commit 1b002cf39f
15 changed files with 15 additions and 15 deletions

View File

@ -5,7 +5,7 @@ version string
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n -v`);

View File

@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n -r 'var_dump("hello");'`);

View File

@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n -d max_execution_time=111 -r 'var_dump(ini_get("max_execution_time"));'`);
var_dump(`$php -n -d max_execution_time=500 -r 'var_dump(ini_get("max_execution_time"));'`);

View File

@ -5,7 +5,7 @@ show information about function
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n --rf unknown`);
var_dump(`$php -n --rf echo`);

View File

@ -5,7 +5,7 @@ show information about class
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n --rc unknown`);
var_dump(`$php -n --rc stdclass`);

View File

@ -5,7 +5,7 @@ show information about extension
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n --re unknown`);
var_dump(`$php -n --re ""`);

View File

@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
$filename = dirname(__FILE__).'/007.test.php';
$code ='

View File

@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
$filename = dirname(__FILE__).'/008.test.php';
$code ='

View File

@ -5,7 +5,7 @@ using invalid combinations of cmdline options
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`$php -n -c -r 'echo hello;'`);
var_dump(`$php -n -a -r 'echo hello;'`);

View File

@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
$filename_txt = dirname(__FILE__)."/010.test.txt";

View File

@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
$filename = dirname(__FILE__)."/010.test.php";
$filename_txt = dirname(__FILE__)."/010.test.txt";

View File

@ -5,7 +5,7 @@ syntax check
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
$filename = dirname(__FILE__)."/011.test.php";

View File

@ -5,7 +5,7 @@ invalid arguments and error messages
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
var_dump(`"$php" -n -F some.php -F some.php`);
var_dump(`"$php" -n -F some.php -R some.php`);

View File

@ -10,7 +10,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
$filename_txt = dirname(__FILE__)."/013.test.txt";
file_put_contents($filename_txt, "test\nfile\ncontents\n");

View File

@ -5,7 +5,7 @@ syntax highlighting
--FILE--
<?php
$php = $_ENV['TEST_PHP_EXECUTABLE'];
$php = getenv('TEST_PHP_EXECUTABLE');
$filename = dirname(__FILE__)."/014.test.php";
$code = '