In this post, we will go through the process of deep copying a PHP variable in user land (i.e., in pure PHP) step by step, describing the challenges facing every step, resolving them and going forward. (TL;DR: check this Github gist for the final solution) The Challenges There are three particular challenges for solving the deep copy problem in PHP: Some things simply can not be copied (e.g., resources like file handles, and objects like MySQLi instances) References are invisible in PHP. They …
Category: Software Engineering
[—TOC Header:Table of Contents—][—ATOC—] [—TAG:h3—] PHP Emulator is a PHP interpreter written in PHP (somewhat like PyPy). It was created with many goals in mind, particularly allowing fine-grained low-level control over …
First of all, Happy Nowruz! Tomorrow is officially the new Jalali year‘s start. Best of wishes to everyone. The Problem I’ve been working on an elegant design for a new …