eygle.com   eygle.com
eygle.com  
 

« 一则简单的磁盘的iops测试 | Blog首页 | 猜一猜Oracle11g的第一个发布版本 »

遭遇Magpie多年前的一个Bug

作者:eygle |【转载时请以超链接形式标明文章和作者信息及本声明
链接:

昨天有朋友在MSN上告诉我,我的Erss不能访问了,我看了一下果然是出了问题,错误提示是:

Fatal error: Only variables can be passed by reference
in .../inc/magpie/rss_parse.inc on line 352

我的RSS订阅用的是DCBA增强过的Lilina,而Lilina的后台用的是Magpie,这个问题显然出在Magpie上。

Google一下,赫然发现居然遭遇了几年前Magpie的一个Bug,解决方案早已给出,extlib/rss_parse.inc需要修正,diff文件在以下地址可以找到:
http://svn.gregarius.net/trac/attachment/ticket/175/namespace.diff

主要的变更为:

extlib/rss_parse.inc

old new  
350 350         if ( $this->current_namespace )
351 351         { 
352 352             if ( $this->initem ) { 
  353                 $real_element = ""; 
  354  
  355                 $element_tree = explode("_", $el); 
  356                 $real_element =& $this->current_item[ $this->current_namespace ]; 
  357  
  358                 foreach ($element_tree as $tree_element) { 
  359                     if (!is_array($real_element)) { 
  360                         $real_element = array(); 
  361                     } 
  362  
  363                     $real_element =& $real_element[$tree_element]; 
  364                 } 
  365  
353 366                 $this->concat( 
354                       $this->current_item[ $this->current_namespace ][ $el ], $text); 
  367                     $real_element, $text); 
355 368             } 
356 369             elseif ($this->inchannel) { 
357 370                 $this->concat( 
... ...  
367 380             } 
368 381         } 
369 382         else { 
370               if ( $this->initem ) { 
  383             if ( $this->initem && !is_array($this->current_item[ $el ])) { 
371 384                 $this->concat( 
372 385                     $this->current_item[ $el ], $text); 
373 386             } 

不过有一点不解的是,这个Bug是怎么触发的?为什么今天被我遇到了?
记录一下,也许还有别人会遇到的。

-The End-


历史上的今天...
      >> 2008-07-28文章:
             自我调整检查点的参数约束
      >> 2006-07-28文章:
             Windows Xp重新安装备忘
      >> 2005-07-28文章:
             瑞典游记-预告篇
------
这篇 【遭遇Magpie多年前的一个Bug】来自 eygle.com | CSDN网摘| del.icio.us|Google订阅 | 鲜果订阅 | 抓虾订阅

By eygle on 2007-07-28 14:13 | Comments (2) | Posted to Web | Edit |

相关文章 随机文章
  • 重新安装Lilina Rss聚合器
  • Gregarius与Lilina,我的Rss历程...
  • 安装lilina news aggregator简介
  • 备份重于一切 - 记(eygle.com)服务器硬盘故障
  • 试用新浪微博 - 后Twitter时代
  • 离开UT
    江湖传闻-Blogspot再次解封
    大表海量数据的转移及索引创建的记录
    Oracle诊断案例-Sql_trace之一
    为何而心跳-Oracle Heartbeat研究之二
    搜索本站:

    留言 (2)

    我今天也遇到了,那个PATCH文件太老了,我手工对比CVS中的MAGPIE rss做了一些修改。

    Posted by: Che Dong at August 30, 2007 6:23 PM

    想不到还有人遇到啊,你的门户也算久经考验了:)

    Posted by: eygle at August 30, 2007 6:49 PM

    发表留言:



    Remember Me?
    (输入验证码后方可评论,谢谢支持)



    CopyRight © 2004~2010 eygle.com, All rights reserved.