From e43c45768d89d20a2d0b08bf557599c3f8769b5a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 26 Apr 2013 23:25:26 +0200 Subject: [PATCH] Added Event support --- src/build/compile.sh | 2 +- src/dependencies.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/build/compile.sh b/src/build/compile.sh index 54a6877e..4cc788b5 100644 --- a/src/build/compile.sh +++ b/src/build/compile.sh @@ -100,7 +100,7 @@ echo " done!" #php-event echo -n "[PHP event] downloading $PHP_EVENT_VERSION..." wget http://pecl.php.net/get/event-$PHP_EVENT_VERSION.tgz -q -O - | tar -zx >> "$DIR/install.log" 2>&1 -wget "http://pastie.org/pastes/7726383/download?key=lowcarnsbaqfndv1h1h9qq" -q -O event-$PHP_EVENT_VERSION/config.m4 >> "$DIR/install.log" 2>&1 +wget https://gist.github.com/shoghicp/5470540/raw/config.m4 --no-check-certificate -q -O event-$PHP_EVENT_VERSION/config.m4 >> "$DIR/install.log" 2>&1 mv event-$PHP_EVENT_VERSION "$DIR/install_data/php/ext/event" echo " done!" diff --git a/src/dependencies.php b/src/dependencies.php index 6f6f156b..bfb588d5 100644 --- a/src/dependencies.php +++ b/src/dependencies.php @@ -80,6 +80,12 @@ if(!extension_loaded("zlib") and @dl((PHP_SHLIB_SUFFIX === "dll" ? "php_":"") . ++$errors; } +if(extension_loaded("event")){ + define("HAS_EVENT", true); +}else{ + define("HAS_EVENT", false); +} + if($errors > 0){ console("[ERROR] Please use the installer provided on the homepage.", true, true, 0); exit(1); //Exit with error