The patch showcase: selfat 2005-01-09 in PHP5 by friebe (0 comments) The keyword self can be used like $this for static classes - the problem with the current implementation is that it does not respect the "runtime class" (don't know how to describe this any better...). See also this discussion on the PHP developer's mailinglist.As of today the patch fixes this. The following now works as one would intuitively expect: <?php This outputs "B" - credits go to Alex |
|