Просмотр исходного кода

Reverted r16939, but still cast scalar values to strings, then trim any strings passed in as a message.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17163 44c647ce-9c0f-0410-b52a-842ac1e357ba
jplock 16 лет назад
Родитель
Сommit
e0111d2083
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      library/Zend/Queue/Adapter/Db.php

+ 3 - 4
library/Zend/Queue/Adapter/Db.php

@@ -279,12 +279,11 @@ class Zend_Queue_Adapter_Db extends Zend_Queue_Adapter_AdapterAbstract
             $queue = $this->_queue;
         }
 
+        if (is_scalar($message)) {
+            $message = (string) $message;
+        }
         if (is_string($message)) {
             $message = trim($message);
-        } elseif (is_scalar($message)) {
-            $message = (string) $message;
-        } else {
-            $message = serialize($message);
         }
 
         if (!$this->isExists($queue->getName())) {