Overview for 'colinodell'
Written by colinodell.com - Blog
/ Original link
on Mar. 12, 2017
TIL that Doctrine 2 doesn't support LIMITs within subqueries which can be frustrating. In my case, I wanted to LEFT JOIN on a table using a subquery with a single result - something like this: $dqb->from('MyAppBundle:Foo', 'foo') ->leftJoin('foo.bar', 'bar', 'WITH', 'bar = (SELECT b FROM MyAp…
Written by colinodell.com - Blog
/ Original link
on Dec. 2, 2016
PHP 7.1 has been released, bringing some great new features and enhancements to the language such as nullable types, the iterable pseudo-type, catching multiple exceptions, and much more. Here's a brief guide on how to install PHP 7.1 on several different operating systems: Ubuntu 14.04 - 16.10: PH…
Written by colinodell.com - Blog
/ Original link
on Dec. 4, 2015
Installing PHP 7.0 is easier than ever. Here are instructions for installing the latest version on different platforms: PHP 5.x Conflicts You may encounter conflicts if you already have PHP 5.x installed. If so, make sure to completely remove PHP 5.x from your system before installing 7.0. On Ubunt…
Written by colinodell.com - Blog
/ Original link
on Dec. 2, 2015
With the imminent release of PHP 7 on the horizon, I thought it would be cool to check out some of the lesser-known features coming with the 7.0.0 release: 1. Array constants in define() PHP 5.6 added the ability to define array constants on classes by using the const keyword: const LUCKY_NUMBERS =…
Written by colinodell.com - Blog
/ Original link
on Nov. 28, 2015
Background As you may know, I am the author and maintainer of the PHP League's CommonMark Markdown parser. This project has three primary goals: Fully support the entire CommonMark spec. Match the behavior of the JS reference implementation. Be well-written and super-extensible so that others can…