Hi all,
Tony's not alone, I'm also playing with PHP 6 today.
As Edward mentioned when I started talking about the upgrade path, we don't
have a way to cope with the (binary)|(b) cast prior to PHP 5.2.1. It's
arguable that most people will have access to PHP > 5.2.1, but that's not
100% useful if you have something you'd like to 'just work' regardless of
other peoples' updates. Personally I'm stuck with the choice of making the
default phar stub forward compatible or backward compatible - there's no way
to do both.
Can someone please explain why (string) isn't a pseudonym for (binary) in
PHP 6.0? There's probably a very good reason and I'm just not seeing it...
but it would go a long way to solving the problem if it were.
- Steph
Because the majority of use cases involving strings do not involve
binary strings. Or, as Rasmus said, "logic".
-Andrei
Steph Fox wrote:
Hi all,
Tony's not alone, I'm also playing with PHP 6 today.
As Edward mentioned when I started talking about the upgrade path, we
don't have a way to cope with the (binary)|(b) cast prior to PHP 5.2.1.
It's arguable that most people will have access to PHP > 5.2.1, but
that's not 100% useful if you have something you'd like to 'just work'
regardless of other peoples' updates. Personally I'm stuck with the
choice of making the default phar stub forward compatible or backward
compatible - there's no way to do both.Can someone please explain why (string) isn't a pseudonym for (binary)
in PHP 6.0? There's probably a very good reason and I'm just not seeing
it... but it would go a long way to solving the problem if it were.
- Steph
Because the majority of use cases involving strings do not involve
binary strings. Or, as Rasmus said, "logic".
Not strings, casts to string.
Or is there no way to differentiate between them?
- Steph
-Andrei
That would be a major WTF factor for me: strings are unicode but
(string) is binary.
-Andrei
Steph Fox wrote:
Because the majority of use cases involving strings do not involve
binary strings. Or, as Rasmus said, "logic".Not strings, casts to string.
Or is there no way to differentiate between them?
- Steph
-Andrei