Changeset View
Changeset View
Standalone View
Standalone View
src/applications/cache/PhabricatorCaches.php
Context not available. | |||||
* @task compress | * @task compress | ||||
*/ | */ | ||||
public static function maybeDeflateData($value) { | public static function maybeDeflateData($value) { | ||||
$len = strlen($value); | $len = @strlen($value); | ||||
if ($len <= 1024) { | if ($len <= 1024) { | ||||
return null; | return null; | ||||
} | } | ||||
Context not available. | |||||
return null; | return null; | ||||
} | } | ||||
$deflated_len = strlen($deflated); | $deflated_len = @strlen($deflated); | ||||
if ($deflated_len >= ($len / 2)) { | if ($deflated_len >= ($len / 2)) { | ||||
return null; | return null; | ||||
} | } | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0