From: Jason L. <jl...@me...> - 2002-10-19 15:03:56
|
Justin here are some proposed modifications to the PHP extension. This will give you an opportunity to work with the new PHP code. Modifications will be made to src/clients/php/zendmod.c 1. Change name of c4g_get_top_node to c4g_get_root_node. Since we are using a tree hierarchy, I think this name would make more sense. 2. Take the code that actually reads the top node from c4g_get_top_node and put it in the `module_init' function. Create a module-level static variable to hold the top node after initialization is complete and use it in the `c4g_get_top_node' function instead of loading a new tree. If you look at the PHP manual, you'll notice that chapters 24-42 talk about extending PHP. You may want to read them. Jason |