浏览代码

Merge pull request #36 from cscott/more-fixes

The json extension is not needed for PHP 5.4.
Patrick Reilly 11 年之前
父节点
当前提交
1f3fbae058
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Makefile.frag

+ 3 - 0
Makefile.frag

@@ -1,4 +1,7 @@
+# add json extension, if needed (ie, for PHP >= 5.5)
+ifneq (,$(realpath $(EXTENSION_DIR)/json.so))
 PHP_TEST_SHARED_EXTENSIONS+=-d extension=$(EXTENSION_DIR)/json.so
+endif
 
 testv8: all
 	$(PHP_EXECUTABLE) -n -d extension_dir=./modules -d extension=v8js.so test.php