node-ffi-php-bindings
Version:
Generated node-ffi bindings for PHP source code. Embed PHP from node.js w/o creating your own node extension.
77 lines (63 loc) • 3.37 kB
JavaScript
var ffi = require('ffi'),
ref = require('ref'),
RefArray = require('ref-array'),
Struct = require('ref-struct'),
Union = require('ref-union'),
_library = require('./../');
loadDependentSymbols();
_library._preload['zend_exception_set_previous'] = ['zval', 'zval', function () {
_library.zend_exception_set_previous = ['void', [ref.refType(_library.zval), ref.refType(_library.zval)]];
_library._functions['zend_exception_set_previous'] = _library.zend_exception_set_previous;
}];
_library._preload['zend_exception_save'] = [function () {
_library.zend_exception_save = ['void', []];
_library._functions['zend_exception_save'] = _library.zend_exception_save;
}];
_library._preload['zend_exception_restore'] = [function () {
_library.zend_exception_restore = ['void', []];
_library._functions['zend_exception_restore'] = _library.zend_exception_restore;
}];
_library._preload['zend_exception_get_default'] = ['zend_class_entry', function () {
_library.zend_exception_get_default = [ref.refType(_library.zend_class_entry), []];
_library._functions['zend_exception_get_default'] = _library.zend_exception_get_default;
}];
_library._preload['zend_get_error_exception'] = ['zend_class_entry', function () {
_library.zend_get_error_exception = [ref.refType(_library.zend_class_entry), []];
_library._functions['zend_get_error_exception'] = _library.zend_get_error_exception;
}];
_library._preload['zend_register_default_classes'] = [function () {
_library.zend_register_default_classes = ['void', []];
_library._functions['zend_register_default_classes'] = _library.zend_register_default_classes;
}];
_library._preload['zend_throw_exception'] = ['zval', 'zend_class_entry', function () {
_library.zend_throw_exception = [ref.refType(_library.zval), [ref.refType(_library.zend_class_entry), ref.refType('char'), 'long']];
_library._functions['zend_throw_exception'] = _library.zend_throw_exception;
}];
_library._preload['zend_throw_exception_object'] = ['zval', function () {
_library.zend_throw_exception_object = ['void', [ref.refType(_library.zval)]];
_library._functions['zend_throw_exception_object'] = _library.zend_throw_exception_object;
}];
_library._preload['zend_clear_exception'] = [function () {
_library.zend_clear_exception = ['void', []];
_library._functions['zend_clear_exception'] = _library.zend_clear_exception;
}];
_library._preload['zend_throw_error_exception'] = ['zval', 'zend_class_entry', function () {
_library.zend_throw_error_exception = [ref.refType(_library.zval), [ref.refType(_library.zend_class_entry), ref.refType('char'), 'long', 'int']];
_library._functions['zend_throw_error_exception'] = _library.zend_throw_error_exception;
}];
_library._preload['zend_exception_error'] = ['zval', function () {
_library.zend_exception_error = ['void', [ref.refType(_library.zval), 'int']];
_library._functions['zend_exception_error'] = _library.zend_exception_error;
}];
function loadDependentSymbols() {
require('./zend.js');
require('./zend_API.js');
require('./zend_ast.js');
require('./zend_compile.js');
require('./zend_hash.js');
require('./zend_ini.js');
require('./zend_iterators.js');
require('./zend_modules.js');
require('./zend_object_handlers.js');
require('./zend_types.js');
}