On 12.09.2017 at 14:02, Christoph M. Becker wrote:
> Usually constant identifiers are treated case-sensitive in PHP. This is
> always the case for constants defined via a `const` declaration.
> However, define() allows to pass TRUE as third argument to define a
> case-insensitive constant. This
Hi!
> If they were truly case-insensitive, I might agree. However, as I've
> mentioned but will reiterate, they're not. They're ASCII case
> insensitive, and that's a long cry from real case-insensitivity. PHP
> 6 was planning to make case-insensitivity real but obviously that's
> dead and buri
Hi!
> Does deprecating case insensitive constants clear the bar of
> 'substantial gains to be had'? Personally, I don't think so. Yes, a
> marginal edge case that took almost 20 years to surface would become
> marginally better (and that edge case is arguably
We could fix that case by banning d
Hi!
>> This was a request for feedback
>
> then you should withstand the feedback!
Request for feedback does not mean consent for abuse. You can criticize
without being offensive.
--
Stas Malyshev
smalys...@gmail.com
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, vis
On Sat, Sep 16, 2017 at 11:04 AM, Zeev Suraski wrote:
> arguably, making all constants case insensitive
> would in fact be the better solution
>
If they were truly case-insensitive, I might agree. However, as I've
mentioned but will reiterate, they're not. They're ASCII case
insensitive, and tha
> -Original Message-
> From: morrison.l...@gmail.com [mailto:morrison.l...@gmail.com] On Behalf
> Of Levi Morrison
> Sent: Saturday, September 16, 2017 6:25 PM
> To: Zeev Suraski
> Cc: Christoph M. Becker ; internals@lists.php.net
> Subject: Re: [PHP-DEV] Deprecate and remove case-insens
Again, tell me I'm wrong. I have no problem with that. After all I'd still need
50%+ of people with voting privileges to agree with me which is rather unlikely
if it has major flaws.
I don't claim to know it all, you don't need to get rude for me to listen. As
soon as you do that the discussion
On 9/16/2017 3:50 AM, ilija.tov...@me.com wrote:
That’s fine, I have no problem with feedback. I changed my mind once other
people pointed out the flaws in my thinking. Politely.
Sorry for spending my free time thinking about how to make PHP better. I’m not
claiming to be an expert in any mean
I think there is some idea we can borrow from the discussion of unserialize
security policy. `extract` should not be used on untrusted input, and that's it.
Best regrads,
CHU Zhaowei
On Fri, Sep 15, 2017 at 7:20 PM, wrote:
> Hi!
>
> The `extract` function takes an associative array and
> First, in the example referenced above, arguably, making all constants case
> insensitive would in fact be the better solution - as you likely don't want
> both sOmE_CoNsT and SOME_CONST, or more reaslitically - Some_Const and
> SOME_CONST to both exist in your app - a situation case sensitive
> -Original Message-
> From: Christoph M. Becker [mailto:cmbecke...@gmx.de]
> Sent: Tuesday, September 12, 2017 3:03 PM
> To: internals@lists.php.net
> Subject: [PHP-DEV] Deprecate and remove case-insensitive constants?
>
> Hi everybody!
>
> Usually constant identifiers are treated case-s
Am 16.09.2017 um 13:48 schrieb Marco Pivetta:
"then don't use it" worked great for `register_globals` and
`magic_quotes`. Not saying it is the same here, but you really ought to
have a bit of a mentality adjustment
so when it is not the same why do you mention it?
there is a difference betw
"then don't use it" worked great for `register_globals` and `magic_quotes`.
Not saying it is the same here, but you really ought to have a bit of a
mentality adjustment.
On 16 Sep 2017 11:36, "li...@rhsoft.net" wrote:
Am 15.09.2017 um 19:20 schrieb ilija.tov...@me.com:
> Hi!
>
> The `extract
""Christoph M. Becker"" wrote in message
news:7f14af9e-cd8c-3a73-e487-7219a7630...@gmx.de...
On 16.09.2017 at 11:16, Tony Marston wrote:
There is no such thing as "Pissed with a capital 'P' means drunk" and
"pissed with a lowercase 'p' means unhappy".
"It's Nice" vs. "It's nice".
"Nice" p
"Alain Williams" wrote in message
news:20170916094055.gm8...@phcomp.co.uk...
On Sat, Sep 16, 2017 at 10:29:26AM +0100, Tony Marston wrote:
People keep telling me that switching between upper and lower case
for all character sets in the universe is not 100% simple because of
a small number of
wrote in message news:b7f14ab8-feed-b3d8-293a-ac658adab...@rhsoft.net...
Am 16.09.2017 um 11:36 schrieb Tony Marston:
wrote in message news:bd24d73e-4999-ffd9-ce03-6b7629037...@rhsoft.net...
after i switched every piece of code i write the last 15 years tpo
strict-types, typhe-hints and retu
On 16.09.2017 at 11:16, Tony Marston wrote:
> There is no such thing as "Pissed with a capital 'P' means drunk" and
> "pissed with a lowercase 'p' means unhappy".
"It's Nice" vs. "It's nice".
> The idea that the entire universe should have to change its rules
> regarding switching between upper
Am 16.09.2017 um 11:36 schrieb Tony Marston:
wrote in message news:bd24d73e-4999-ffd9-ce03-6b7629037...@rhsoft.net...
after i switched every piece of code i write the last 15 years tpo
strict-types, typhe-hints and return-types everywhere while also write
a complete autotest suite you can't t
That’s fine, I have no problem with feedback. I changed my mind once other
people pointed out the flaws in my thinking. Politely.
Sorry for spending my free time thinking about how to make PHP better. I’m not
claiming to be an expert in any means, hence the RFC.
On 16 Sep 2017, 11:49 +0200, li.
Am 16.09.2017 um 11:44 schrieb ilija.tov...@me.com:
Dude, calm down.
dude when people have no other hobbies than think about removing
functionality for *no gain*
This was a request for feedback
then you should withstand the feedback!
why don't you spend your time for *add* features inst
Dude, calm down.
This was a request for feedback. As other people have pointed out before it may
not be the best idea to remove it since there’s no good way to write the
equivalent code in PHP. No reason to be rude.
On 16 Sep 2017, 11:42 +0200, li...@rhsoft.net , wrote:
>
>
> Am 15.09.2017 um 2
Am 15.09.2017 um 20:27 schrieb Arvids Godjuks:
well, basically, none. Results are from a Q6600 machine and under windows,
so your mileage probably gonna be quite better :)
well, and now implement the EXTR_SKIP in PHP code - that becomes a ugly
piece of code and that only because someone like
On Sat, Sep 16, 2017 at 10:29:26AM +0100, Tony Marston wrote:
> People keep telling me that switching between upper and lower case
> for all character sets in the universe is not 100% simple because of
> a small number of exceptions. So what? Identify the exceptions and
> write code which deals wi
Am 15.09.2017 um 19:38 schrieb ilija.tov...@me.com:
I can see your argument. The reasoning behind it is that a function in the
standard library should not encourage unsafe code. Admittedly, since this
function is rarely used
who do you think you are that you can qualify this?
breaking news:
wrote in message news:bd24d73e-4999-ffd9-ce03-6b7629037...@rhsoft.net...
Am 15.09.2017 um 16:58 schrieb Tony Marston:
wrote in message news:5fe274c1-36de-e650-fd2c-bc4f9caf3...@rhsoft.net...
Am 15.09.2017 um 11:25 schrieb Tony Marston:
You are missing a third option - Microsoft languages ar
Am 15.09.2017 um 19:20 schrieb ilija.tov...@me.com:
Hi!
The `extract` function takes an associative array and puts it into the local
symbol table.
http://php.net/manual/en/function.extract.php
```
$array = [
‘foo’ => ‘foo’,
‘bar’ => ‘bar’,
];
extract($array);
print $foo; // "foo"
wrote in message news:ba7ed73b-8547-2029-7344-6705a70c6...@rhsoft.net...
Am 15.09.2017 um 16:38 schrieb Tony Marston:
wrote in message news:8bbcc1fc-0d13-27d4-a04f-0a5ebda4c...@rhsoft.net...
Am 15.09.2017 um 11:12 schrieb Tony Marston:
I am not asking the world to slow down because I am too
wrote in message news:c257f203-2c8e-f6d3-f5cd-597310957...@rhsoft.net...
Am 15.09.2017 um 16:15 schrieb Tony Marston:
Can you show me any language where a single character has multiple
alternatives when switching case?
http://cdn.webfail.com/upl/img/07181c2ca27/post2.jpg
___
"Rowan Collins" wrote in message
news:a7ffce81-74e5-47d0-9ebf-9bdc90e2e...@gmail.com...
On 14 September 2017 10:23:48 BST, Tony Marston
Would this problem disappear by using UTF8 instead of the Turkish
character
set? If so then ten no other solution would be required.
No, the problem has not
29 matches
Mail list logo