Re: test results for current CVS
| From: | Andi Gutmans | Date: | Tue, 08 May 2001 18:16:53 +0000 |
| Subject: | Re: test results for current CVS | ||
| References: | 1 2 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-3182@lists.php.net to get a copy of this message | ||
Besides the slashes I don't see where there's a bug. Can you please point it out?
Thanks,
Andi
At 09:18 PM 5/7/2001 +0200, Cynic wrote:
hi andi, the problem is partly that dirname.exp expects nonsensical values (why the hell should dirname(d:\foo\bar.inc) return "."?). also, php is inconsistent about (back)slashes. dirname.php:function check_dirname($path) { print "dirname($path) == " . dirname($path) . "\n"; }check_dirname("/foo/"); check_dirname("/foo"); check_dirname("/foo/bar"); check_dirname("d:\\foo\\bar.inc"); check_dirname("/"); check_dirname(".../foo"); check_dirname("./foo"); check_dirname("foobar///"); check_dirname("c:\foo");dirname.exp: dirname(/foo/) == / dirname(/foo) == / dirname(/foo/bar) == /foo dirname(d:\foo\bar.inc) == . dirname(/) == / dirname(.../foo) == ... dirname(./foo) == . dirname(foobar///) == . dirname(c:\foo) == . dirname.out: dirname(/foo/) == \ dirname(/foo) == \ dirname(/foo/bar) == /foo dirname(d:\foo\bar.inc) == d:\foo dirname(/) == \ dirname(.../foo) == ... dirname(./foo) == . dirname(foobar///) == . dirname(c:\foo) == c: at 20:59 7.5. 2001, andi gutmans wrote the following: -------------------------------------------------------------- at 08:36 pm 5/7/2001 +0200, cynic wrote:what exactly fails in dirname()? what is the input, what is the expected output and what is the actual output? thanks, andi ------end of quote------ cynic@mail.cz ------------- and the eyes of them both were opened and they saw that their files were world readable and writable, so they chmoded 600 their files.hi, i've just run tests on php4-200105070945 (nt5 sp1, msvc 6.0 sp3), and this is the outcome: test result summary =============================number of tests: 52 tests skipped: 0 (0.0%) tests failed: 6 ( 12%) tests passed: 46 ( 88%)============================= skipped 0 extensions. php version: 4.0.6-dev the failed tests are these: * dirname.phpt i expected it to fail- book of installation chapt 3 sec 7