Ignore:
Timestamp:
2013-11-23T01:46:42Z (21 months ago)
Author:
Xuefer
Message:

adds reflection info for APIs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_disassembler/xc_disassembler.c

    r1321 r1477  
    195195/* {{{ proto array xcache_dasm_file(string filename)
    196196   Disassemble file into opcode array by filename */
     197#ifdef ZEND_BEGIN_ARG_INFO_EX
     198ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_dasm_file, 0, 0, 1)
     199    ZEND_ARG_INFO(0, filename)
     200ZEND_END_ARG_INFO()
     201#else
     202static unsigned char arginfo_xcache_dasm_file[] = { 1, BYREF_NONE };
     203#endif
     204
    197205PHP_FUNCTION(xcache_dasm_file)
    198206{
     
    210218/* {{{ proto array xcache_dasm_string(string code)
    211219   Disassemble php code into opcode array */
     220#ifdef ZEND_BEGIN_ARG_INFO_EX
     221ZEND_BEGIN_ARG_INFO_EX(arginfo_xcache_dasm_string, 0, 0, 1)
     222    ZEND_ARG_INFO(0, code)
     223ZEND_END_ARG_INFO()
     224#else
     225static unsigned char arginfo_xcache_dasm_string[] = { 1, BYREF_NONE };
     226#endif
     227
    212228PHP_FUNCTION(xcache_dasm_string)
    213229{
     
    233249static zend_function_entry xcache_disassembler_functions[] = /* {{{ */
    234250{
    235     PHP_FE(xcache_dasm_file,         NULL)
    236     PHP_FE(xcache_dasm_string,       NULL)
     251    PHP_FE(xcache_dasm_file,         arginfo_xcache_dasm_file)
     252    PHP_FE(xcache_dasm_string,       arginfo_xcache_dasm_string)
    237253    PHP_FE_END
    238254};
Note: See TracChangeset for help on using the changeset viewer.