News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

WebReference.com:
How to Manage Memory in PHP
June 19, 2006 @ 06:20:06

WebReference.com has a new sample chapter from Sara Goleman's book "Extending and Embedding PHP" (Chapter 3) taking a look at memory management in PHP.

One of the most jarring differences between a managed language like PHP, and an unmanaged language like C is control over memory pointers.

The chapter looks at:

  • Freeing up unneeded resources
  • Handling error requests correctly
  • An introduction to the Zend Memory Manager
  • Counting references to avoid unnecessary copying
  • The usefulness of "copy on write"
  • Saving resources with "change on write"
  • Difficulties with handling seperation of values

Each of the above items is accompanied by a good bit of text and code examples where appropriate (even a diagram or two to make things clearer).

0 comments voice your opinion now!
memory management extending embedding resources handling memory management extending embedding resources handling


blog comments powered by Disqus

Similar Posts

Alex Netkachov's Blog: Optimize PHP memory usage: eliminate circular references

Dallas PHP User\'s Group: PHP5 Exception Handling (presentation)

RamonLechuga.com: PHP Error Handler, Tracking your project bugs

Zend Developer Zone: Zend Framework Hidden Gems: Introduction

FrSIRT: Vivvo Article Management CMS SQL Injection and PHP File Inclusion Vulnerabilities


Community Events





Don't see your event here?
Let us know!


laravel opinion package introduction voicesoftheelephpant install community release symfony library series deployment framework interview language unittest podcast api bugfix zendserver

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework