You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 PHP error that I've corrected in the file iloveimg-php/src/ImageTask.php :
In function toBrowser()
line 263 header("Content-Type:application/pdf")
changed by header("content-type:application/pdf")
line 264 header("Content-Disposition:attachment; filename=\"" . $this->outputFileName . "\"");
changed by header("content-disposition:attachment; filename=\"" . $this->outputFileName . "\"");
line 271 header("Content-Type: application/zip);
changed by header("content-type: application/zip);
line 272 header("Content-Disposition: attachment; filename=\"" . $this->outputFileName . "\"");
changed by header("content-disposition:attachment; filename=\"" . $this->outputFileName . "\"");
line 273 header("Content-Length: " . $size);
changed by header("lontent-length: " . $size);
In function downloadFile($task)
line 293 if(preg_match("/filename\*\=utf-8\'\'([\W\w]+)/", $response->headers['Content-Disposition'], $matchesUtf)) {
changed by if(preg_match("/filename\*\=utf-8\'\'([\W\w]+)/", $response->headers['content-disposition'], $matchesUtf)) {
line 296 preg_math('/ .*filename=\"([\W\w]+)\"/', $response->headers['Content-Disposition'], $matches);
changed by preg_math('/ .*filename=\"([\W\w]+)\"/', $response->headers['content-disposition'], $matches);
1 PHP warning in the file iloveimg-php/src/Exceptions/ExtendedExceptions.php :
line 20 __construct($message, $code = 0, Exception $previous = null, $response) : the function is no longer correct, you can't have a parameter without a default value ($response) after parameters that have a default value.
Is it possible you to update your library to fix this error and this warning please ? Thanks !
The text was updated successfully, but these errors were encountered:
Hi,
Using the iloveimg-php library I encounter :
1 PHP error that I've corrected in the file iloveimg-php/src/ImageTask.php :
In function toBrowser()
header("Content-Type:application/pdf")
changed by
header("content-type:application/pdf")
header("Content-Disposition:attachment; filename=\"" . $this->outputFileName . "\"");
changed by
header("content-disposition:attachment; filename=\"" . $this->outputFileName . "\"");
header("Content-Type: application/zip);
changed by
header("content-type: application/zip);
header("Content-Disposition: attachment; filename=\"" . $this->outputFileName . "\"");
changed by
header("content-disposition:attachment; filename=\"" . $this->outputFileName . "\"");
header("Content-Length: " . $size);
changed by
header("lontent-length: " . $size);
In function downloadFile($task)
if(preg_match("/filename\*\=utf-8\'\'([\W\w]+)/", $response->headers['Content-Disposition'], $matchesUtf)) {
changed by
if(preg_match("/filename\*\=utf-8\'\'([\W\w]+)/", $response->headers['content-disposition'], $matchesUtf)) {
preg_math('/ .*filename=\"([\W\w]+)\"/', $response->headers['Content-Disposition'], $matches);
changed by
preg_math('/ .*filename=\"([\W\w]+)\"/', $response->headers['content-disposition'], $matches);
1 PHP warning in the file iloveimg-php/src/Exceptions/ExtendedExceptions.php :
__construct($message, $code = 0, Exception $previous = null, $response)
: the function is no longer correct, you can't have a parameter without a default value ($response) after parameters that have a default value.Is it possible you to update your library to fix this error and this warning please ? Thanks !
The text was updated successfully, but these errors were encountered: