Browse Source

commonjs_modules test requires json_encode.

Stefan Siegl 10 years ago
parent
commit
293ca476f0
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tests/commonjs_modules.phpt

+ 6 - 1
tests/commonjs_modules.phpt

@@ -1,7 +1,12 @@
 --TEST--
 Test V8Js::setModuleLoader : CommonJS modules
 --SKIPIF--
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+<?php
+if(!function_exists('json_encode')) {
+  die('SKIP');
+}
+require_once(dirname(__FILE__) . '/skipif.inc');
+?>
 --FILE--
 <?php