Declaration of the Zend Function Block

Internally , zend_function_entry is defined as shown in Voorbeeld 31-1 .

Voorbeeld 31-1 .




In the example above, the declaration looks like this:



You can see that the last entry in the list always has to be {NULL, NULL, NULL} . This marker has to be set for Zend to know when the end of the list of exported functions is reached.

Opmerking :

Tabel 31-2 shows a list of all the macros that you can use to define functions .

Tabel 31-2 .