I'm running PHP version 7.0.2 on OS X El Capitan and every time I execute a PHP script that contains some erroneous code, it reports the error and then seems to perform a backtrace automatically. I'm not so sure if this is a new feature in PHP 7, however I cannot seem to find mention of it anywhere or anyone else who's facing a similar problem.
For Example:
<?php
echo $a;
?>
Will return the following output if executed from CLI:
PHP Notice: Undefined variable: a in /Path/to/file.php on line 2
PHP Stack trace:
PHP 1. {main}() /Path/to/file.php:0
Notice: Undefined variable: a in /Path/to/file.php on line 2
Call Stack:
0.0002 350944 1. {main}() /Path/to/file.php:0
Any insight on what might be causing the problem is welcome. Thanks.