]> granicus.if.org Git - php/commitdiff
make build work moar
authorkrakjoe <joe.watkins@live.co.uk>
Tue, 7 Oct 2014 11:36:03 +0000 (12:36 +0100)
committerkrakjoe <joe.watkins@live.co.uk>
Tue, 7 Oct 2014 11:36:03 +0000 (12:36 +0100)
phpdbg_wait.c
phpdbg_webdata_transfer.c

index e2bded08750f12c98ac96fd26ba386582a3d77b1..11279a9ab293ebf12dd4ce1a40f83feba4ea7f73 100644 (file)
@@ -127,6 +127,7 @@ static int phpdbg_array_intersect(phpdbg_intersect_ptr *info, zval ***ptr) {
 }
 
 void phpdbg_webdata_decompress(char *msg, int len TSRMLS_DC) {
+#ifdef HAVE_JSON
        zval *free_zv = NULL;
        zval zv, **zvpp;
        HashTable *ht;
@@ -357,10 +358,12 @@ void phpdbg_webdata_decompress(char *msg, int len TSRMLS_DC) {
 
        /* Reapply raw input */
        /* ??? */
+#endif
 }
 
 PHPDBG_COMMAND(wait) /* {{{ */
 {
+#ifdef HAVE_JSON
        struct sockaddr_un local, remote;
        int rlen, sr, sl;
        unlink(PHPDBG_G(socket_path));
@@ -412,5 +415,5 @@ PHPDBG_COMMAND(wait) /* {{{ */
        phpdbg_notice("Successfully imported request data, stopped before executing");
 
        return SUCCESS;
+#endif
 } /* }}} */
-
index 8ca308556c628acda48a40aff3c0dbdaac553f13..e7438ea01abf495e075a908098feb19730fd98d3 100644 (file)
@@ -20,6 +20,7 @@
 #include "ext/json/php_json.h"
 
 PHPDBG_API void phpdbg_webdata_compress(char **msg, int *len TSRMLS_DC) {
+#ifdef HAVE_JSON
        smart_str buf = {0};
        zval array;
        HashTable *ht;
@@ -180,4 +181,5 @@ PHPDBG_API void phpdbg_webdata_compress(char **msg, int *len TSRMLS_DC) {
        *msg = buf.c;
        *len = buf.len;
        zval_dtor(&array);
+#endif
 }