-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
31 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
shopt -s nullglob | ||
export LC_ALL=C | ||
for i in core core.*; do | ||
if [ -f "$i" -a "$(file "$i" | grep -o 'core file')" ]; then | ||
gdb -q $(file "$i" | grep -oE "'[^ ']+" | sed "s/^'//g") "$i" <<EOF | ||
set pagination 0 | ||
backtrace full | ||
info registers | ||
x/16i \$pc | ||
thread apply all backtrace | ||
quit | ||
EOF | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#! /bin/sh | ||
|
||
if [ "`php -r 'echo substr(PHP_VERSION, 0, 3);'`" = "5.3" ]; then | ||
wget http://pecl.php.net/get/memcache-2.2.7.tgz | ||
if [ "$(php -r 'echo substr(PHP_VERSION, 0, 3);')" = "5.3" ]; then | ||
wget -q http://pecl.php.net/get/memcache-2.2.7.tgz | ||
tar -xzf memcache-2.2.7.tgz | ||
sh -c "cd memcache-2.2.7 && phpize && ./configure --enable-memcache && make && sudo make install" | ||
( cd memcache-2.2.7 && phpize && ./configure --enable-memcache && make && sudo make install ) | ||
else | ||
wget http://pecl.php.net/get/memcache-3.0.7.tgz | ||
wget -q http://pecl.php.net/get/memcache-3.0.7.tgz | ||
tar -xzf memcache-3.0.7.tgz | ||
sh -c "cd memcache-3.0.7 && phpize && ./configure --enable-memcache && make && sudo make install" | ||
( cd memcache-3.0.7 && phpize && ./configure --enable-memcache && make && sudo make install ) | ||
fi | ||
|
||
echo "extension=memcache.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#! /bin/sh | ||
|
||
wget http://pecl.php.net/get/mongo-1.3.4.tgz | ||
wget -q http://pecl.php.net/get/mongo-1.3.4.tgz | ||
tar -xzf mongo-1.3.4.tgz | ||
sh -c "cd mongo-1.3.4 && phpize && ./configure --enable-memcache && make && sudo make install" | ||
( cd mongo-1.3.4 && phpize && ./configure --enable-mongo && make && sudo make install ) | ||
|
||
echo "extension=mongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` |
This file was deleted.
Oops, something went wrong.