aferrandini/PHPQRCode — pull request #7 by C-Duv (2013-10-30 01:53:34+00:00)
Title: PNG render method's $saveandprint param was forced to false when passed to QRencode

I was trying to render a QRcode in PNG to browser AND storing for cache matter

```php
$qrCodeFile = 'cache/'.md5($val).'.png';
if (file_exists($qrCodeFile)) {
header('Content-type: image/png');
readfile($qrCodeFile);
exit;
} else {
QRcode::png($val, $qrCodeFile, Constants::QR_ECLEVEL_L, 3, 1, true);
}
```

And realized that the QRcode wasn't rendered on browser on first run (file was correctly saved though).

The issue resides in `QRcode::png()` where `QRencode::encodePNG()` last parameter (`$saveandprint`) is forced to `bool(false)` whatever the `QRcode::png()`'s `$saveandprint` value is.