On Mon, 2012-02-27 at 13:05 -0600, Richard Lynch wrote:
> 
> I'd have to come up with some OTHER scenario not involving fatal
> error, such as:
> 
> strict $db = new DB();

The example is wrong. The new operator will always return an instance of
the given class (or there will be an exception). Use

strict $db = DB::factory();

for your example instead.

johannes



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to