Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15510

Re: PHP7 Stack Trace Mess

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 <m@ahungry.com>
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> (permalink)
References <mmbqe8$c2u$1@news.albasani.net> <3t55898eadi3e2an3e8%sfroehli@Froehlich.Priv.at> <mmc6sf$fnk$1@solani.org> <mmcf66$5jf$1@news.albasani.net> <mmcl3h$5l0$1@solani.org> <mmdqki$4gj$1@news.albasani.net> <mmerau$3l2$1@solani.org> <87r3p13rmn.fsf@ahungry.com> <mmeu5v$ibm$1@news.albasani.net> <mmfdas$5g7$1@solani.org>
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

Show key headers only | View raw


"Christoph M. Becker" <cmbecker69@arcor.de> 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:
>> <http://www.slideshare.net/jpauli/php7-is-coming>
>
> 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 <https://github.com/tpunt/PHP7-Reference>.

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

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

PHP7 Stack Trace Mess Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-06-23 16:28 +0200
  Re: PHP7 Stack Trace Mess Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2015-06-23 16:58 +0000
    Re: PHP7 Stack Trace Mess "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-23 20:00 +0200
      Re: PHP7 Stack Trace Mess Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-06-23 22:22 +0200
        Re: PHP7 Stack Trace Mess "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-24 00:03 +0200
          Re: PHP7 Stack Trace Mess Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-06-24 10:44 +0200
            Re: PHP7 Stack Trace Mess "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-24 20:02 +0200
              Re: PHP7 Stack Trace Mess Matthew Carter <m@ahungry.com> - 2015-06-24 14:09 -0400
                Re: PHP7 Stack Trace Mess Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-06-24 20:50 +0200
                Re: PHP7 Stack Trace Mess "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-25 01:09 +0200
                Re: PHP7 Stack Trace Mess Matthew Carter <m@ahungry.com> - 2015-06-24 22:12 -0400
                Re: PHP7 Stack Trace Mess Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-06-25 10:02 +0200
                Re: PHP7 Stack Trace Mess "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-25 15:48 +0200
                Re: PHP7 Stack Trace Mess Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-06-25 18:04 +0200
                Re: PHP7 Stack Trace Mess "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-25 19:14 +0200
    Re: PHP7 Stack Trace Mess Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2015-06-23 22:07 +0200
      Re: PHP7 Stack Trace Mess "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-06-23 22:15 +0200
      Re: PHP7 Stack Trace Mess Stefan+Usenet@Froehlich.Priv.at (Stefan Froehlich) - 2015-06-24 06:13 +0000

csiph-web