Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> php >> php-symfony-polyfill-php70
etiona  ]
[ 原始碼: php-symfony-polyfill  ]

套件: php-symfony-polyfill-php70 (1.6.0-2)

Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions

This component provides features unavailable in releases prior to PHP 7.0:

 * intdiv
 * preg_replace_callback_array
 * error_clear_last
 * random_bytes and random_int (via php-random-compat)
 * *Error throwable classes

Compatibility notes:

To write portable code between PHP5 and PHP7, some care must be taken:

 * `\*Error` exceptions must be caught before `\Exception`;
 * after calling `error_clear_last()`, the result of
   `$e = error_get_last()` must be verified using
   `isset($e['message'][0])` instead of `null === $e`.

The Symfony Polyfill project backports features found in the latest PHP versions and provides compatibility layers for some extensions and functions. It is intended to be used when portability across PHP versions and extensions is desired.

Symfony is a PHP framework, a set of tools and a development methodology.

其他與 php-symfony-polyfill-php70 有關的套件

  • 依賴
  • 推薦
  • 建議

下載 php-symfony-polyfill-php70

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 5.7 kB29 kB [文件列表]