Skip to content

Instantly share code, notes, and snippets.

@endeveit
Created January 11, 2014 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save endeveit/8368438 to your computer and use it in GitHub Desktop.
Save endeveit/8368438 to your computer and use it in GitHub Desktop.
--- 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