PHP internal documentations (update regularly!)
1. For string serialization to work for binary data
php > $data="a:1:{i:0;S:17:'\x00\x01\x00\x00AAAA\x00\x01\x01\x00\x01\x00\x0B\xBC\xCC';}";
php > $data="a:1:{i:0;S:17:'\x00\x01\x00\x00AAAA\x00\x01\x01\x00\x01\x00\x0B\xBC\xCC';}";
- What does it mean?
First, use \xBC rather for \BC alone
Second, the string must have the form "etc 'string here' "
2. Php binary entry point is php_binary_init() at line 264 file main/main.c
3. Write php extension: https://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/
4. Better resource for extension development: https://www.simonholywell.com/post/2010/09/15-excellent-resources-for-php-extension-development/
- A beginner extacted: https://www.kchodorow.com/blog/2011/08/11/php-extensions-made-eldrich-hello-world/
5. Hacker guide on PHP: http://php.net/manual/en/internals2.php
6. More on extension writting:
2. Php binary entry point is php_binary_init() at line 264 file main/main.c
3. Write php extension: https://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/
4. Better resource for extension development: https://www.simonholywell.com/post/2010/09/15-excellent-resources-for-php-extension-development/
- A beginner extacted: https://www.kchodorow.com/blog/2011/08/11/php-extensions-made-eldrich-hello-world/
5. Hacker guide on PHP: http://php.net/manual/en/internals2.php
6. More on extension writting:
What the heck is TSRMLS_CC, anyway?: http://blog.golemon.com/2006/06/what-heck-is-tsrmlscc-anyway.html
7. Functions and Params internally: http://php.net/manual/en/internals2.funcs.php
A quick note:
=> So, before that, how could we handle parameter.
8. Hashtables are one of the most important structures used by PHP. They form the basis for
- arrays,
- object properties,
- symbol tables
- have countless other applications throughout the engine
9. zval accessor macro reference:
10. Maybe thes best once, they introduces best book:
https://omniti.com/seeds/php-extension-development-resources
A quick note:
zend_parse_parameter is available from version 5.5, it behaves like zend_parse_parameters_ex except that instead of reading the arguments from the stack, it receives a single zval to convert, which may be changed in place.=> So, before that, how could we handle parameter.
8. Hashtables are one of the most important structures used by PHP. They form the basis for
- arrays,
- object properties,
- symbol tables
- have countless other applications throughout the engine
9. zval accessor macro reference:
10. Maybe thes best once, they introduces best book:
https://omniti.com/seeds/php-extension-development-resources


Comments
Post a Comment