before realising that one of its reasons was wrong (See Kristians mail http://lists.php.net/article.php?group=php.dev&article=81817):
The file must start like this:
#!/usr/bin/php -f
and not
#!/usr/bin/php --
cvs -z3 -q diff php_cli.c (in directory S:\php4\sapi\cli\)
Index: php_cli.c
===================================================================
RCS file: /repository/php4/sapi/cli/php_cli.c,v
retrieving revision 1.16
diff -u -r1.16 php_cli.c
--- php_cli.c
+++ php_cli.c
@@ -554,7 +554,7 @@
-
+
I can now do testing:
./sapi/cli/php -d safe_mode=Off -f run-tests.php
Because of the -d i suggest we add another overwrite to cli
zend_alter_ini_entry("safe_mode", 10, "0", 1, PHP_INI_SYSTEM, PHP_INI_STAGE_ACTIVATE);
marcus
TO WEZ: could you please verify then i will commit it.
My results:
TEST RESULT SUMMARY
=============================
Number of tests: 222
Tests skipped: 5 (2.3%)
Tests failed: 105 ( 48%)
Tests passed: 112 ( 52%)
=============================
Problems for me:
+files not found
+Warning - SAFE MODE Restriction in effect.
+databases all fail
At 14:39 27.03.2002, you wrote:
Actually, I'm getting a bit tired of things breaking so much recently;
(the multiple function declaration in class thing and now this cli thing)
can people checking code into CVS try to make sure that it compiles and
that "make test" runs without too much trouble? It really is there for
a purpose.
Doesn't it say this in the CVS rules?
I know that HEAD is a moving target, but there is no need to make
things more difficult than they need to be.
Just my 2-pence worth.
--Wez.
On 27/03/02, "Wez Furlong" <[EMAIL PROTECTED]> wrote:
> Rolling back to php_cli.c revision 1.10 fixes this for me.
> > "make test" does not work for me anymore.
> > It seems that "./sapi/cli/php run-tests.php" goes into an infinite wait while
> > parsing the script, whereas "./sapi/cli/php < run-tests.php" will run, but
> > none of the tests will succeed.
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php