Re: Unsetting loop variables at the end of the loop
| From: | jvlad | Date: | Mon, 28 Dec 2009 10:58:09 +0000 |
| Subject: | Re: Unsetting loop variables at the end of the loop | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46547@lists.php.net to get a copy of this message | ||
> Do you think we are deprecating split() just for fun?
Yes, exactly. It's just made for _fun_ by core developers and brought
headache
to people developing in php.
> We are letting you know that you need to start thinking about migrating
> your code away from non-Unicode aware functions like ereg() and split().
Well, this filled up my php logs with some million records telling me this!
Do you think it's safer to keep thinking and have an opportunity to miss
anything
dangerous in the logs just becase they are flooded.
> The Web is going entirely Unicode as is PHP 6 and these functions simply
> do not
> support Unicode strings. preg_split() is a decent substitute and you
> should be able to convert to it with only minor changes in your regex.
If these changes are minor, why don't you provide a version of split for
php6 that will make them
on the fly? Why don't you consider the other scenarios that would maintain
the language BC?
>
> And this has nothing to do with this thread. Please keep your rants at
> least somewhat on topic.
It has direct relation to this thread because it's all about the policy of
the changes in the language.
Some pain changes are already done, some painless are not allowed.
Whould you please make your position more public and clearer?
-jv