summaryrefslogtreecommitdiffstats
path: root/jsminifier.c
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-07-30 10:16:46 +0200
committerRemi Collet <fedora@famillecollet.com>2016-07-30 10:16:46 +0200
commita6914ca2eba7886b194d477ef96c83c932520955 (patch)
tree707f0fbd5ea595e45d3577056c2a284c9f098e42 /jsminifier.c
php-phalcon3: 3.0.0 (new package)
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;
+}