Skip to content

Instantly share code, notes, and snippets.

View adamransome's full-sized avatar

Adam Ransome adamransome

  • Cardiff, UK
View GitHub Profile
@adamransome
adamransome / libxml29_compat.patch
Created March 9, 2017 14:43 — forked from tassoevan/libxml29_compat.patch
Install PHP 5.2.17 in phpbrew
--- ext/dom/node.c 2012-08-06 17:49:48.826716692 +0800
+++ ext/dom/node.c 2012-08-06 17:52:47.633484660 +0800
@@ -1895,9 +1895,17 @@ static void dom_canonicalization(INTERNA
RETVAL_FALSE;
} else {
if (mode == 0) {
+#ifdef LIBXML2_NEW_BUFFER
+ ret = xmlOutputBufferGetSize(buf);
+#else
ret = buf->buffer->use;
@adamransome
adamransome / Keybase.md
Last active November 10, 2019 22:33
Keybase auth

Keybase proof

I hereby claim:

  • I am adamransome on github.
  • I am adamski (https://keybase.io/adamski) on keybase.
  • I have a public key ASDM8-8qiSDrf9Fa8WEX5Ntp9k8KPsRUZRbBb1tEhT80dAo

To claim this, I am signing this object: