Error Caught: DivisionByZeroError:Division by zero Error Caught: ParseError:syntax error, unexpected identifier "will"
( ! ) Warning: file_put_contents(/var/www/html/php7cookbook/source/chapter13/logs/20261121.log): Failed to open stream: No such file or directory in /var/www/html/php7cookbook/source/Application/Error/Handler.php on line 23
Call Stack
#TimeMemoryFunctionLocation
10.0005368520Application\Error\Handler->exceptionHandler( $ex = class DivisionByZeroError { protected $message = 'Division by zero'; private string ${Error}string = ''; protected $code = 0; protected string $file = '/var/www/html/php7cookbook/source/Application/Error/ThrowsError.php'; protected int $line = 11; private array ${Error}trace = [0 => [...]]; private ?Throwable ${Error}previous = NULL } ).../Handler.php:0
20.0005368840file_put_contents( $filename = '/var/www/html/php7cookbook/source/chapter13/logs/20261121.log', $data = 'EXCEPTION: 2026-11-21 15:25:30 : DivisionByZeroError : Division by zero\n', $flags = 8 ).../Handler.php:30
30.0006369288Application\Error\Handler->errorHandler( $errno = 2, $errstr = 'file_put_contents(/var/www/html/php7cookbook/source/chapter13/logs/20261121.log): Failed to open stream: No such file or directory', $errfile = '/var/www/html/php7cookbook/source/Application/Error/Handler.php', $errline = 30 ).../Handler.php:30
40.0006369608file_put_contents( $filename = '/var/www/html/php7cookbook/source/chapter13/logs/20261121.log', $data = 'ERROR : 2026-11-21 15:25:30 : 2 : file_put_contents(/var/www/html/php7cookbook/source/chapter13/logs/20261121.log): Failed to open stream: No such file or directory : /var/www/html/php7cookbook/source/Application/Error/Handler.php : 30\n', $flags = 8 ).../Handler.php:23