| Bug #35053 | === is wrong for objects and also stupid | ||||
|---|---|---|---|---|---|
| Submitted: | 1 Nov 2005 5:02pm UTC | Modified: | 1 Nov 2005 5:30pm UTC | ||
| From: | sam at liddicott dot com | Assigned to: | |||
| Status: | Wont fix | Category: | Scripting Engine problem | ||
| Version: | 4.4.0 | OS: | Linux | ||
| Votes: | 17 | Avg. Score: | 4.4 ± 1.0 | Reproduced: | 15 of 16 (93.8%) |
| Same Version: | 6 (40.0%) | Same OS: | 9 (60.0%) | ||
[1 Nov 2005 5:02pm UTC] sam at liddicott dot com
[1 Nov 2005 5:06pm UTC] derick@php.net
We can not change this behavior, as this might break existing scripts.
[1 Nov 2005 5:30pm UTC] sam at liddicott dot com
Well why not add a new operator ==== that does the job properly? Or a function getAddressOfObject (a 5 liner, surely) that returns the address of the object so a numeric compare can be done, or something that does the job that needs doing? Sam
