Skip to content

Commit

Permalink
updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 7, 2015
1 parent 53737d9 commit 4c1bd55
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/fatal-error.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function second($arg1, $arg2)

function third($arg1)
{
missing_funcion();
echo html_special_chars($arg1); // this function doesn't exist
}


Expand Down
22 changes: 22 additions & 0 deletions examples/notice.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html><link rel="stylesheet" href="assets/style.css">

<h1>Tracy Notice and StrictMode demo</h1>

<?php

require __DIR__ . '/../src/tracy.php';

use Tracy\Debugger;


Debugger::enable(Debugger::DETECT, __DIR__ . '/log');
Debugger::$strictMode = TRUE;


function foo($from)
{
echo $form;
}


foo(123);

0 comments on commit 4c1bd55

Please sign in to comment.