mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 09:21:52 +00:00
mark registerExtension & getExtensions deprecated + adapt test output
This commit is contained in:
parent
b9bde377ba
commit
9734466105
@ -13,7 +13,12 @@ var_dump(V8JS::getExtensions());
|
||||
$a = new V8Js('myobj', array(), array('a'));
|
||||
?>
|
||||
===EOF===
|
||||
--EXPECT--
|
||||
--EXPECTF--
|
||||
Deprecated: Function V8Js::registerExtension() is deprecated in %s%eextensions_basic.php on line 3
|
||||
|
||||
Deprecated: Function V8Js::registerExtension() is deprecated in %s%eextensions_basic.php on line 4
|
||||
|
||||
Deprecated: Function V8Js::getExtensions() is deprecated in %s%eextensions_basic.php on line 6
|
||||
array(2) {
|
||||
["a"]=>
|
||||
array(2) {
|
||||
|
@ -13,6 +13,11 @@ var_dump(V8JS::getExtensions());
|
||||
$a = new V8Js('myobj', array(), array('a'));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Deprecated: Function V8Js::registerExtension() is deprecated in %s%eextensions_circular_dependency.php on line 3
|
||||
|
||||
Deprecated: Function V8Js::registerExtension() is deprecated in %s%eextensions_circular_dependency.php on line 4
|
||||
|
||||
Deprecated: Function V8Js::getExtensions() is deprecated in %s%eextensions_circular_dependency.php on line 6
|
||||
array(2) {
|
||||
["a"]=>
|
||||
array(2) {
|
||||
|
@ -38,6 +38,8 @@ var_dump($v8);
|
||||
===EOF===
|
||||
--EXPECTF--
|
||||
-- registerExtension --
|
||||
|
||||
Deprecated: Function V8Js::registerExtension() is deprecated in %s%eextensions_error.php on line 5
|
||||
-- creating V8Js object --
|
||||
Error installing extension 'handlebars'.
|
||||
|
||||
|
@ -1267,8 +1267,8 @@ const zend_function_entry v8js_methods[] = { /* {{{ */
|
||||
PHP_ME(V8Js, setTimeLimit, arginfo_v8js_settimelimit, ZEND_ACC_PUBLIC)
|
||||
PHP_ME(V8Js, setMemoryLimit, arginfo_v8js_setmemorylimit, ZEND_ACC_PUBLIC)
|
||||
PHP_ME(V8Js, setAverageObjectSize, arginfo_v8js_setaverageobjectsize, ZEND_ACC_PUBLIC)
|
||||
PHP_ME(V8Js, registerExtension, arginfo_v8js_registerextension, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
PHP_ME(V8Js, getExtensions, arginfo_v8js_getextensions, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
PHP_ME(V8Js, registerExtension, arginfo_v8js_registerextension, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_DEPRECATED)
|
||||
PHP_ME(V8Js, getExtensions, arginfo_v8js_getextensions, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC|ZEND_ACC_DEPRECATED)
|
||||
PHP_ME(V8Js, createSnapshot, arginfo_v8js_createsnapshot, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
|
||||
{NULL, NULL, NULL}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user