Re: Fwd: [PHP-CVS] com php-src: Fix tests I broke with the E_ERROR > E_RECOVERABLE_ERROR change: tests/output/ob_010.phpt tests/output/ob_011.phpt
tests/output/ob_start_error_005.phpt
| From: | Philip Hofstetter | Date: | Mon, 29 Dec 2014 13:54:58 +0000 |
| Subject: | Re: Fwd: [PHP-CVS] com php-src: Fix tests I broke with the E_ERROR > E_RECOVERABLE_ERROR change: tests/output/ob_010.phpt tests/output/ob_011.phpt tests/output/ob_start_error_005.phpt |
||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-79999@lists.php.net to get a copy of this message | ||
Hi,
On Mon, Dec 29, 2014 at 2:42 PM, Levi Morrison <levim@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