Comments (9)
Thanks @lbassin for the pull request!
from polyfill.
why not :) do you have code?
from polyfill.
why not.
perhaps https://github.com/true/php-punycode ?
from polyfill.
do you have code?
Not yet. And I'm not sure, if I am able to do this. But maybe I will try.
perhaps https://github.com/true/php-punycode ?
I guess we have to re-implement this to be compatible with the original functions.
Should the polyfill support the deprecated variant INTL_IDNA_VARIANT_2003
? (I don't think so)
from polyfill.
It's OK to have a partial polyfill, so no, no need to support deprecated features (and if someone comes with a PR later, fine :) )
from polyfill.
This is the php-src part of the functions: https://github.com/php/php-src/blob/master/ext/intl/idn/idn.c
But the main conversion is done by functions uidna_nameToASCII_UTF8
and uidna_nameToUnicodeUTF8
from ICU.
from polyfill.
I guess we have to re-implement this to be compatible with the original functions.
well, they tried to be compatible.
we can cover it with tests, sure, see what's missing
simply, there may be no need to reimplement everything from scratch
from polyfill.
simply, there may be no need to reimplement everything from scratch
Would be very nice!
But:
- If true/php-punycode#22 is correct, currently it uses IDNA2003. But this is deprecated in intl/idn in favor of UTS46 since 7.2 (http://php.net/manual/en/function.idn-to-utf8.php)
- Do we want to support these options?
- Do we want to support the 4th parameter
$idna_info
?
from polyfill.
from polyfill.
Related Issues (20)
- normalizer_is_normalized has nullable string parameter HOT 2
- [Tests] Polyfills not loaded HOT 5
- Polyfill DATE_ISO8601_EXPANDED HOT 3
- Missing polyfills for PHP 8.3 HOT 1
- #[\SensitiveParameter] is available since PHP 8.2, but loaded on 8.1 HOT 1
- Backport fix for ini_parse_quantity from PHP HOT 2
- Polyfill PHP 8.3 is incomplete HOT 3
- Missing str_increment and str_decrement polyfill
- [PHP 8.4] `mb_trim`, `mb_ltrim`, and `mb_rtrim` polyfills HOT 1
- Intl Collator types are (slightly) incoherent HOT 2
- ini_parse_quantity not defined when using the polyfill HOT 2
- Inconsistency of composer autoload and packages after removing polyfill package HOT 1
- [PHP 8.4] `mb_ucfirst()` and `mb_lcfirst()` polyfills HOT 1
- Inconsistent function calls in test cases HOT 1
- Function signature checking should be improved HOT 1
- `Stringable` polyfill has no return type, breaks tests and static analysis HOT 4
- [PHP 8.4] composer require polyfill-php84 is failing HOT 3
- PHP 8.4 `array_find`, `array_find_key`, `array_any` and `array_all` HOT 1
- mb_strlen - different behaviour for ISO-8859-1 string HOT 4
- [Feature Request] Constant CURL_HTTP_VERSION_3 in PHP 8.4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polyfill.