Skip to content

Conversation

@petk
Copy link
Member

@petk petk commented Jun 23, 2019

The strcoll function is defined in the C89 standard and should be on today's systems always available via the <string.h> header.

https://port70.net/~nsz/c/c89/c89-draft.html#4.11.4.3

The strcoll function is defined in the C89 standard and should be
on today's systems always available via the <string.h> header.

https://port70.net/~nsz/c/c89/c89-draft.html#4.11.4.3
@petk
Copy link
Member Author

petk commented Jun 26, 2019

I've noticed that this will in the end "fix"/"revert" also PR #3065

So, this change would be then ok also?

diff --git a/ext/standard/tests/strings/strcoll.phpt b/ext/standard/tests/strings/strcoll.phpt
index 0d78ff37be..37fe251b66 100644
--- a/ext/standard/tests/strings/strcoll.phpt
+++ b/ext/standard/tests/strings/strcoll.phpt
@@ -1,7 +1,5 @@
 --TEST--
 Testing Basic behaviour of strcoll()
---SKIPIF--
-<?php if (!function_exists('strcoll')) die('skip strcoll function not available') ?>
 --CREDITS--
 Sebastian Schürmann
 [email protected]
(END)

I think that strcoll should be today present everywhere already.

@petk petk requested a review from nikic June 26, 2019 21:04
@carusogabriel
Copy link
Contributor

@petk With this PR, yes, now we can revert the one I did 👍

@petk
Copy link
Member Author

petk commented Jun 27, 2019

Applied via 638c217 to PHP-7.4.

Changelog update: via #4310

After a quick scan, open source extensions out there also don't rely on the HAVE_STRCOLL symbol from PHP build.

Thanks.

@petk petk closed this Jun 27, 2019
@petk petk deleted the patch-have-strcoll branch June 27, 2019 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants