Skip to content

Conversation

@browner12
Copy link
Contributor

use the extension_loaded method to check if the 'zip' extension is loaded rather than checking for a class in the extension.

while probably an edge case, there could be a user defined \ZipArchive class that would cause this conditional to pass, even when the extension is not loaded.

http://php.net/manual/en/function.extension-loaded.php

use the `extension_loaded` method to check if the 'zip' extension is loaded rather than checking for a class in the extension.

while probably an edge case, a their could be a user defined `\ZipArchive` class that would cause this conditional to pass, even when the extension is not loaded.
@taylorotwell taylorotwell merged commit e22bcc9 into laravel:master Feb 27, 2019
@browner12 browner12 deleted the gzip-extension branch February 27, 2019 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants