Re: strcoll.phpt
| From: | zoe | Date: | Thu, 30 Apr 2009 07:01:38 +0000 |
| Subject: | Re: strcoll.phpt | ||
| References: | 1 2 3 4 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-64827@lists.php.net to get a copy of this message | ||
Pierre Joye wrote:
Pierre
My point was that that the message 'Deprecated' implies "You can use this but you shouldn't because it might go away".My statement below makes an incorrect inference based on your previous post.
However, this might be an interesting philosophical debate on test practices, but it is completely irrelevant to the failure of the strcoll() test on PHP6. As we seem to have deviated from the point somewhat in this thread, I'll restate the question more clearly in another post. ZoeWhereas it appears from the test result that you cannot use setlocale() and *must* use an ICU function.My point is that we should not use deprecated function at all in phpt. I understand your point, I just don't entirely agree with it. It is reasonable to use deprecated functions and verify that they produce the expected 'Deprecated ...' warning, also that they function correctly even if their use is deprecated. A deprecated function should, after all , still work.