Re: [PHP-DEV] 4.0.2 Release date From: Rasmus Lerdorf (rasmus <email protected>)
Date: 08/08/00

> Yes, either you try to emulate the CGI environment setting the necessary
> enviroment variables or you still have to run PHP as Web server module.
> The first option may be enough and easier to integrate with what you have
> now.

That's exactly what the PHP 2 and 3 regression testing system did. See
test/testphp.awk in the php3 tree. It actually worked pretty well and the
test file format was simple:

--TEST--
Assign a[0], a[1], a[2] elements and print result ...
--POST--
--GET--
--FILE--
<?php
  $a[0]="a";
  $a[1]="b";
  $a[2]="c";

  echo "a[0]: $a[0]\n";
  echo "a[1]: $a[1]\n";
  echo "a[2]: $a[2]\n";
?>
--EXPECT--

a[0]: a
a[1]: b
a[2]: c

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>