Date: 08/07/00
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5987 Updated: PHP crashes when using mktime()"
- Previous message: hpdl <email protected>: "[PHP-DEV] PHP 4.0 Bug #6002: array_diff / array_intersect returning wrong elements"
- In reply to: Manuel Lemos: "Re: [PHP-DEV] 4.0.2 Release date"
- Next in thread: Manuel Lemos: "Re: [PHP-DEV] 4.0.2 Release date"
- Reply: Manuel Lemos: "Re: [PHP-DEV] 4.0.2 Release date"
- Reply: Zak Greant: "Re: [PHP-DEV] 4.0.2 Release date"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Manuel Lemos wrote:
>
> Hello Stig,
>
> On 06-Aug-00 06:19:07, you wrote:
>
> >> Now, a greater challenge: many existing bugs lead PHP to crash. How do
> >> you (plan to) handle crashes in your test suite? Since you use PHP scripts
> >> to test features I supposed you have to use something external, like shell
> >> scripts or PHP scripts running independently of the actual test scripts, to
> >> detect failures that lead to crashes.
>
> >The idea is very simple: a PHP/shell script runs the PHP interpreter
> >(with a dedicated php.ini file and/or customization directives on the
> >command line) once for each test. The stdout of the test is then
> >compared to the expected output, if they differ, the test fails. If it
> >gets harder than this, I fear people won't bother writing tests.
>
> I know how regression tests work, but if you run from shell, it will be
> hard to run them on non-unix platforms. OTOH hand, if you run from a
> single PHP script it terminates when a bug leads PHP to crash. You have to
> rely on a PHP only solution to a master PHP script call individual test
> scripts using only the standalone CGI executable. Besides that there may
> exist bugs that only show when PHP is run as a server module, so the scripts
> may have to runnable that way.
All points valid. Getting rid of unix command dependencies is easy
(it's using "find" now). The PHP script that invokes tests runs a new
PHP program to deal with each test, so it should catch most crashes.
Making the same set of tests for real server APIs is definitely more of
a challenge.
- Stig
-- 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>
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #5987 Updated: PHP crashes when using mktime()"
- Previous message: hpdl <email protected>: "[PHP-DEV] PHP 4.0 Bug #6002: array_diff / array_intersect returning wrong elements"
- In reply to: Manuel Lemos: "Re: [PHP-DEV] 4.0.2 Release date"
- Next in thread: Manuel Lemos: "Re: [PHP-DEV] 4.0.2 Release date"
- Reply: Manuel Lemos: "Re: [PHP-DEV] 4.0.2 Release date"
- Reply: Zak Greant: "Re: [PHP-DEV] 4.0.2 Release date"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

