Hi Thomas, > On 14 Jan 2015, at 13:04, Thomas Nunninger <tho...@nunninger.info> wrote: > > Sorry, if my mail was not clear. My point was: If I write a library in strict > mode and someone else is using it from his non-strict mode, he can pass an > integer to myFunc() without an error. If I use this integer in my library and > hand it over to otherFunc() (in my library) this will fail as integer is not > accepted for float. > > Or did I misunderstood the RFC and there is a casting of the integer to a > float when calling myFunc()?
The value would be casted, yes. From the function author’s perspective, there’s no need to worry about strict vs. weak typing: in both cases, you get the type you asked for. Thanks. -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php