# php4 run-tests.php always inserting HTTP headers

- Thread: https://externals.io/message/6787
- Original archive: https://news-web.php.net/php.internals/6787
- Started by Daniel Convissor on 2004-01-05T08:19:45+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #6787 — Daniel Convissor — 2004-01-05T08:19:45+00:00

URL: https://externals.io/message/6787#6787

Greetings:

I'm using run-tests.php under PHP 4.3.4 to test out stuff for PEAR::DB.  
Unfortunately, all the tests fail due to the HTTP headers getting inserted
at the top of each file.

run-tests.php and the tests directory are pulled from PHP 4 source a few 
minutes ago.

Here's the commands I used, using a Cygwin shell on Windows 2000.

   TEST_PHP_EXECUTABLE=c:/progra~1/php/php.exe

   php c:/progra~1/php/run-tests.php 
      d:/webroot/ideasphp/pear/dbtests/driver/.

I also tried using "php -q ..." as well as the CLI version of PHP to no 
avail.

My final attempt to hack this was to change line 614 of run-tests.php from
   $output = `$extra $php $info_params -f $tmp_skipif`;
to
   $output = `$extra $php -q $info_params -f $tmp_skipif`;

Any suggestions, please?

Thanks,

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

---

## #6815 — Daniel Convissor — 2004-01-06T08:34:21+00:00

URL: https://externals.io/message/6787#6815 · In reply to: #6787

Hi:

As some folks suggested off list, setting TEST_PHP_EXECUTABLE to the CLI 
helped.  I had already tried it, but that was only part of the probem.
Here are the other pieces.

I had to be logged on as a user with administrative priveleges because the 
php executable dir and the files in it aren't writable by regular users.

Also, it was necessary to use complete paths for everything.

Thanks!

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409
