News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mike Lively's Blog:
Late Static Binding (LSB) forward_static_call()
April 09, 2008 @ 11:24:19

On his blog, Mike Lively has posted a look at some of the work he's been doing on patches for the late static binding functionality to be included in PHP, including an example of the updates in action.

This weekend I wrapped up a few small tests and sent the patch in and it was subsequently pushed to php 5.3 and php 6.0. Now, this is not at all the way I wanted things to work, in all honesty I think the patch is pretty hokey but unfortunately nobody really spoke up in support of the changes I wanted to make to parent:: in regards to LSB.

His example shows how to override a static method and push that new method's execution to the parent class (in two ways - safe using forward_static_call and the not so safe calling itself with a parent:: override).

0 comments voice your opinion now!
latestaticbinding php5 php6 patch safe unsafe parent forwardstaticcall


blog comments powered by Disqus

Similar Posts

Windows Skills Blog: Using SQLite as a database backend for a lightweight server

The PHP Grind: Get real about PHP4 vs. PHP5!

Zend Developer Zone: Installing PHP4 and PHP5 Concurrently on One WinXP Computer

Michael Bommarito\'s Blog: Day Three - PHP5 vs PHP6 Benchmark

Ed Finkler's Blog: What Matt Mullenweg doesn't know about PHP5, and how it hurts him and his users


Community Events











Don't see your event here?
Let us know!


symfony2 install performance release framework package hhvm component composer project unittest introduction application podcast hack database security example facebook language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework