Re: type hinting

From: Date: Mon, 07 Jan 2008 00:59:38 +0000
Subject: Re: type hinting
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-34565@lists.php.net to get a copy of this message
On Jan 7, 2008 12:01 AM, Stefan Priebsch <stefan.priebsch@e-novative.de> wrote: > Pierre schrieb: > > That what happens now with the numerous fatal errors. That's not the > > case with an E_RECOVERABLE error. PHP has no compiler and all errors > > will be see at runtime, even fatals like missing classes, functions, > > methods, wrong interfaces or bad usages of set/getters. > > Sorry, not true. PHP does compile first and E_STRICT errors show up at > compile time, which you can observe running a php -l lint check on a > file E_STRICT errors and an appropriate error reporting level. But > that's not really to the point, I know. Syntax check are not what we are talking about. By compilers, I mean that you don't have a warning because you are passing the wrong instance or type to a function like you can have in C. -- Pierre http://blog.thepimp.net | http://www.libgd.org

« previous php.internals (#34565) next »