diff --git a/tests/extensions_basic.phpt b/tests/extensions_basic.phpt index 9234c7e..44c511e 100644 --- a/tests/extensions_basic.phpt +++ b/tests/extensions_basic.phpt @@ -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) { diff --git a/tests/extensions_circular_dependency.phpt b/tests/extensions_circular_dependency.phpt index f792e94..29a6284 100644 --- a/tests/extensions_circular_dependency.phpt +++ b/tests/extensions_circular_dependency.phpt @@ -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) { diff --git a/tests/extensions_error.phpt b/tests/extensions_error.phpt index b572672..f59b0b7 100644 --- a/tests/extensions_error.phpt +++ b/tests/extensions_error.phpt @@ -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'. diff --git a/v8js_class.cc b/v8js_class.cc index c424f32..97e8d36 100644 --- a/v8js_class.cc +++ b/v8js_class.cc @@ -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} };