public function testRecursionMaxDepth()
 {
     $input = array();
     $input[] =& $input;
     $result = Raven_Serializer::serialize($input, 3);
     $this->assertEquals(array(array(array('Array of length 1'))), $result);
 }
Пример #2
0
 public function sanitize(&$data)
 {
     $data = Raven_Serializer::serialize($data);
 }
Пример #3
0
 public function sanitize(&$data)
 {
     // manually trigger autoloading, as it's not done in some edge cases due to PHP bugs (see #60149)
     if (!class_exists('Raven_Serializer')) {
         spl_autoload_call('Raven_Serializer');
     }
     $data = Raven_Serializer::serialize($data);
 }