Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

E Pluribus Unix


devel / comp.lang.php / Re: Are there any differences between php 7.0 and 7.1 when handling undefined variables?

SubjectAuthor
o Re: Are there any differences between php 7.0 and 7.1 when handlingAngel

1
Re: Are there any differences between php 7.0 and 7.1 when handling undefined variables?

<9335f2eb-f318-4190-afb4-ef001d986451n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=568&group=comp.lang.php#568

  copy link   Newsgroups: comp.lang.php
X-Received: by 2002:a1c:f20b:0:b0:39e:f4b9:24e3 with SMTP id s11-20020a1cf20b000000b0039ef4b924e3mr4922611wmc.51.1656522083951;
Wed, 29 Jun 2022 10:01:23 -0700 (PDT)
X-Received: by 2002:a81:528b:0:b0:31b:6bb9:d1c9 with SMTP id
g133-20020a81528b000000b0031b6bb9d1c9mr4730393ywb.357.1656522083373; Wed, 29
Jun 2022 10:01:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!pasdenom.info!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.php
Date: Wed, 29 Jun 2022 10:01:23 -0700 (PDT)
In-Reply-To: <7502d3d8-62b4-411d-ad17-4947e64f59b0@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.253.192.76; posting-account=HfIszAoAAAC8ch6q3uChpTWUALHCfEoF
NNTP-Posting-Host: 85.253.192.76
References: <7502d3d8-62b4-411d-ad17-4947e64f59b0@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9335f2eb-f318-4190-afb4-ef001d986451n@googlegroups.com>
Subject: Re: Are there any differences between php 7.0 and 7.1 when handling
undefined variables?
From: he12091983@gmail.com (Angel)
Injection-Date: Wed, 29 Jun 2022 17:01:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Angel - Wed, 29 Jun 2022 17:01 UTC

Always add a value to a variable. Do not leave a variable undefined, it can produce serious problems running the app.

harriett...@gmail.com kirjutas Teisipäev, 27. märts 2018 kl 21:43:19 UTC+2:
> I have a php app that's been working for months. Then all of a sudden it starts to render Internal Server 500 errors when encountering undefined variables in code. I had to use isset() to check the variables first.
>
> I also found that the app server is installed with two versions of PHP - 7.0 and 7.1. There are two handlers mapped to *.php files. When I run phpinfo(), it's version 7.1 info displays. I wonder if there is any differences between how version 7.0 and 7.1 handle undefined new variables.
>
> Any ideas? Many thanks.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor