Skip to content

Commit

Permalink
Add a failing test for crashes during auto_append_file
Browse files Browse the repository at this point in the history
  • Loading branch information
epriestley committed Feb 26, 2015
1 parent 91e0be9 commit fdd10ab
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions extension/tests/xhprof_010.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--TEST--
XHProf: Crash with auto_append_file
Author: epriestley
--INI--
include_path={PWD}
auto_append_file=xhprof_010_append.php
--FILE--
<?php

xhprof_enable();
echo "MAIN\n";

?>
--EXPECTF--
MAIN
APPENDED
3 changes: 3 additions & 0 deletions extension/tests/xhprof_010_append.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

echo "APPENDED\n";

0 comments on commit fdd10ab

Please sign in to comment.