Hi,

On Mon, Dec 29, 2014 at 2:42 PM, Levi Morrison <le...@php.net> wrote:

> 1) providing a non-callable type is a logical error even if you
> suppress it with $throw = false

yes.

> 2) and parameter types are the standard way of checking this, not some
> odd boolean as another parameter

yes

> 3) this would make the second parameter unused

IMHO (I'm mostly a user), no. The docs say:

> This parameter specifies whether spl_autoload_register() should throw 
> exceptions
> when the autoload_function cannot be registered.

As a reader of the docs, this implies that there might be other
reasons aside of the callback not being in-fact callable for why
registration might fail. Whether there is or isn't, I couldn't tell
(I'm mainly a user, as I said).


Philip

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

Reply via email to