Skip to content

Instantly share code, notes, and snippets.

Doing evil things, probably. Sorry...

James Titcumb asgrim

Doing evil things, probably. Sorry...
View GitHub Profile
asgrim / opencfp.sql
Created Jan 13, 2015
Export talks from OpenCFP
View opencfp.sql
/* user */ AS user_id, first_name, last_name, email, company, twitter, airport, url, transportation, hotel, info, bio,
/* talk */ AS talk_id, title, description, other, type, level, category, slides, desired, sponsor
FROM `talks`, `users`
WHERE talks.user_id =
mwillbanks /
Last active Aug 29, 2015
Some ideas around sessions


Zend Framework 3 (ZF3) will provide a new session management layer that will decouple it from ext/session. In doing this we will allow you to run multiple sessions at the same time in an application, utilize sessions in long-running applications, compatibility/convertibility with other applications, languages, etc.

With decoupling ext/session we will also provide a compatibility layer that will allow you to continue to utilize ext/session and the super global $_SESSION thus allowing you to continue with like behavior as you would have come to expect with generic session management in PHP.

In Zend Framework 2 (ZF2), we encountered numerous issues throughout the session management layer. Certain compatibility issues with ext/session specifically relating to session uploads. Session uploads caused corruption to the internal handing of sessions generally due to it's attempt to rewrite the session data. We also encountered several issues with PHP itself specifically regarding the usage

View gist:6764556
class SentenceCorector {
protected $originalSentence = null;
protected $correctedSentance = null;
protected $corrections = 0;
public function corect($sentence) {
manuelpichler / ugly_nowdoc.php
Created Nov 29, 2011
PHP is such an ugly language
View ugly_nowdoc.php
class MyClass
static function myMethod(
$x = <<<'FOO'
, $y = <<<'BAR'