Explorar o código

The json extension is not needed for PHP 5.4.

C. Scott Ananian %!s(int64=11) %!d(string=hai) anos
pai
achega
8e0e573d3f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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