Skip to content

Instantly share code, notes, and snippets.

View lolli42's full-sized avatar
🇺🇦

Christian Kuhn lolli42

🇺🇦
View GitHub Profile
@lolli42
lolli42 / Patches by author since 4.5.0
Last active August 29, 2015 13:57
Patches by author since 4.5.0
#!/bin/bash
AUTHOR="$1"
git log --author="$AUTHOR" --since="2011-01-26" --pretty="%h" > ~/foo.txt
PATCHES=`cat ~/foo.txt | wc -l`
while read PATCH; do git log --stat $PATCH^1..$PATCH | tail -n 1; done < ~/foo.txt > ~/foo2.txt
INSERTS=`cat ~/foo2.txt | awk '{s+=$4} END {print s}'`
diff --git a/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php b/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php
index 2737985..baba04e 100644
--- a/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php
+++ b/Composer/vendor/phpunit/phpunit/PHPUnit/Util/GlobalState.php
@@ -112,7 +112,7 @@ public static function backupGlobals(array $blacklist)
!in_array($key, $superGlobalArrays) &&
!in_array($key, $blacklist) &&
!$GLOBALS[$key] instanceof Closure) {
- self::$globals['GLOBALS'][$key] = serialize($GLOBALS[$key]);
+ self::$globals['GLOBALS'][$key] = $GLOBALS[$key];