WPOpenID, now on PHP4
I was hacking on the Wordpress OpenID plugin today, looking for the problem that PHP4 users have been having with it. It seems that when a wordpress plugin hook is made like this
add_action( 'hookname', array( $this, 'functionname' ) );
the object referred to by $this is copied, rather than referenced. Thus, internal object state is not preserved. That was a bugger to track down.






5 Comments
Jump to comment form | comments rss [?] | trackback uri [?]