Skip to main content
  • How To Use PHP and ReactJS To Build Modern Web Apps

    Combining PHP, a server-side language, with ReactJS, a client-side library, can deliver powerful results for your web app. Learn how to get started with our step-by-step guide.

  • How to Migrate Zend Server to ZendPHP

    Migrating from Zend Server to ZendPHP? The ZendPHP Ansible Playbook can help to provision ZendPHP and deploy applications using existing processes at scale. Learn how in this step-by

  • Writing PHP Extensions

    In this section, we will take a deeper look into the most important internal PHP data structures.

  • Writing PHP Extensions

    To help you learn the basics about PHP, the tutorial we just completed described how to build a very simple practice extension.

  • Writing PHP Extensions

    This extension skeleton can be compiled without any changes.

  • Writing PHP Extensions

    At this point you should already know the basic structure of a PHP extension and the building process. Now, we are going to learn how to implement new basic PHP extension features. Starting from this section, I’ll write new code in red and keep existing code black. 

  • Writing PHP Extensions

    Writing a basic PHP extension is not too difficult.

  • Writing PHP Extensions

    Let’s try to extend our example extension, implementing the following PHP class in C.

  • Writing PHP Extensions

    Let’s review the contents of extension skeleton files.

  • Writing PHP Extensions

    If you remember, each object keeps an object handlers table. We started to use it in the previous chapter on embedding C data.