Skip to content

Commit

Permalink
fix: use CURLOPT_HEADERFUNCTION for better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
typpo committed Dec 27, 2023
1 parent 7bb399e commit d2f5513
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/broken_config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
require_once('../QuickChart.php');

$qc = new QuickChart();
$qc->setConfig("{
type: 'unknownfoobar',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4'],
datasets: [{
label: 'Users',
data: [50, 60, 70, 180]
}]
}
}");

echo $qc->toFile('/tmp/chart.png');
?>

0 comments on commit d2f5513

Please sign in to comment.