2014-03-19 15:00:28 +00:00
|
|
|
--TEST--
|
|
|
|
Test V8::executeString() : Script validator test
|
|
|
|
--SKIPIF--
|
|
|
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$v8 = new V8Js();
|
|
|
|
var_dump($v8->checkString('print("Hello World!");'));
|
|
|
|
|
|
|
|
try {
|
|
|
|
var_dump($v8->checkString('print("Hello World!);'));
|
|
|
|
} catch (V8JsScriptException $e) {
|
|
|
|
var_dump($e->getMessage());
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
===EOF===
|
2014-05-27 07:41:32 +00:00
|
|
|
--EXPECTF--
|
2021-08-20 12:08:45 +00:00
|
|
|
Deprecated: %s V8Js::checkString() is deprecated in %s on line %d
|
2014-03-19 15:00:28 +00:00
|
|
|
bool(true)
|
2014-05-27 07:41:32 +00:00
|
|
|
|
2021-08-20 12:08:45 +00:00
|
|
|
Deprecated: %s V8Js::checkString() is deprecated in %s on line %d
|
2016-03-05 16:11:52 +00:00
|
|
|
string(%d) "V8Js::checkString():1: SyntaxError: %s"
|
2014-03-19 15:00:28 +00:00
|
|
|
===EOF===
|