# odd bug in run-tests.php

- Thread: https://externals.io/message/34774
- Original archive: https://news-web.php.net/php.internals/34774
- Started by Gregory Beaver on 2008-01-14T03:11:10+00:00
- Messages: 1
- 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

---

## #34774 — Gregory Beaver — 2008-01-14T03:11:10+00:00

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

Hi all,

I don't have time to fix this now, but FYI, run-tests.php has very odd
behavior if you don't put a space between a switch and its argument, and
should error out.  i.e.

php run-tests.php -n -dextension_dir=blah -dextension=blah.so

will ignore every other line.  This:

php run-tests.php -n -d extension_dir=blah -d extension=blah.so

works as expected.

I wasted about 4 hours rebuilding PHP yesterday (thinking this was the
problem) because of this bug, so it would be a good one to kill for
future poor people who are stupid like me.

Thanks,
Greg
