{"product_id":"php-internals-the-zend-engine-and-c-extensions-a-comprehensive-guide-to-zend-engine-learn-c-extension-development-and-optimize-your-php-applicatio-9798288045400","title":"PHP Internals: The Zend Engine and C Extensions: A Comprehensive Guide to Zend Engine, Learn C Extension Development, and Optimize Your PHP Applicatio","description":"\u003cp\u003e • Author(s): Phiquill Publishing\u003cbr\u003e • Publisher: Independently Published\u003cbr\u003e • Publisher Imprint: Independently Published\u003cbr\u003e • BISAC: Programming Languages - PHP\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e\u003cp\u003eYou'll learn\u003c\/p\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eUnderstand PHP's core internals: \u003c\/b\u003e Learn the \"how\" and \"why\" behind PHP, going beyond basic scripting.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eBoost your skills: \u003c\/b\u003e Gain expertise in \u003cb\u003eperformance optimization\u003c\/b\u003e, \u003cb\u003eadvanced debugging\u003c\/b\u003e, and the ability to \u003cb\u003econtribute to the PHP core\u003c\/b\u003e or build \u003cb\u003epowerful C extensions\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eSet up your environment: \u003c\/b\u003e Compile PHP from source and master essential tools like \u003cb\u003eGDB\u003c\/b\u003e for internal development.\u003c\/li\u003e\n\u003c\/ul\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eExplore the PHP Request Lifecycle: \u003c\/b\u003e Discover how PHP interacts with various \u003cb\u003eSAPIs\u003c\/b\u003e (FPM, Apache, CLI) and dive into key stages like \u003cb\u003eMINIT, RINIT, and RSHUTDOWN\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eMaster the Zend Engine architecture: \u003c\/b\u003e Get an in-depth look at its components: \u003cb\u003eLexer, Parser, Compiler, Executor (Zend VM), and Memory Manager\u003c\/b\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eTrace code execution: \u003c\/b\u003e Understand how PHP code is broken into \u003cb\u003etokens\u003c\/b\u003e, transformed into an \u003cb\u003eAbstract Syntax Tree (AST)\u003c\/b\u003e, compiled into \u003cb\u003eOpcodes\u003c\/b\u003e, and executed by the \u003cb\u003eZend VM\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eLeverage OPcache: \u003c\/b\u003e Learn how it optimizes performance by reusing opcodes.\u003c\/li\u003e\n\u003c\/ul\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eDeep dive into memory management: \u003c\/b\u003e Understand the \u003cb\u003eZend Memory Manager (ZMM)\u003c\/b\u003e, memory allocation types, and \u003cb\u003ePHP's Garbage Collection (GC)\u003c\/b\u003e, including how to identify \u003cb\u003ememory leaks\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eWork with ZVALs: \u003c\/b\u003e Master PHP's universal data container and how all data types (scalars, arrays, objects) are represented internally, including \u003cb\u003ereference counting\u003c\/b\u003e and \u003cb\u003eCopy-on-Write (COW)\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eExplore core data structures: \u003c\/b\u003e Get to grips with \u003cb\u003ezend_string\u003c\/b\u003e, \u003cb\u003eHashTable\u003c\/b\u003e (for arrays), and \u003cb\u003ezend_object\u003c\/b\u003e (for objects).\u003c\/li\u003e\n\u003c\/ul\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eDevelop PHP extensions in C: \u003c\/b\u003e Learn the fundamentals, including the \u003cb\u003eextension anatomy\u003c\/b\u003e and \u003cb\u003elifecycle functions\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eBuild your first extension: \u003c\/b\u003e Define C functions for PHP, handle \u003cb\u003eargument parsing\u003c\/b\u003e, and \u003cb\u003ereturn values\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eImplement advanced extension techniques: \u003c\/b\u003e Work with arrays, define classes\/objects, manage resources, and handle \u003cb\u003eINI settings\u003c\/b\u003e and \u003cb\u003eexceptions\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eEnsure thread safety: \u003c\/b\u003e Understand \u003cb\u003eTSRM\u003c\/b\u003e and how to write robust, \u003cb\u003ethread-safe extensions\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eInterface with external C libraries: \u003c\/b\u003e Link and integrate third-party libraries into your extensions.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eDebug and profile extensions: \u003c\/b\u003e Use powerful tools like \u003cb\u003eGDB\u003c\/b\u003e and \u003cb\u003eValgrind\u003c\/b\u003e to optimize your C code.\u003c\/li\u003e\n\u003c\/ul\u003e\u003cul\u003e\n\u003cli\u003e\n\u003cb\u003eAnalyze the PHP Standard Library: \u003c\/b\u003e Dissect core PHP function implementations to understand best practices.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eOptimize extension performance: \u003c\/b\u003e Learn strategies for writing efficient C code and understand the impact of \u003cb\u003eJIT Compilation\u003c\/b\u003e.\u003c\/li\u003e\n\u003cli\u003e\n\u003cb\u003eContribute to PHP core: \u003c\/b\u003e Discover the \u003cb\u003eRFC process\u003c\/b\u003e, coding standards, Git workflow, and how to get involved in the community.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"Independently Published","offers":[{"title":"Paperback","offer_id":47577087475863,"sku":"9798288045400","price":1463.0,"currency_code":"INR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0666\/3471\/1191\/files\/9798288045400.webp?v=1774902521","url":"https:\/\/atlanticbooks.com\/products\/php-internals-the-zend-engine-and-c-extensions-a-comprehensive-guide-to-zend-engine-learn-c-extension-development-and-optimize-your-php-applicatio-9798288045400","provider":"Atlantic Books","version":"1.0","type":"link"}