Skip to content

Commit

Permalink
Merge pull request JetBrains#722 from sirian/master
Browse files Browse the repository at this point in the history
Added pecl LZF
  • Loading branch information
isfedorov authored Dec 23, 2019
2 parents a532ba4 + 4f4d89f commit 932eddb
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2852,6 +2852,9 @@ final class PhpStormStubsMap
'long2ip' => 'standard/standard_3.php',
'lstat' => 'standard/standard_7.php',
'ltrim' => 'standard/standard_1.php',
'lzf_compress' => 'lzf/lzf.php',
'lzf_decompress' => 'lzf/lzf.php',
'lzf_optimized_for' => 'lzf/lzf.php',
'magic_quotes_runtime' => 'standard/standard_3.php',
'mail' => 'standard/standard_7.php',
'mailparse_determine_best_xfer_encoding' => 'mailparse/mailparse.php',
Expand Down
38 changes: 38 additions & 0 deletions lzf/lzf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

/**
* Compresses the given data string using LZF encoding.
*
* @link https://www.php.net/manual/en/function.lzf-compress.php
*
* @param string $data Data to be compressed
*
* @return false|string Returns the compressed data or FALSE if an error occurred.
*
* @since 0.1.0
*/
function lzf_compress($data) { }

/**
* Decompresses the given data string containing lzf encoded data.
*
* @link https://www.php.net/manual/en/function.lzf-decompress.php
*
* @param string $data The compressed string.
*
* @return false|string Returns the decompressed data or FALSE if an error occurred.
*
* @since 0.1.0
*/
function lzf_decompress($data) { }

/**
* Determines what was LZF extension optimized for during compilation.
*
* @link https://www.php.net/manual/en/function.lzf-optimized-for.php
*
* @return int Returns 1 if LZF was optimized for speed, 0 for compression.
*
* @since 1.0.0
*/
function lzf_optimized_for() { }

0 comments on commit 932eddb

Please sign in to comment.