forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request JetBrains#722 from sirian/master
Added pecl LZF
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { } |