Comments (3)
//cc @alexdowad
from php-src.
This is documented in the 8.3 migration guide:
https://www.php.net/manual/en/migration83.other-changes.php
mb_detect_encoding()'s "non-strict" mode now behaves as described in the documentation. Previously, it would return false if the same byte (for example, the first byte) of the input string was invalid in all candidate encodings. More generally, it would eliminate candidate encodings from consideration when an invalid byte was seen, and if the same input byte eliminated all remaining encodings still under consideration, it would return false. On the other hand, if all candidate encodings but one were eliminated from consideration, it would return the last remaining one without regard for how many encoding errors might be encountered later in the string. This is different from the behavior described in the documentation, which says: "If strict is set to false, the closest matching encoding will be returned."
If you want an exact-or-nothing match then use the $strict
parameter. https://3v4l.org/bLYlB
from php-src.
great catch - thank you so much.
from php-src.
Related Issues (20)
- PHP version 8.3.7 compiles and tests on the curl 7.76.1 extension and reports an error HOT 2
- Is there a development tutorial for expanding the library? HOT 2
- Using `--enable-fuzzer` with `--enable-zts` cause compilation to fail HOT 2
- pdo_pgsql: question marks seen as parameter placeholders in dollar-quoted string HOT 2
- Weird behaviour for DNS resolution HOT 1
- mysqli_fetch_assoc reports error from nested query HOT 1
- Implement ED25519 auth for mysqlnd HOT 3
- PHP 8.2.19: segfault at 7f377e872428 (sp 00007ffcd580fec0 error 4) HOT 35
- opcache.jit=off does not behave as documented
- Has PHP added support for generics, similar to Java's generics HOT 5
- Can't cross-compile with external libcrypt HOT 1
- ffi enum type (when enum has no name) make memory leak HOT 2
- Can the final PHP code be compiled into binary and run on the server, which is more secure on the server side and less likely to cause code intrusion? Currently, the traditional deployment method is through source code, which is easily exposed and tampered with. We deploy more security. Java like jar packages are not even more secure. HOT 1
- Member access within null pointer in extension spl
- PHP 8 Compile with GD Help needed HOT 1
- Indexing an array with a persistent string triggers an assertion failure during destruction HOT 4
- Seeing seg fault while using zend_disable_functions during shutdown HOT 10
- Preg unicode different results depending on if in character class or separate HOT 1
- Test curl_basic_024 fails with curl 8.8.0 HOT 3
- PHP 8.1.28 curl_exec crash with no error on first request after second request is made (fast F5) HOT 6
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 php-src.