Req #55672 [NEW]: Autoguessing TEST_PHP_EXECUTABLE if none is provided in run-tests.php
| From: | shein@php.net | Date: | Mon, 12 Sep 2011 12:29:48 +0000 |
| Subject: | Req #55672 [NEW]: Autoguessing TEST_PHP_EXECUTABLE if none is provided in run-tests.php | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-163461@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: trunk-SVN-2011-09-12 (SVN)
Package: *Configuration Issues
Bug Type: Feature/Change Request
Bug description:Autoguessing TEST_PHP_EXECUTABLE if none is provided in run-tests.php
Description:
------------
Hello!
I've made some improvements to run-tests.php:
1) Autoguessing TEST_PHP_EXECUTABLE and TEST_PHP_CGI_EXECUTABLE if
they're not provided, i.e. assume they have value 'auto'. You can
still pass your own value as usual.
Autoguessing is done this way:
Looking for ./sapi/cli/php from the current directory, and, if not found
from directory where run-tests.php script is resides (Christofer Jones
suggestion).
php-cgi is looked for the same way.
2) Added option -n (use no php.ini) to the shebang line
(#!/usr/bin/php -n) so it would run more reliably on some hosts. My
Ubuntu setup did not have E letter in variables_order (i.e.
variables_order=GPCS) so $_ENV array was empty and some tests were
skipped when they could be run.
3) Some better error handling of wrong paths
So now you can run run-tests.php with just
$ ./run-tests.php ext
instead of
$ TEST_PHP_EXECUTABLE=auto php -n run-tests.php ext
You can also run run-tests.php from sub-dir, it will correctly guess
'auto' as well:
$ cd ext/
$ ../run-tests.php zlib
--
Edit bug report at https://bugs.php.net/bug.php?id=55672&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55672&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55672&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55672&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55672&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55672&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55672&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55672&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55672&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55672&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55672&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55672&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55672&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55672&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55672&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55672&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55672&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55672&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55672&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55672&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55672&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55672&r=mysqlcfg