Re: Linux / Unix difference
| From: | Eric Stewart | Date: | Fri, 24 Jul 2009 15:10:45 +0000 |
| Subject: | Re: Linux / Unix difference | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-65251@lists.php.net to get a copy of this message | ||
2009/7/24 zoe <zoe.slattery@googlemail.com>
> 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
>
>
>>
>>
>>
>>
>
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
1. Feels like we're just hiding the problem.
2. I vote for this approach.
3. So much has been done to make PHP as similar across platforms as possible
and pathing, to me anyway, is a pretty big deal. I would rather investigate
ways to eliminate the edge cases, than accept them.
Just my feelings, hope everyone has a great weekend.
Eric Lee Stewart