Tag

fibers

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Dec 2, 2024 · Backend Development

Understanding PHP 8.1 Fibers: How They Work and Their Limitations

This article explains PHP 8.1 Fibers, describing their cooperative multitasking mechanism, how suspension and resumption affect the main script, why they do not provide true asynchronous execution, and how they can be combined with event loops for more efficient non‑blocking code in backend development.

BackendConcurrencyEvent Loop
0 likes · 7 min read
Understanding PHP 8.1 Fibers: How They Work and Their Limitations
php中文网 Courses
php中文网 Courses
Aug 22, 2024 · Backend Development

Understanding PHP 8.1 Fibers: Concepts, Usage, and Practical Examples

This article explains PHP 8.1's Fibers feature, describing how they enable lightweight cooperative multitasking, showing basic and advanced code examples for non‑blocking I/O, parallel API/database calls, and large‑file processing, and discusses benefits, use‑cases, and important limitations.

ConcurrencyNon-blocking I/OPHP 8.1
0 likes · 12 min read
Understanding PHP 8.1 Fibers: Concepts, Usage, and Practical Examples
php中文网 Courses
php中文网 Courses
May 24, 2023 · Backend Development

What Are Fibers in PHP 8.0 and How to Use Them to Solve High Concurrency Issues

This article explains PHP 8.0 Fibers as lightweight coroutines, why they improve high‑concurrency performance, and provides step‑by‑step Swoole‑based code examples for creating connection pools and managing asynchronous tasks in backend applications.

BackendConcurrencyPHP
0 likes · 4 min read
What Are Fibers in PHP 8.0 and How to Use Them to Solve High Concurrency Issues
Laravel Tech Community
Laravel Tech Community
Dec 27, 2021 · Backend Development

New Features in PHP 8.1

The article outlines PHP 8.1’s major enhancements—including enums, readonly properties, advanced callable syntax, fibers, intersection types, never return type, final class constants, octal literals, and performance improvements—providing code comparisons that illustrate the new syntax and behavior.

8.1PHPPerformance
0 likes · 9 min read
New Features in PHP 8.1
php中文网 Courses
php中文网 Courses
Dec 8, 2021 · Backend Development

Top 10 New Features in PHP 8.1

This article introduces the ten most important new features of PHP 8.1—including enums, fibers, the never return type, readonly properties, final class constants, array_is_list(), fsync/fdatasync, string‑key array unpacking, the $_FILES full_path key, and the IntlDatePatternGenerator class—each explained with clear code examples.

BackendReadOnlyarray_is_list
0 likes · 15 min read
Top 10 New Features in PHP 8.1
Laravel Tech Community
Laravel Tech Community
Nov 28, 2021 · Backend Development

What's New in PHP 8.1.0: Enums, Read‑only Properties, First‑class Callable Syntax, Fibers and More

PHP 8.1.0 introduces enums, read‑only properties, first‑class callable syntax, new initializers, intersection types, never return type, final class constants, explicit octal literals, fibers, string‑keyed array unpacking, and numerous performance optimizations, providing developers with richer language features and faster execution.

BackendPHPPerformance
0 likes · 5 min read
What's New in PHP 8.1.0: Enums, Read‑only Properties, First‑class Callable Syntax, Fibers and More
php中文网 Courses
php中文网 Courses
Nov 16, 2021 · Backend Development

Understanding PHP 8.1 Fibers: Theory, Practical Use, and Limitations

This article explains the concept of PHP 8.1 Fibers, compares synchronous and parallel HTTP request handling, shows how to implement simple asynchronous workflows with sockets or ReactPHP, and discusses why Fibers are low‑level building blocks rather than a complete async solution.

AsyncConcurrencyfibers
0 likes · 8 min read
Understanding PHP 8.1 Fibers: Theory, Practical Use, and Limitations
Laravel Tech Community
Laravel Tech Community
Jul 11, 2021 · Backend Development

PHP 8.1 Alpha Release Highlights and Upcoming Schedule

PHP 8.1 has entered Alpha, introducing enums, fsync/fdatasync, Fibers, expanded resource-to-object conversion, macOS process renaming, new hashing algorithms, enhanced Sodium encryption, inheritance cache, and performance tweaks, with a release schedule leading to a GA version expected by November 2021.

BackendFeaturesPHP
0 likes · 3 min read
PHP 8.1 Alpha Release Highlights and Upcoming Schedule
Laravel Tech Community
Laravel Tech Community
Jul 4, 2021 · Backend Development

PHP 8.1 Alpha Released with New Features and Upcoming Release Timeline

PHP 8.1 has entered the Alpha stage, introducing enums, Fibers, new hashing algorithms, improved resource handling, macOS‑specific PHP‑FPM enhancements, and performance optimizations, with a detailed schedule for subsequent Alpha, Beta, and final GA releases later this year.

BackendPHPenums
0 likes · 3 min read
PHP 8.1 Alpha Released with New Features and Upcoming Release Timeline
Laravel Tech Community
Laravel Tech Community
Apr 6, 2021 · Backend Development

Upcoming PHP 8.1 Features and Release Timeline

PHP 8.1 is being developed with an Alpha release slated for June and a GA launch in November, introducing enums, new fsync/fdatasync functions, inheritance cache performance gains, Fiber support for async programming, and added xxHash and MurmurHash V3 hashing algorithms.

BackendPerformanceenums
0 likes · 2 min read
Upcoming PHP 8.1 Features and Release Timeline