summaryrefslogtreecommitdiffstats
path: root/jsminifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'jsminifier.c')
-rw-r--r--jsminifier.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/jsminifier.c b/jsminifier.c
new file mode 100644
index 0000000..9b65d02
--- /dev/null
+++ b/jsminifier.c
@@ -0,0 +1,26 @@
+/* Fake version to avoid non-free stuff */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "php.h"
+#include "php_phalcon.h"
+#include "phalcon.h"
+
+#if PHP_VERSION_ID < 70000
+#include <ext/standard/php_smart_str.h>
+#else
+#include <ext/standard/php_smart_string.h>
+#include <zend_smart_str.h>
+#endif
+
+#include "kernel/main.h"
+#include "kernel/memory.h"
+#include "kernel/fcall.h"
+#include "kernel/exception.h"
+
+int phalcon_jsmin(zval *return_value, zval *script TSRMLS_DC) {
+ ZEPHIR_THROW_EXCEPTION_STR(phalcon_assets_exception_ce, "Non-free csssminifier not available");
+ return FAILURE;
+}