From 3a1d1767a570fe71d0bed90e1dde99d747c17a72 Mon Sep 17 00:00:00 2001 From: Stuart Langley Date: Wed, 26 Nov 2014 14:02:44 +1100 Subject: [PATCH 1/2] Update Purl.php Do not instantiate the Purl classes/functions if cURL is available in the runtime. --- src/Purl.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Purl.php b/src/Purl.php index 41189f0..d13ba29 100644 --- a/src/Purl.php +++ b/src/Purl.php @@ -1,5 +1,10 @@ _errorno = 100; } } -} \ No newline at end of file +} + +} // !function_exists('curl_init') From 52762be5500671bd71a9287e496031ba8a8ac7b2 Mon Sep 17 00:00:00 2001 From: Stuart Langley Date: Wed, 26 Nov 2014 14:03:04 +1100 Subject: [PATCH 2/2] Update Purl.php Fix typo --- src/Purl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Purl.php b/src/Purl.php index d13ba29..b8af0f1 100644 --- a/src/Purl.php +++ b/src/Purl.php @@ -3,7 +3,7 @@ /** * Don't do anything if cURL is available. */ -if (!function_exists('curn_init')) +if (!function_exists('curl_init')) { /** * Load cUrl constants and functions definitions