Skip to content

Commit bfd2bfc

Browse files
committed
remove deprected V8Js::checkString function
1 parent f6a93c3 commit bfd2bfc

File tree

2 files changed

+0
-51
lines changed

2 files changed

+0
-51
lines changed

tests/checkstring.phpt

-24
This file was deleted.

v8js_class.cc

-27
Original file line numberDiff line numberDiff line change
@@ -669,32 +669,6 @@ static PHP_METHOD(V8Js, executeScript)
669669
}
670670
/* }}} */
671671

672-
/* {{{ proto mixed V8Js::checkString(string script)
673-
*/
674-
static PHP_METHOD(V8Js, checkString)
675-
{
676-
zend_string *str = NULL;
677-
zend_string *identifier = zend_string_init("V8Js::checkString()", 19, 0);
678-
679-
v8js_script *res = NULL;
680-
681-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "S", &str) == FAILURE) {
682-
return;
683-
}
684-
685-
v8js_compile_script(getThis(), str, identifier, &res);
686-
zend_string_release(identifier);
687-
688-
if (!res) {
689-
RETURN_FALSE;
690-
}
691-
692-
v8js_script_free(res);
693-
efree(res);
694-
RETURN_TRUE;
695-
}
696-
/* }}} */
697-
698672
/* {{{ proto void V8Js::setModuleNormaliser(string base, string module_id)
699673
*/
700674
static PHP_METHOD(V8Js, setModuleNormaliser)
@@ -987,7 +961,6 @@ const zend_function_entry v8js_methods[] = { /* {{{ */
987961
PHP_ME(V8Js, executeString, arginfo_v8js_executestring, ZEND_ACC_PUBLIC)
988962
PHP_ME(V8Js, compileString, arginfo_v8js_compilestring, ZEND_ACC_PUBLIC)
989963
PHP_ME(V8Js, executeScript, arginfo_v8js_executescript, ZEND_ACC_PUBLIC)
990-
PHP_ME(V8Js, checkString, arginfo_v8js_checkstring, ZEND_ACC_PUBLIC|ZEND_ACC_DEPRECATED)
991964
PHP_ME(V8Js, setModuleNormaliser, arginfo_v8js_setmodulenormaliser, ZEND_ACC_PUBLIC)
992965
PHP_ME(V8Js, setModuleLoader, arginfo_v8js_setmoduleloader, ZEND_ACC_PUBLIC)
993966
PHP_ME(V8Js, setTimeLimit, arginfo_v8js_settimelimit, ZEND_ACC_PUBLIC)

0 commit comments

Comments
 (0)