Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via composer

symfony/polyfill-php70 v1.20.0

Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
Package summary
Share
0
issues
1
license
1
MIT
Package created
25 Oct 2015
Version published
23 Oct 2020
Maintainers
1
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
symfony/polyfill-php70@v1.20.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of symfony/polyfill-php70 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does symfony/polyfill-php70 do?

The Symfony Polyfill Php70 is a PHP component designed to backport certain PHP 7.0+ features to lower PHP versions which might lack them, thereby ensuring consistency and functionality across different PHP versions. The features covered include the intdiv() function, preg_replace_callback_array() function, error_clear_last function, random_bytes and random_int capabilities, Throwable Error classes, the PHP_INT_MIN constant, and the SessionUpdateTimestampHandlerInterface.

How do you use symfony/polyfill-php70?

To use Symfony Polyfill Php70, all you have to do is include the desired feature via the use-statement in your PHP code. For instance, if you need to use the error_clear_last functionality which might not be present in your PHP version, you import it as follows:

use Symfony\Polyfill\Php70 as p;
$clear_error_last = p\error_clear_last();

Notably, to ensure your code is portable between PHP5 and PHP7, you have to code with caution; especially where *Error exceptions must be caught before \Exception ; and after calling error_clear_last(), you should verify the result of $e=error_get_last() using isset($e['message'][0]) instead of the null!==$e.

Where are the symfony/polyfill-php70 docs?

The documentation for Symfony Polyfill Php70 is not directly provided in an individual page; rather, it's found within the main README of the Symfony Polyfill on GitHub. Users can access comprehensive information and usage guidelines by visiting the main Symfony Polyfill README on GitHub. This README gives an overview of all the polyfills provided by Symfony, offering a handy reference and guide.