Announcement
Collapse
No announcement yet.
JIT Is Approved For PHP 8 To Open Up Faster CPU Performance
Collapse
X
-
I'm not saying that there aren't any issues left regarding unicode, I think that's true for a lot of languages (js still doesn't have good support for unicode in regex), but your example of what is wrong with php 8 unicode support is something that was fixed in 7.3...
-
Originally posted by hreindl View Post
bla - with a timemachine all would be fine - otherwise LUCKILY the PHP developers are not that stupid to break BC in a way as Phyton did where a lot of code is still not compatible with python3, many of that stuff is likely internal and just does what it is expected to do and the people implemented are no longer there - have fun next year
Originally posted by AJenbo View Post
PHP defaults to UTF-8 and as long as you use the mb_* extension you should be pretty set.
As for "Multibyte string" extension:
For starters, it's not a native part of PHP.
Then there is the fact that it was written to support some Asian languages back in the days. Since these don't have a concept for lower case and upper case, it quite quickly suck at that stuff. How do you do something as basic as a case insensitive comparison for instance? Up until December last year, that would be impossible to do currectly. In PHP 7.3, you can do this:
Code:if (mb_convert_encoding($strA, MB_CASE_FOLD) == mb_convert_encoding($strB, MB_CASE_FOLD)) //MB_CASE_FOLD_SIMPLE can also be used { //Do stuff }
Code:if (mb_strtolower($strA) == mb_strtolower($strB)) { //Do stuff }
So essentially, Unicode is a lot more complex than the "Multibyte string" extension is capable of handling.
- Likes 2
Leave a comment:
-
People tend to think of PHP as a language for web development, but I use PHP for a lot of scripting work in Linux and it works very well for that. I tend to prefer its syntax over Python, and their website has very good documentation.
- Likes 5
Leave a comment:
-
Originally posted by AHSauge View PostLet me guess: Still no native support for Unicode?
It's beginning to be a bit too stupid. This is a standard from the early 90's, and this joke of a language hasn't succeeded in including support.
- Likes 1
Leave a comment:
-
Let me guess: Still no native support for Unicode?
It's beginning to be a bit too stupid. This is a standard from the early 90's, and this joke of a language hasn't succeeded in including support.
- Likes 1
Leave a comment:
-
As a security researcher this is going to be awesome. Don't get me wrong, I write PHP all the time for my own sites. it's way better than the Perl stuff everything was originally (huge Perl fan BTW). However, PHP is not known for correctness and security and JIT adds a whole new dimension of exploits.
If you're wondering, on sites I need to be correct, fast, and secure I use C/C++ and sometimes Lua(JIT). Everything else though, general use, I use PHP. I think Go/Rust are OK but they don't offer anything I can't get from traditional very well proven methods.
- Likes 1
Leave a comment:
-
JIT Is Approved For PHP 8 To Open Up Faster CPU Performance
Phoronix: JIT Is Approved For PHP 8 To Open Up Faster CPU Performance
It was widely expected that PHP 8 would introduce JIT (Just In Time) compiler functionality while now that experimental work has been approved...
Tags: None
- Likes 2
Leave a comment: