Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP 拡張機能で、オペコードを含まない op_array を作成するにはどうすればよいですか?
zend_compile.h から宣言された init_op_array() を使用できます。
zend_op_array * op_array = emalloc(sizeof(zend_op_array)); init_op_array(op_array, type, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
type は ZEND_EVAL_CODE または ZEND_USER_FUNCTION にすることができます。