Re: Linux / Unix difference

From: Date: Fri, 24 Jul 2009 08:37:13 +0000
Subject: Re: Linux / Unix difference
References: 1 2 3 4 5 6  Groups: php.qa 
Request: Send a blank email to php-qa+get-65248@lists.php.net to get a copy of this message
Hi Johannes et al.,
Do you really want to got that way and open that can of worms just for abstraction of an edge case? - I'd concentrate on issues with real-life impact. This is an annoying detail and testing PHP is a lot about annoying details. The problem from my point of view is that there are a set of tests which fail on one platform and reflect a difference in behaviour between Unix and Linux. Just having a bunch of tests which fail can obscure more important test failures and potentially waste peoples effort over and over again as each new person figures out why they fail.
That said I _really_ do not like PHP behaving differently on different platforms, however small that difference is it will cause some pain to an application developer sometime. These are the options I can think of: 1. Remove the edge case tests to a set of separate tests and have specific tests for edge cases for Linux and Unix (assuming that it is possible to distinguish them in a SKIPIF?). This implies that the difference in behaviour of PHP on different platforms is accepted and agreed. 2. Fix PHP to behave the same way for both - and as you suggest that is possibly a can of worms. 3. As Patrick suggests remove edge case tests. That again implies acceptance of a difference in behaviour but I think it is less satisfactory than (1) because the agreed difference is not documented (through tests) and the edge case behaviour on both platforms is untested. Zoe


« previous php.qa (#65248) next »