Re: Bug #12690 Updated: array_unique under windows does not work as it does under linux
| From: | Jeroen van Wolffelaar | Date: | Sat, 15 Sep 2001 23:16:11 +0000 |
| Subject: | Re: Bug #12690 Updated: array_unique under windows does not work as it does under linux | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-66032@lists.php.net to get a copy of this message | ||
> then why does this work in version 4.0.4 ?
It was an implementation side-effect. It was not intentionally.
The same issue as that, for example, you can specify a variable violating
the naming rules by using:
$GLOBALS["0a\n"] = "Some value";
because it would be bad for performance to check for validness of the
variable-name, and it isn't easy to do either. Nevertheless you should not
trust on this capability: It could change in the future.
See also bug 12367, the comments by venaas@php.net
--Jeroen