Skip to content

Instantly share code, notes, and snippets.

@GabLeRoux
Last active January 22, 2018 05:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GabLeRoux/0ed36fdf5bdafbd07dda79da5f4b3b74 to your computer and use it in GitHub Desktop.
Save GabLeRoux/0ed36fdf5bdafbd07dda79da5f4b3b74 to your computer and use it in GitHub Desktop.
One of the reasons why I don't like PHP

nope.php:

<?php

echo "some undefined variable" + $undefined_shit;
echo "please don't print";
php nope.php

Output:

PHP Notice:  Undefined variable: undefined_shit in /Users/gableroux/nope.php on line 3

Notice: Undefined variable: undefined_shit in /Users/gableroux/nope.php on line 3
0please don't print

nope nope nope nope

php --version
PHP 7.0.27 (cli) (built: Jan  5 2018 12:26:39) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
@MathieuAuclair
Copy link

Also it seems that built-in debug log is depricated in php!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment