From 15cdc3e7df0f7b76f5f9f670d8d422f3de403965 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Thu, 11 Aug 2016 19:06:49 +0200 Subject: [PATCH] Backport test of issue #246 to PHP 5 The reference handling issue applied only to PHP 7, nevertheless run the test against PHP 5 version as well. --- tests/issue_246_001.phpt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/issue_246_001.phpt diff --git a/tests/issue_246_001.phpt b/tests/issue_246_001.phpt new file mode 100644 index 0000000..e2b12ae --- /dev/null +++ b/tests/issue_246_001.phpt @@ -0,0 +1,18 @@ +--TEST-- +Test V8::executeString() : Handle Z_TYPE == IS_REFERENCE (issue #246) +--SKIPIF-- + +--FILE-- + 'ipsum']; +array_walk_recursive($array, function (&$item) {}); +$v8->some_array = $array; +$v8->executeString('var_dump(PHP.some_array.lorem);'); +?> +===EOF=== +--EXPECT-- +string(5) "ipsum" +===EOF===