Tagged articles
6 articles
Page 1 of 1
Open Source Tech Hub
Open Source Tech Hub
Nov 29, 2025 · Backend Development

Why PHP Workers Never Release Memory: The Hidden Block Allocation Pattern

When moving from PHP‑FPM to long‑running processes like RoadRunner or Laravel queue workers, memory usage climbs and never drops, a pattern caused by PHP’s Zend memory manager block allocation, reference counting, and GC behavior, which can be mitigated by redesigning code and worker strategies.

Garbage CollectionMemory ManagementPHP
0 likes · 12 min read
Why PHP Workers Never Release Memory: The Hidden Block Allocation Pattern
php Courses
php Courses
Jun 30, 2021 · Backend Development

Understanding PHP's zend_string Structure and Memory Management

This article explains the internal PHP7+ data structures such as _zval_struct, zend_value, and zend_string, detailing their fields, type definitions, memory layout, flexible array usage, and the associated allocation and release macros that enable efficient, binary‑safe string handling in the Zend Engine.

BackendC languageMemory Management
0 likes · 11 min read
Understanding PHP's zend_string Structure and Memory Management
360 Tech Engineering
360 Tech Engineering
Oct 18, 2019 · Backend Development

Understanding PHP unset(): Does It Really Release Memory?

This article examines whether PHP's unset() function truly frees memory by debunking common myths, demonstrating verification methods, analyzing the Zend engine's memory manager, and presenting practical code examples that reveal how different variable types affect memory usage after unsetting.

Zendmemory-managementunset
0 likes · 9 min read
Understanding PHP unset(): Does It Really Release Memory?
21CTO
21CTO
Aug 2, 2019 · Backend Development

Is PHP Really Dead? Unpacking the Myths and Market Realities

This article examines recent rumors about PHP’s demise, reviews Zend’s leadership changes, presents market‑share data, and argues why PHP remains a viable choice for startups and small‑to‑medium enterprises despite criticism.

Market SharePHPWeb Development
0 likes · 8 min read
Is PHP Really Dead? Unpacking the Myths and Market Realities
21CTO
21CTO
Dec 5, 2016 · Backend Development

How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level

This article explains how to create a PHP extension function named array_concat that merges two arrays by concatenating string values for matching keys, detailing the required C code, Zend hash operations, parameter parsing, and example usage, providing a practical guide for PHP developers.

ArrayExtensionPHP
0 likes · 6 min read
How to Implement array_concat in a PHP Extension: Merging Arrays at the C Level
21CTO
21CTO
Mar 26, 2016 · Backend Development

How to Pinpoint the PHP Code Behind CPU Spikes Using GDB

When a PHP process suddenly consumes near‑100% CPU, this guide shows how to locate the exact file, function and line causing the spike by inspecting Zend executor globals with GDB, using both manual commands and a ready‑made .gdbinit script.

BackendZenddebugging
0 likes · 6 min read
How to Pinpoint the PHP Code Behind CPU Spikes Using GDB