Skip to content

Commit

Permalink
Add test for phpv8#316
Browse files Browse the repository at this point in the history
  • Loading branch information
stesie committed Jun 8, 2017
1 parent 4baf9e9 commit 36f52e8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/issue_316_basic.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--TEST--
Test V8::executeString() : Issue #316 endless property iteration
--SKIPIF--
<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php

$v8 = new V8Js();

$values = $v8->executeString('({test: "test"})');
foreach ($values as $value) {
var_dump($value);
}

?>
===EOF===
--EXPECT--
string(4) "test"
===EOF===

0 comments on commit 36f52e8

Please sign in to comment.