[wp-hackers] Plugin API: Unique ID explanation
jordi at jcanals.net
Sat Aug 8 00:57:58 UTC 2009
PHP5 has less of this problem, because objects are passed by reference by
That's not exact. in PHP 5 objects are not passed by reference by default.
It copies the object accessors from original variable to a new one, so both
variables access the same object.
And normally, in PHP 5 it is recommended not to pass objects by reference.
As call-time pass-by-reference is deprecated.
> Jacob Santos
>  This is obviously a lie.
>  http://core.trac.wordpress.org/ticket/10487
>  The overall design flaw wasn't that the same object being referenced
> could no longer be referenced in the future because it would inevitably
> change, it was that the same object was being used in the first place. The
> fact that static methods and functions don't have this problem needs to be
> researched further.
>  Well, it appears that the only reason it worked, was that the algorithm
> was flawed in such a way that it did was it was intended, but not correctly
> in such a way that it just hid the bug in a really clever way.
>  Programmers have different levels of competence in different areas of
> programming. Some people can create solutions like you've never seen, but
> just really can't do shit about OOP (OOP isn't about putting functions
> wrapped in a container with global variables with different levels of
> visibility, well it is, but it is more than that and I hate arguing about
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers