Table of contents : Introduction 11 The PHP Life Cycle 92 Variables from the Inside Out 233 Memory Management 354 Setting Up a Build Environment 475 Your First Extension 556 Returning Values 677 Accepting Parameters 798 Working with Arrays and Hash Tables 899 The Resource Data Type 11310 PHP4 Objects 13111 PHP5 Objects 14312 Startup, Shutdown, and a Few Points in Between 15913 INI Settings 17514 Accessing Streams 18315 Implementing Streams 19916 Diverting the Stream 22117 Configuration and Linking 23518 Extension Generators 24519 Setting Up a Host Environment 25320 Advanced Embedding 261A ZendAPI Reference 275B PHPAPI Reference 305C Extending and Embedding Cookbook 351D Additional Resources 365Index 371