Re: Behavior of classes type hinting together with the error handler

From: Date: Fri, 13 Mar 2015 13:30:40 +0000
Subject: Re: Behavior of classes type hinting together with the error handler
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-84680@lists.php.net to get a copy of this message
Sorry for hype. If found this text in Engine Exceptions RFC just now `The E_RECOVERABLE_ERROR part of the proposal may introduce a minor BC break, because it will no longer allow to silently ignore recoverable errors with a custom error handler. As this point is somewhat controversial I'll have a separate voting option for this.` It's realy cool! Thanks you! Best regards. Andrew Kluev. 2015-03-13 15:40 GMT+03:00 Andrew Kluev <kluev.andrew@gmail.com>: > Oh! Thanks Nikita. I did not know that the exceptions in the engine > already accepted. But in fairness, in PHP "A $a" typehint does not make > sure that "$a instanceof A " returns true. You can change "test" fucntion > in code form my first message to > > function test(A $a) > { > var_dump($a instanceof A); > } > > Output will be "bool(false)". > > Today I will try to recompile my PHP7, but with the exception of the > engine and try to reproduce this behavior. I have a view that it will be > possible to make. > > > >

« previous php.internals (#84680) next »