Added Event support

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-26 23:25:26 +02:00
parent d48a1a6ce3
commit e43c45768d
2 changed files with 7 additions and 1 deletions

View File

@ -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!"

View File

@ -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