Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Matthew Carter Newsgroups: comp.lang.php Subject: Re: PHP7 Stack Trace Mess Date: Wed, 24 Jun 2015 22:12:48 -0400 Organization: Ahungry (http://ahungry.com) Lines: 42 Message-ID: <87mvzo4jtr.fsf@ahungry.com> References: <3t55898eadi3e2an3e8%sfroehli@Froehlich.Priv.at> <87r3p13rmn.fsf@ahungry.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="7c986cd4736462de309a749b207746fe"; logging-data="4232"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Tu8meaXXCaQjPfrjULsOG" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:7CWhSHMqfjzsu8sBs85ynHAyXYQ= sha1:2Nny1NhR96T+D5doO18NwH623ro= Xref: csiph.com comp.lang.php:15510 "Christoph M. Becker" writes: > Thomas Mlynarczyk wrote: > >> On 24/06/15 20:09, Matthew Carter wrote: >> >>> Off the direct topic, but on general topic, other than performance >>> enhancements to attempt to outdo facebook's HHVM PHP implementation (or >>> whatever its called), what type of new features does PHP7 plan to >>> introduce? >> >> Have a look here: >> > > Very nice! Haven't seen it before - thanks. > >> Among other things: >> - Scalar type hints and return type hints >> - Null coalesce operator (??) >> - Spaceship operator (<=>) > > See also . Hm, so with new strict type scalar hints it is turned on via per file (not global) basis, and whether something is strict or not is dependent on the declare being in the file that makes calls to the functions, not the file that defines the functions. Doesn't that seem sort of weird? If using a third party library that expects things to be on a strict basis, the library can't enforce the strict behaviour, it requires the user of the library to include a declare strict at the top of their file that makes use of it. What happens when two external libraries are being used, one which assumes the user is operating in strict mode, while the other assumes not? -- Matthew Carter (m@ahungry.com) http://ahungry.com