Приглашаем посетить
Культурология (cult-lib.ru)

Homework

Previous
Table of Contents
Next

Homework

While the other chapters in this book have "Further Reading" sections at the end, the general lack of organized information on writing SAPIs and Zend extensions makes it hard to list good resources here. Sadly, the code itself is about all the public documentation that exists.

Therefore, this last section is a list of homework for you to sharpen your skills:

  • Embed PHP into your favorite text editor.

  • Complete psh so that it behaves more like a standard shell (for example, so executables can be typed on the command line and will be found in your path, so it has input/output streams).

  • Write an output cache that, like Zend Performance Suite, wraps zend_execute() so that include files, functions, and so on can have their output cached based on the parameters passed to them.

  • Refine code_coverage Zend extension so that it can dump line-by-line execution times to an external file. Then write a companion script to use the output to annotate the original script with line-by-line timings and execution counts.

  • Have fun.


Previous
Table of Contents
Next