Re: Example parse, output is different
| From: | Christoph Becker | Date: | Wed, 20 Jul 2016 22:14:21 +0000 |
| Subject: | Re: Example parse, output is different | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969386202@lists.php.net to get a copy of this message | ||
On 20.07.2016 at 17:58, Michel Morel wrote:
> I'm not sure if this is the right place to report this..
No, it is not. This list is for discussing and maintaining the php.net
web infrastructure. You can ask support questions on
<php-general@lists.php.net> and file bug reports to
<https://bugs.php.net/>. :-)
> I was reading at
> http://php.net/manual/en/language.variables.basics.php
> On Example #1
> // Boolean usage; outputs 'false' (See ternary operators for more on
> this syntax)
> echo($unset_bool ? "true\n" : "false\n");
> However, when I run this on my PHPStorm IDE, my output is different and
> does not return false as the comments suggested and instead returns
> Undefined variable.
The documentation doesn't mention that this example assumes that
error_reporting is off (see <https://3v4l.org/aooBS>).
I'll fix that
right away, so no need to file a doc bug for this.
--
Christoph M. Becker