Skip to content

Instantly share code, notes, and snippets.

@sebm
sebm / gist:959867
Created May 6, 2011 21:54
My error log from trying to install PHP from homebrew
enchilada:~ sebastian$ brew install php --with-apache --with-mysql
==> Downloading http://www.php.net/get/php-5.3.6.tar.gz/from/this/mirror
File already downloaded and cached to /Users/sebastian/Library/Caches/Homebrew
==> Downloading patches
==> Patching
patching file ext/tidy/tidy.c
==> ./configure --prefix=/usr/local/Cellar/php/5.3.6 --disable-debug --disable-d
==> make
==> make install
Installing PHP CLI binary: /usr/local/Cellar/php/5.3.6/bin/
@sebm
sebm / gist:794680
Created January 25, 2011 08:52
Explanation of UTF-8 header testing for Symfony / Swift Mailer
<?php
$expectedHeaderMessage = Swift_Message::newInstance()
->setSubject('Información')
->setCharset('utf-8')
;
$msgString = $expectedHeaderMessage->toString();
/*
echo $msgString: