mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-14 17:38:42 +00:00
18 lines
329 B
Plaintext
18 lines
329 B
Plaintext
|
--TEST--
|
||
|
Test V8::executeString() : Handle die() gracefully
|
||
|
--SKIPIF--
|
||
|
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$v8 = new V8Js();
|
||
|
$v8->foo = function() {
|
||
|
echo "Hallo\n";
|
||
|
die("Goodbye cruel world!\n");
|
||
|
};
|
||
|
$v8->executeString('PHP.foo();');
|
||
|
?>
|
||
|
===EOF===
|
||
|
--EXPECT--
|
||
|
Hallo
|
||
|
Goodbye cruel world!
|