Created
January 11, 2014 08:29
-
-
Save endeveit/8368438 to your computer and use it in GitHub Desktop.
Patch for conversation https://github.com/phalcon/incubator/pull/97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Extended.php 2014-01-11 14:22:43.000000000 +0600 | |
+++ Library/Phalcon/Queue/Beanstalk/Extended.php 2014-01-11 14:24:59.000000000 +0600 | |
@@ -263,12 +263,13 @@ | |
$result = null; | |
$lines = $this->getResponseLinesText('ignore ' . $this->getTubeName($tube)); | |
- if (null !== $lines) { | |
+ if (null !== $lines) { | |
list($name, $value) = explode(' ', $lines); | |
if (null !== $value) { | |
$result[$name] = intval($value); | |
} | |
} | |
+ | |
return $result; | |
} | |
@@ -325,11 +326,12 @@ | |
if (!preg_match('#^WATCHING (\d+).*?#', $response, $matches)) { | |
throw new \RuntimeException(sprintf( | |
- 'Unhandled response: %s', | |
- $response | |
- )); | |
+ 'Unhandled response: %s', | |
+ $response | |
+ )); | |
} | |
- $result = $response; | |
+ | |
+ $result = $response; | |
} | |
return $result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment